summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/MirandaG15/src/CEventLog.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/MirandaG15/src/CEventLog.h')
-rw-r--r--plugins/!NotAdopted/MirandaG15/src/CEventLog.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/MirandaG15/src/CEventLog.h b/plugins/!NotAdopted/MirandaG15/src/CEventLog.h
new file mode 100644
index 0000000000..e5953f92c7
--- /dev/null
+++ b/plugins/!NotAdopted/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