From df4c18c10e0fe094eda65187e97b77b9af10ca3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Oct 2023 17:17:31 +0300 Subject: code cleaning --- plugins/ExternalAPI/m_messages.h | 41 ---------------------------------------- protocols/YAMN/src/messages.h | 31 ++++++++++++++++++++++++++++++ protocols/YAMN/src/stdafx.h | 4 +--- 3 files changed, 32 insertions(+), 44 deletions(-) delete mode 100644 plugins/ExternalAPI/m_messages.h create mode 100644 protocols/YAMN/src/messages.h diff --git a/plugins/ExternalAPI/m_messages.h b/plugins/ExternalAPI/m_messages.h deleted file mode 100644 index 7fc0fbed20..0000000000 --- a/plugins/ExternalAPI/m_messages.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef __MESSAGES_H -#define __MESSAGES_H - -//#include "list.h" - -// structure for chained list of handles (window handles, account handles, whatever) -struct WndHandles -{ - HANDLE Handle; - - struct WndHandles *Next; -}; - -#define WM_YAMN WM_APP+0x2800 //(0xA800 in fact) -enum -{ - WM_YAMN_CHANGEHOTKEY=WM_YAMN, - WM_YAMN_CHANGETIME, - -//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/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