summaryrefslogtreecommitdiff
path: root/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'event.h')
-rw-r--r--event.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/event.h b/event.h
index a205aab..bd8fa09 100644
--- a/event.h
+++ b/event.h
@@ -42,8 +42,17 @@ public:
bool Save(FILE *f);
static const char *LastTitle;
static const bool *ReplayingRecording;
-
+
+ static char *duptolower(const char*);
+
const char *Pattern(void) const { return mPattern; }
+
+ virtual int Compare(const cListObject &src) const
+ {
+ cEventBlock* rhs=(cEventBlock*)&src;
+ char* l=cEventBlock::duptolower(mPattern);
+ char* r=cEventBlock::duptolower(rhs->mPattern);
+ return strcmp(l,r); }
};
class cEventsBlock : public cConfig<cEventBlock> {