From df4c18c10e0fe094eda65187e97b77b9af10ca3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Oct 2023 17:17:31 +0300 Subject: code cleaning --- protocols/YAMN/src/messages.h | 31 +++++++++++++++++++++++++++++++ protocols/YAMN/src/stdafx.h | 4 +--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 protocols/YAMN/src/messages.h (limited to 'protocols') 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 #include #include -#include #include #include #include @@ -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); -- cgit v1.2.3