diff options
Diffstat (limited to 'plugins/MirandaG15/src/CEventLog.h')
-rw-r--r-- | plugins/MirandaG15/src/CEventLog.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/MirandaG15/src/CEventLog.h b/plugins/MirandaG15/src/CEventLog.h new file mode 100644 index 0000000000..e5953f92c7 --- /dev/null +++ b/plugins/MirandaG15/src/CEventLog.h @@ -0,0 +1,46 @@ +#ifndef _CEVENTLOG_H_
+#define _CEVENTLOG_H_
+
+#include "CLCDList.h"
+
+class CEventLogEntry
+{
+public:
+ HANDLE hContact;
+ tstring strValue;
+ tstring strTimestamp;
+ tm Time;
+ EventType eType;
+};
+
+class CEventLog : public CLCDList<CEventLogEntry*>
+{
+public:
+ // constructor
+ CEventLog();
+ // destructor
+ ~CEventLog();
+
+ // initializes the list
+ bool Initialize();
+ // deinitializes the list
+ bool Shutdown();
+ // adds an entry to the list
+ CListItem<CEventLogEntry*> *AddItem(CEventLogEntry *);
+
+ void SetPosition(CListEntry<CEventLogEntry*> *pEntry);
+ bool ScrollUp();
+ bool ScrollDown();
+
+ bool SetFont(LOGFONT &lf);
+
+protected:
+ // Called to delete the specified entry
+ void DeleteEntry(CEventLogEntry *pEntry);
+ // Called to draw the specified entry
+ void DrawEntry(CLCDGfx *pGfx,CEventLogEntry *pEntry,bool bSelected);
+
+ DWORD m_dwLastScroll;
+};
+
+#endif
\ No newline at end of file |