blob: 381359fa85f2f4d83eeffd35ca7b590e284cf1b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef _CEVENTLOG_H_
#define _CEVENTLOG_H_
#include "LCDFramework/CLCDList.h"
class CEventLogEntry
{
public:
MCONTACT 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
|