summaryrefslogtreecommitdiff
path: root/plugins/Nudge/src/nudge.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 11:56:59 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-23 11:56:59 +0000
commit177c84716db384c8be095219c58d0a68f87101fe (patch)
tree84449f27f215b253da99729ddb0aaf6df40bef0c /plugins/Nudge/src/nudge.h
parentcbb10e8c9089dfc99946ddc784afdb126e2128a8 (diff)
NotesAndReminders, Nudge, OpenFolder, PackUpdater: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1116 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge/src/nudge.h')
-rw-r--r--plugins/Nudge/src/nudge.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/plugins/Nudge/src/nudge.h b/plugins/Nudge/src/nudge.h
new file mode 100644
index 0000000000..8a531639ca
--- /dev/null
+++ b/plugins/Nudge/src/nudge.h
@@ -0,0 +1,67 @@
+#ifndef NUDGE_H
+#define NUDGE_H
+
+// 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_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
+#define NUDGE_ACC_ST8 0x00000100 //Check (countdown) when On the phone
+#define NUDGE_ACC_ST9 0x00000200 //Check (countdown) when Out to lunch
+
+// For status log
+#define EVENTTYPE_STATUSCHANGE 25368
+
+#define TEXT_LEN 1024
+
+class CNudge
+{
+public:
+ bool useByProtocol;
+ int sendTimeSec;
+ int recvTimeSec;
+ int resendDelaySec;
+
+ void Load(void);
+ void Save(void);
+};
+
+class CNudgeElement
+{
+public:
+ char ProtocolName[64];
+ TCHAR AccountName[128];
+ char NudgeSoundname[100];
+ TCHAR recText[TEXT_LEN];
+ TCHAR senText[TEXT_LEN];
+ bool showPopup;
+ bool showStatus;
+ bool openMessageWindow;
+ bool openContactList;
+ bool useIgnoreSettings;
+ bool shakeClist;
+ bool shakeChat;
+ bool enabled;
+ bool autoResend;
+ DWORD statusFlags;
+ int iProtoNumber;
+ HANDLE hIcoLibItem;
+ HANDLE hEvent;
+ HANDLE hContactMenu;
+
+ void Load(void);
+ void Save(void);
+ int ShowContactMenu(bool show);
+};
+
+typedef struct NudgeElementList
+{
+ CNudgeElement item;
+ NudgeElementList *next;
+} NUDGEELEMENTLIST;
+
+#endif \ No newline at end of file