diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-16 17:17:31 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-16 17:17:31 +0300 |
commit | df4c18c10e0fe094eda65187e97b77b9af10ca3d (patch) | |
tree | 786565406174e9191dfd0d8a359998e3159348a3 /protocols/YAMN | |
parent | d09fdfb17e8b8b2d84ae0b1b16cf8da5c6a4a505 (diff) |
code cleaning
Diffstat (limited to 'protocols/YAMN')
-rw-r--r-- | protocols/YAMN/src/messages.h | 31 | ||||
-rw-r--r-- | protocols/YAMN/src/stdafx.h | 4 |
2 files changed, 32 insertions, 3 deletions
diff --git a/protocols/YAMN/src/messages.h b/protocols/YAMN/src/messages.h new file mode 100644 index 0000000000..13ca9de80d --- /dev/null +++ b/protocols/YAMN/src/messages.h @@ -0,0 +1,31 @@ +#ifndef __MESSAGES_H +#define __MESSAGES_H + +#define WM_YAMN WM_APP+0x2800 // (0xA800 in fact) + +enum +{ + WM_YAMN_CHANGETIME = WM_YAMN, + + //ChangeStatus message + //WPARAM- (HACCOUNT) Account whose status is changed + //LPARAM- new status of account + WM_YAMN_CHANGESTATUS, + + //StopAccount message + //WPARAM- (HACCOUNT) Account, which should stop its work and finish immidiatelly + WM_YAMN_STOPACCOUNT, + + //Account content changed + WM_YAMN_CHANGECONTENT, + + WM_YAMN_UPDATEMAILS, + + WM_YAMN_NOTIFYICON, + + WM_YAMN_CHANGESTATUSOPTION, + + WM_YAMN_SHOWSELECTED, +}; + +#endif diff --git a/protocols/YAMN/src/stdafx.h b/protocols/YAMN/src/stdafx.h index 05be77a7dc..375d43d4ec 100644 --- a/protocols/YAMN/src/stdafx.h +++ b/protocols/YAMN/src/stdafx.h @@ -15,7 +15,6 @@ #include <m_hotkeys.h>
#include <m_icolib.h>
#include <m_langpack.h>
-#include <m_messages.h>
#include <m_netlib.h>
#include <m_options.h>
#include <m_popup.h>
@@ -31,6 +30,7 @@ #include "mails/mails.h"
#include "account.h"
+#include "messages.h"
#include "protoplugin.h"
#include "main.h"
@@ -210,8 +210,6 @@ int SetProtocolPluginFcnImportFcn(YAMN_PROTOPLUGIN *Plugin, YAMN_PROTOIMPORTFCN void __stdcall SSL_DebugLog(const char *fmt, ...);
-extern struct WndHandles *MessageWnd;
-
YAMN_PROTOPLUGIN* RegisterProtocolPlugin(YAMN_PROTOREGISTRATION *Registration);
int GetCharsetFromString(char *input, size_t size);
|