From 2298422a2adacff4bf5bcb8c7688c4e8eab254d0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 07:36:39 +0000 Subject: GmailNotifier: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14663 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- bin10/mir_dev.sln | 2 +- bin10/mir_full.sln | 2 +- bin10/mir_full_pro.sln | 2 +- bin12/mir_dev.sln | 2 +- bin12/mir_full.sln | 2 +- bin14/mir_dev.sln | 2 +- bin14/mir_full.sln | 2 +- plugins/GmailNotifier/GmailNotifier.vcxproj | 28 +++ .../GmailNotifier/GmailNotifier.vcxproj.filters | 4 + plugins/GmailNotifier/GmailNotifier_10.vcxproj | 206 -------------------- .../GmailNotifier/GmailNotifier_10.vcxproj.filters | 56 ------ plugins/GmailNotifier/GmailNotifier_12.vcxproj | 212 --------------------- .../GmailNotifier/GmailNotifier_12.vcxproj.filters | 56 ------ plugins/GmailNotifier/GmailNotifier_14.vcxproj | 212 --------------------- .../GmailNotifier/GmailNotifier_14.vcxproj.filters | 56 ------ plugins/GmailNotifier/src/check.cpp | 5 +- plugins/GmailNotifier/src/gmail.h | 94 --------- plugins/GmailNotifier/src/main.cpp | 2 +- plugins/GmailNotifier/src/notify.cpp | 2 +- plugins/GmailNotifier/src/options.cpp | 2 +- plugins/GmailNotifier/src/stdafx.cpp | 18 -- plugins/GmailNotifier/src/stdafx.cxx | 18 ++ plugins/GmailNotifier/src/stdafx.h | 92 +++++++++ plugins/GmailNotifier/src/utility.cpp | 2 +- 24 files changed, 156 insertions(+), 923 deletions(-) create mode 100644 plugins/GmailNotifier/GmailNotifier.vcxproj create mode 100644 plugins/GmailNotifier/GmailNotifier.vcxproj.filters delete mode 100644 plugins/GmailNotifier/GmailNotifier_10.vcxproj delete mode 100644 plugins/GmailNotifier/GmailNotifier_10.vcxproj.filters delete mode 100644 plugins/GmailNotifier/GmailNotifier_12.vcxproj delete mode 100644 plugins/GmailNotifier/GmailNotifier_12.vcxproj.filters delete mode 100644 plugins/GmailNotifier/GmailNotifier_14.vcxproj delete mode 100644 plugins/GmailNotifier/GmailNotifier_14.vcxproj.filters delete mode 100644 plugins/GmailNotifier/src/gmail.h delete mode 100644 plugins/GmailNotifier/src/stdafx.cpp create mode 100644 plugins/GmailNotifier/src/stdafx.cxx create mode 100644 plugins/GmailNotifier/src/stdafx.h diff --git a/bin10/mir_dev.sln b/bin10/mir_dev.sln index 5f67db947e..ea6dc9cee2 100644 --- a/bin10/mir_dev.sln +++ b/bin10/mir_dev.sln @@ -401,7 +401,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_10.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_10.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin10/mir_full.sln b/bin10/mir_full.sln index 865634afa4..052c3374d6 100644 --- a/bin10/mir_full.sln +++ b/bin10/mir_full.sln @@ -406,7 +406,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_10.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_10.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin10/mir_full_pro.sln b/bin10/mir_full_pro.sln index fef205889e..a552be6d44 100644 --- a/bin10/mir_full_pro.sln +++ b/bin10/mir_full_pro.sln @@ -438,7 +438,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dropbox", "..\plugins\Dropb EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sametime\sametime_10.vcxproj", "{BE22A21F-73B7-453F-86A0-B867F0056490}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_10.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin12/mir_dev.sln b/bin12/mir_dev.sln index 21f46510a0..ac6e27a205 100644 --- a/bin12/mir_dev.sln +++ b/bin12/mir_dev.sln @@ -408,7 +408,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_12.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_12.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin12/mir_full.sln b/bin12/mir_full.sln index d6f69b94ef..76c9ff9102 100644 --- a/bin12/mir_full.sln +++ b/bin12/mir_full.sln @@ -408,7 +408,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_12.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_12.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin14/mir_dev.sln b/bin14/mir_dev.sln index d0ef941a97..a86b5091a3 100644 --- a/bin14/mir_dev.sln +++ b/bin14/mir_dev.sln @@ -408,7 +408,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_14.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_14.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/bin14/mir_full.sln b/bin14/mir_full.sln index c379adc85d..ac42a6e29e 100644 --- a/bin14/mir_full.sln +++ b/bin14/mir_full.sln @@ -408,7 +408,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sametime", "..\protocols\Sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glib", "..\protocols\Sametime\src\glib\glib_14.vcxproj", "{12BCA020-EABF-429E-876A-A476BC9C10C0}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier_14.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GmailNotifier", "..\plugins\GmailNotifier\GmailNotifier.vcxproj", "{EDAAD28B-505B-4969-A8BB-97EAE818DEEA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pcre16", "..\libs\Pcre16\pcre16.vcxproj", "{6124E997-426E-4A0B-9617-D6D577D5E7D7}" EndProject diff --git a/plugins/GmailNotifier/GmailNotifier.vcxproj b/plugins/GmailNotifier/GmailNotifier.vcxproj new file mode 100644 index 0000000000..dca8b5b2a4 --- /dev/null +++ b/plugins/GmailNotifier/GmailNotifier.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + GmailNotifier + {EDAAD28B-505B-4969-A8BB-97EAE818DEEA} + + + + + \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier.vcxproj.filters b/plugins/GmailNotifier/GmailNotifier.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/GmailNotifier/GmailNotifier.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_10.vcxproj b/plugins/GmailNotifier/GmailNotifier_10.vcxproj deleted file mode 100644 index 59cfb42eea..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_10.vcxproj +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - GmailNotifier - {EDAAD28B-505B-4969-A8BB-97EAE818DEEA} - - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - EditAndContinue - - - wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - true - Windows - false - $(IntDir)$(TargetName).lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - - - wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - true - Windows - $(IntDir)$(TargetName).lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - Create - - - - - - - - - - - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_10.vcxproj.filters b/plugins/GmailNotifier/GmailNotifier_10.vcxproj.filters deleted file mode 100644 index 0d4cedea34..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_10.vcxproj.filters +++ /dev/null @@ -1,56 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_12.vcxproj b/plugins/GmailNotifier/GmailNotifier_12.vcxproj deleted file mode 100644 index e11e5fb4b7..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_12.vcxproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - GmailNotifier - {EDAAD28B-505B-4969-A8BB-97EAE818DEEA} - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - EditAndContinue - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - true - Windows - false - $(IntDir)$(TargetName).lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - true - Windows - $(IntDir)$(TargetName).lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - - - - Create - Create - Create - Create - - - - - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_12.vcxproj.filters b/plugins/GmailNotifier/GmailNotifier_12.vcxproj.filters deleted file mode 100644 index 3d0ee3898c..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_12.vcxproj.filters +++ /dev/null @@ -1,56 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_14.vcxproj b/plugins/GmailNotifier/GmailNotifier_14.vcxproj deleted file mode 100644 index b9b6983386..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_14.vcxproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - GmailNotifier - {EDAAD28B-505B-4969-A8BB-97EAE818DEEA} - - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - true - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - Use - Level3 - gmail.h - Size - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - EditAndContinue - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - true - Windows - false - $(IntDir)$(TargetName).lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - curl\include\curl\;..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;CURL_STATICLIB;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - gmail.h - Level3 - - - Wininet.lib;wldap32.lib;ws2_32.lib;winmm.lib;UxTheme.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - true - Windows - $(IntDir)$(TargetName).lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - - - - Create - Create - Create - Create - - - - - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/GmailNotifier_14.vcxproj.filters b/plugins/GmailNotifier/GmailNotifier_14.vcxproj.filters deleted file mode 100644 index 3d0ee3898c..0000000000 --- a/plugins/GmailNotifier/GmailNotifier_14.vcxproj.filters +++ /dev/null @@ -1,56 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/GmailNotifier/src/check.cpp b/plugins/GmailNotifier/src/check.cpp index dc5e8f8739..15d71299ad 100644 --- a/plugins/GmailNotifier/src/check.cpp +++ b/plugins/GmailNotifier/src/check.cpp @@ -1,6 +1,7 @@ -#include "gmail.h" +#include "stdafx.h" + +#pragma comment(lib, "Wininet.lib") -// #include void CheckMailInbox(Account *curAcc) { diff --git a/plugins/GmailNotifier/src/gmail.h b/plugins/GmailNotifier/src/gmail.h deleted file mode 100644 index d6293e4436..0000000000 --- a/plugins/GmailNotifier/src/gmail.h +++ /dev/null @@ -1,94 +0,0 @@ -#define _CRT_SECURE_NO_WARNINGS - -#include -#include -#include -#include -#include "resource.h" - -#include "newpluginapi.h" -#include "m_clist.h" -#include "m_clui.h" -#include "m_skin.h" -#include "m_langpack.h" -#include "m_database.h" -#include "m_system.h" -#include "m_protocols.h" -#include "m_userinfo.h" -#include "m_options.h" -#include "m_protosvc.h" -#include "m_utils.h" -#include "m_ignore.h" -#include "m_clc.h" -#include "m_popup.h" -#include "m_netlib.h" - -#define WM_SHELLNOTIFY WM_USER+5 -#define IDI_TRAY WM_USER+6 -#define MODULE_NAME "GmailMNotifier" -#define _MAX_DOWN_BUFFER 65536 -#define LINK "https://accounts.google.com/ServiceLogin?continue=https%3A%2F%2Fmail.google.com%2Fmail&service=mail&passive=true&Email=" -#define FORMDATA1 "
" -// #define STR1 "javascript:document.write('');document.gmail.submit();" -//#define LINK2 "https://www.google.com/a/altmanoptik.com/LoginAction?continue=https%3A%2F%2Fmail.google.com%2Fhosted%2Faltmanoptik.com&service=mail&userName=test&password=123456" - -typedef struct s_resultLink{ - char content[64]; - struct s_resultLink *next; -}resultLink; - -typedef struct s_Account{ - char name[64]; - char pass[64]; - char hosted[64]; - MCONTACT hContact; - int oldResults_num; - int results_num; - resultLink results; - HWND popUpHwnd; - BOOL IsChecking; -}Account; - -typedef struct s_optionSettings{ - int circleTime; - BOOL notifierOnTray; - BOOL notifierOnPop; - int popupDuration; - COLORREF popupTxtColor; - COLORREF popupBgColor; - int OpenUsePrg; - BOOL ShowCustomIcon; - BOOL UseOnline; - int AutoLogin; - BOOL LogThreads; -}optionSettings; - -extern int acc_num; -extern Account *acc; -extern optionSettings opt; -extern HINSTANCE hInst; -extern UINT hTimer; -extern short ID_STATUS_NONEW; -extern BOOL optionWindowIsOpen; - -INT_PTR Notifying(WPARAM, LPARAM); -INT_PTR PluginMenuCommand(WPARAM, LPARAM); -void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD); -BOOL GetBrowser(char *); -void CheckMailInbox(Account *); -void NotifyUser(Account *); -int OptInit(WPARAM, LPARAM); -void Check_ThreadFunc(void *); -void Login_ThreadFunc(void *); -int OpenBrowser(WPARAM , LPARAM); -int ParsePage(char *, resultLink *); -void DeleteResults(resultLink *); -void BuildList(void); - -Account* GetAccountByContact(MCONTACT hContact); \ No newline at end of file diff --git a/plugins/GmailNotifier/src/main.cpp b/plugins/GmailNotifier/src/main.cpp index d6c8413266..a4d3556299 100644 --- a/plugins/GmailNotifier/src/main.cpp +++ b/plugins/GmailNotifier/src/main.cpp @@ -7,7 +7,7 @@ modify it as they wish with no restriction. There is no warranty. */ -#include "gmail.h" +#include "stdafx.h" #include "version.h" HINSTANCE hInst; diff --git a/plugins/GmailNotifier/src/notify.cpp b/plugins/GmailNotifier/src/notify.cpp index 9ec7111750..6e16c3a0b0 100644 --- a/plugins/GmailNotifier/src/notify.cpp +++ b/plugins/GmailNotifier/src/notify.cpp @@ -1,4 +1,4 @@ -#include "gmail.h" +#include "stdafx.h" int OpenBrowser(WPARAM hContact, LPARAM lParam) { diff --git a/plugins/GmailNotifier/src/options.cpp b/plugins/GmailNotifier/src/options.cpp index 652a674981..e26e48e737 100644 --- a/plugins/GmailNotifier/src/options.cpp +++ b/plugins/GmailNotifier/src/options.cpp @@ -1,4 +1,4 @@ -#include "gmail.h" +#include "stdafx.h" static void SaveButton(HWND hwndDlg,HWND hwndCombo, int curIndex) { if (GetDlgItemTextA(hwndDlg, IDC_NAME, acc[curIndex].name, _countof(acc[curIndex].name))) { diff --git a/plugins/GmailNotifier/src/stdafx.cpp b/plugins/GmailNotifier/src/stdafx.cpp deleted file mode 100644 index ebf8e61525..0000000000 --- a/plugins/GmailNotifier/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "gmail.h" diff --git a/plugins/GmailNotifier/src/stdafx.cxx b/plugins/GmailNotifier/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/GmailNotifier/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/GmailNotifier/src/stdafx.h b/plugins/GmailNotifier/src/stdafx.h new file mode 100644 index 0000000000..ef1e8bc67b --- /dev/null +++ b/plugins/GmailNotifier/src/stdafx.h @@ -0,0 +1,92 @@ +#include +#include +#include +#include +#include "resource.h" + +#include "newpluginapi.h" +#include "m_clist.h" +#include "m_clui.h" +#include "m_skin.h" +#include "m_langpack.h" +#include "m_database.h" +#include "m_system.h" +#include "m_protocols.h" +#include "m_userinfo.h" +#include "m_options.h" +#include "m_protosvc.h" +#include "m_utils.h" +#include "m_ignore.h" +#include "m_clc.h" +#include "m_popup.h" +#include "m_netlib.h" + +#define WM_SHELLNOTIFY WM_USER+5 +#define IDI_TRAY WM_USER+6 +#define MODULE_NAME "GmailMNotifier" +#define _MAX_DOWN_BUFFER 65536 +#define LINK "https://accounts.google.com/ServiceLogin?continue=https%3A%2F%2Fmail.google.com%2Fmail&service=mail&passive=true&Email=" +#define FORMDATA1 "" +// #define STR1 "javascript:document.write('');document.gmail.submit();" +//#define LINK2 "https://www.google.com/a/altmanoptik.com/LoginAction?continue=https%3A%2F%2Fmail.google.com%2Fhosted%2Faltmanoptik.com&service=mail&userName=test&password=123456" + +typedef struct s_resultLink{ + char content[64]; + struct s_resultLink *next; +}resultLink; + +typedef struct s_Account{ + char name[64]; + char pass[64]; + char hosted[64]; + MCONTACT hContact; + int oldResults_num; + int results_num; + resultLink results; + HWND popUpHwnd; + BOOL IsChecking; +}Account; + +typedef struct s_optionSettings{ + int circleTime; + BOOL notifierOnTray; + BOOL notifierOnPop; + int popupDuration; + COLORREF popupTxtColor; + COLORREF popupBgColor; + int OpenUsePrg; + BOOL ShowCustomIcon; + BOOL UseOnline; + int AutoLogin; + BOOL LogThreads; +}optionSettings; + +extern int acc_num; +extern Account *acc; +extern optionSettings opt; +extern HINSTANCE hInst; +extern UINT hTimer; +extern short ID_STATUS_NONEW; +extern BOOL optionWindowIsOpen; + +INT_PTR Notifying(WPARAM, LPARAM); +INT_PTR PluginMenuCommand(WPARAM, LPARAM); +void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD); +BOOL GetBrowser(char *); +//void CheckMailInbox(Account *); +void NotifyUser(Account *); +int OptInit(WPARAM, LPARAM); +void Check_ThreadFunc(void *); +void Login_ThreadFunc(void *); +int OpenBrowser(WPARAM , LPARAM); +int ParsePage(char *, resultLink *); +void DeleteResults(resultLink *); +void BuildList(void); + +Account* GetAccountByContact(MCONTACT hContact); \ No newline at end of file diff --git a/plugins/GmailNotifier/src/utility.cpp b/plugins/GmailNotifier/src/utility.cpp index 8e91d5d8ed..69ae7536e6 100644 --- a/plugins/GmailNotifier/src/utility.cpp +++ b/plugins/GmailNotifier/src/utility.cpp @@ -1,4 +1,4 @@ -#include "gmail.h" +#include "stdafx.h" void BuildList(void) { -- cgit v1.2.3