diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-09 15:09:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-09 15:09:56 +0000 |
commit | 11a0c05e56a9ef98dcb8473e5c4ccd2a519ad730 (patch) | |
tree | da78d1bf31d4922c7c7a91c8af698ac94be0b8b2 /plugins/Nudge/src/nudge.h | |
parent | 74a2e42b34d8495bf1e3676d4580e1d286384722 (diff) |
Nudge:
- old ugly list replaced with OBJLIST<>;
- plugin to reuse the same popup menu item instead of creating a menu item for each protocol;
- fix for a bug in options;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge/src/nudge.h')
-rw-r--r-- | plugins/Nudge/src/nudge.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/plugins/Nudge/src/nudge.h b/plugins/Nudge/src/nudge.h index 1098c2eda4..9140b39667 100644 --- a/plugins/Nudge/src/nudge.h +++ b/plugins/Nudge/src/nudge.h @@ -4,11 +4,11 @@ #define MODULENAME "Nudge"
// NUDGE account status flags
-#define NUDGE_ACC_ST0 0x00000001 //Check (countdown) when Offline
-#define NUDGE_ACC_ST1 0x00000002 //Check (countdown) when Online
-#define NUDGE_ACC_ST2 0x00000004 //Check (countdown) when Away
-#define NUDGE_ACC_ST3 0x00000008 //Check (countdown) when N/A
-#define NUDGE_ACC_ST4 0x00000010 //Check (countdown) when Occupied
+#define NUDGE_ACC_ST0 0x00000001 //Check (countdown) when Offline
+#define NUDGE_ACC_ST1 0x00000002 //Check (countdown) when Online
+#define NUDGE_ACC_ST2 0x00000004 //Check (countdown) when Away
+#define NUDGE_ACC_ST3 0x00000008 //Check (countdown) when N/A
+#define NUDGE_ACC_ST4 0x00000010 //Check (countdown) when Occupied
#define NUDGE_ACC_ST5 0x00000020 //Check (countdown) when DND
#define NUDGE_ACC_ST6 0x00000040 //Check (countdown) when Free for chat
#define NUDGE_ACC_ST7 0x00000080 //Check (countdown) when Invisible
@@ -17,9 +17,8 @@ #define TEXT_LEN 1024
-class CNudge
+struct CNudge
{
-public:
bool useByProtocol;
int sendTimeSec;
int recvTimeSec;
@@ -29,9 +28,8 @@ public: void Save(void);
};
-class CNudgeElement
+struct CNudgeElement : public MZeroedObject
{
-public:
char ProtocolName[64];
TCHAR AccountName[128];
char NudgeSoundname[100];
@@ -48,18 +46,10 @@ public: bool autoResend;
DWORD statusFlags;
int iProtoNumber;
- HANDLE hIcoLibItem;
HANDLE hEvent;
- HGENMENU hContactMenu;
void Load(void);
void Save(void);
};
-typedef struct NudgeElementList
-{
- CNudgeElement item;
- NudgeElementList *next;
-} NUDGEELEMENTLIST;
-
-#endif
\ No newline at end of file +#endif // NUDGE_H
|