#ifndef _COMMON_H_ #define _COMMON_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "resource.h" struct CMPlugin : public PLUGIN { CMPlugin(); bool bMirandaLoaded = false; int Load() override; int Unload() override; }; struct CFakePlugin : public CMPluginBase { CFakePlugin(const char *szModuleName); }; struct CKSPlugin : public CFakePlugin { CKSPlugin(); CMOption bCheckConnection, bShowPopups, bCheckInet, bContCheck, bPingHost; CMOption iMaxRetries, iInitDelay; }; #include "commonstatus.h" #include "keepstatus.h" #include "startupstatus.h" #include "advancedautoaway.h" extern CKSPlugin KSPlugin; extern CFakePlugin AAAPlugin, SSPlugin; extern CMOption g_AAAEnabled, g_KSEnabled, g_SSEnabled; int OnCommonOptionsInit(WPARAM wParam, LPARAM); void InitCommonOptions(); char* StatusModeToDbSetting(int status, const char *suffix); uint32_t StatusModeToProtoFlag(int status); #endif //_COMMON_H_