summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-10-29 13:17:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-10-29 13:17:22 +0100
commite6999e9b3a5f584de2f40ca833effe5ff5636f6a (patch)
treeffbbe5fd379916a43e9c887783b34ee34563a77f /tools.h
parent92d3e366badb370e446156c0896103a578a24af0 (diff)
downloadvdr-e6999e9b3a5f584de2f40ca833effe5ff5636f6a.tar.gz
vdr-e6999e9b3a5f584de2f40ca833effe5ff5636f6a.tar.bz2
Implemented 'Schedules' menu
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/tools.h b/tools.h
index 17b643ff..b5bdd278 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.17 2000/10/07 18:00:21 kls Exp $
+ * $Id: tools.h 1.18 2000/10/29 11:19:20 kls Exp $
*/
#ifndef __TOOLS_H
@@ -40,7 +40,8 @@ void purge(int filedes);
char *readline(FILE *f);
char *strn0cpy(char *dest, const char *src, size_t n);
char *strreplace(char *s, char c1, char c2);
-char *skipspace(char *s);
+char *skipspace(const char *s);
+bool isempty(const char *s);
int time_ms(void);
void delay_ms(int ms);
bool isnumber(const char *s);
@@ -80,8 +81,8 @@ public:
void Append(cListObject *Object);
void Unlink(void);
int Index(void);
- cListObject *Prev(void) { return prev; }
- cListObject *Next(void) { return next; }
+ cListObject *Prev(void) const { return prev; }
+ cListObject *Next(void) const { return next; }
};
class cListBase {
@@ -95,15 +96,15 @@ public:
virtual void Move(int From, int To);
void Move(cListObject *From, cListObject *To);
void Clear(void);
- cListObject *Get(int Index);
- int Count(void);
+ cListObject *Get(int Index) const;
+ int Count(void) const;
};
template<class T> class cList : public cListBase {
public:
- T *Get(int Index) { return (T *)cListBase::Get(Index); }
- T *First(void) { return (T *)objects; }
- T *Next(T *object) { return (T *)object->Next(); }
+ T *Get(int Index) const { return (T *)cListBase::Get(Index); }
+ T *First(void) const { return (T *)objects; }
+ T *Next(const T *object) const { return (T *)object->Next(); }
};
#endif //__TOOLS_H