diff options
Diffstat (limited to 'event.h')
| -rw-r--r-- | event.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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> { |
