diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-16 12:37:04 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-16 12:37:04 +0300 |
commit | 5bf3fd51f1dcdd275d38f35d7aebe7bd063eb3db (patch) | |
tree | b4f21317897f586790fefb9cc100c7b784588ee8 /protocols/YAMN/src/stdafx.h | |
parent | bc730b337e64b6cf5c2a604e3e27487cf1e252b9 (diff) |
YAMN:
- fixes #3742 (YAMN: добавить опцию "игнорировать настройки всплывающих окон при ручной проверке");
- all manual calls of CreateThread() removed on behalf of mir_forkthread;
- code cleaning
Diffstat (limited to 'protocols/YAMN/src/stdafx.h')
-rw-r--r-- | protocols/YAMN/src/stdafx.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/protocols/YAMN/src/stdafx.h b/protocols/YAMN/src/stdafx.h index cdeea26edc..aa88d18df9 100644 --- a/protocols/YAMN/src/stdafx.h +++ b/protocols/YAMN/src/stdafx.h @@ -26,16 +26,22 @@ #include <m_toptoolbar.h>
#include <m_kbdnotify.h>
#include <m_yamn.h>
-#include <m_protoplugin.h>
#include <m_folders.h>
-#include "main.h"
#include "mails/decode.h"
-#include "browser/browser.h"
-#include "resource.h"
+#include "mails/mails.h"
+
+#include "account.h"
+#include "protoplugin.h"
+
+#include "main.h"
#include "debug.h"
+
+#include "resource.h"
#include "version.h"
+#include "browser/browser.h"
+
#include "proto/netlib.h"
#include "proto/pop3/pop3.h"
#include "proto/pop3/pop3comm.h"
@@ -44,12 +50,16 @@ struct CMPlugin : public PLUGIN<CMPlugin> {
CMPlugin();
+ CMOption<bool> bForceCheck;
+ __forceinline bool CheckFlags() {
+ return bForceCheck ? YAMN_FORCECHECK : YAMN_NORMALCHECK;
+ }
+
int Load() override;
int Unload() override;
};
// From services.cpp
-void AccountMailCheck(CAccount *ActualAccount);
void CreateServiceFunctions(void);
void HookEvents(void);
@@ -100,7 +110,7 @@ uint32_t WriteStringToFile(HANDLE File, char *Source); uint32_t WriteStringToFileW(HANDLE File, wchar_t *Source);
DWORD WriteMessagesToFile(HANDLE File, CAccount *Which);
-DWORD WINAPI WritePOP3Accounts();
+DWORD MIR_CDECL WritePOP3Accounts();
void __cdecl DeleteAccountInBackground(void *Which);
int StopAccounts(YAMN_PROTOPLUGIN *Plugin);
|