From 7e049d92bb13e8b6c67bc0c0c460c0c145545172 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Apr 2015 19:12:21 +0000 Subject: unified project for Omegle protocol git-svn-id: http://svn.miranda-ng.org/main/trunk@13309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/omegle.vcxproj | 33 +++++ protocols/Omegle/omegle.vcxproj.filters | 4 + protocols/Omegle/omegle_10.vcxproj | 214 ----------------------------- protocols/Omegle/omegle_10.vcxproj.filters | 100 -------------- protocols/Omegle/omegle_12.vcxproj | 214 ----------------------------- protocols/Omegle/omegle_12.vcxproj.filters | 95 ------------- protocols/Omegle/src/chat.cpp | 2 +- protocols/Omegle/src/common.h | 77 ----------- protocols/Omegle/src/communication.cpp | 2 +- protocols/Omegle/src/connection.cpp | 2 +- protocols/Omegle/src/dialogs.cpp | 2 +- protocols/Omegle/src/http.cpp | 2 +- protocols/Omegle/src/main.cpp | 2 +- protocols/Omegle/src/messages.cpp | 2 +- protocols/Omegle/src/process.cpp | 77 ----------- protocols/Omegle/src/proto.cpp | 16 +-- protocols/Omegle/src/stdafx.cpp | 18 --- protocols/Omegle/src/stdafx.cxx | 18 +++ protocols/Omegle/src/stdafx.h | 77 +++++++++++ protocols/Omegle/src/theme.cpp | 2 +- protocols/Omegle/src/utils.cpp | 2 +- 21 files changed, 149 insertions(+), 812 deletions(-) create mode 100644 protocols/Omegle/omegle.vcxproj create mode 100644 protocols/Omegle/omegle.vcxproj.filters delete mode 100644 protocols/Omegle/omegle_10.vcxproj delete mode 100644 protocols/Omegle/omegle_10.vcxproj.filters delete mode 100644 protocols/Omegle/omegle_12.vcxproj delete mode 100644 protocols/Omegle/omegle_12.vcxproj.filters delete mode 100644 protocols/Omegle/src/common.h delete mode 100644 protocols/Omegle/src/process.cpp delete mode 100644 protocols/Omegle/src/stdafx.cpp create mode 100644 protocols/Omegle/src/stdafx.cxx create mode 100644 protocols/Omegle/src/stdafx.h (limited to 'protocols/Omegle') diff --git a/protocols/Omegle/omegle.vcxproj b/protocols/Omegle/omegle.vcxproj new file mode 100644 index 0000000000..4313df045c --- /dev/null +++ b/protocols/Omegle/omegle.vcxproj @@ -0,0 +1,33 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {D5E2FEC1-B29A-476C-BD41-469FE282EE0F} + Omegle + + + + + + + Sync + + + \ No newline at end of file diff --git a/protocols/Omegle/omegle.vcxproj.filters b/protocols/Omegle/omegle.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/protocols/Omegle/omegle.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/protocols/Omegle/omegle_10.vcxproj b/protocols/Omegle/omegle_10.vcxproj deleted file mode 100644 index 059aabe645..0000000000 --- a/protocols/Omegle/omegle_10.vcxproj +++ /dev/null @@ -1,214 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {D5E2FEC1-B29A-476C-BD41-469FE282EE0F} - Omegle - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.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 - - - - Disabled - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - false - MultiThreadedDebugDLL - true - Use - common.h - Level3 - EditAndContinue - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - false - Use - common.h - Level3 - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - - - - - Full - Size - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - true - false - Use - common.h - Level3 - Fast - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - Size - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - true - false - Use - common.h - Level3 - Strict - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Omegle/omegle_10.vcxproj.filters b/protocols/Omegle/omegle_10.vcxproj.filters deleted file mode 100644 index f789bbdbea..0000000000 --- a/protocols/Omegle/omegle_10.vcxproj.filters +++ /dev/null @@ -1,100 +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 - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Resource Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/protocols/Omegle/omegle_12.vcxproj b/protocols/Omegle/omegle_12.vcxproj deleted file mode 100644 index 6b19b04fa7..0000000000 --- a/protocols/Omegle/omegle_12.vcxproj +++ /dev/null @@ -1,214 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {D5E2FEC1-B29A-476C-BD41-469FE282EE0F} - Omegle - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.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 - - - - Disabled - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - false - MultiThreadedDebugDLL - true - Use - common.h - Level3 - EditAndContinue - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - false - Use - common.h - Level3 - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - - - - - Full - Size - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - true - false - Use - common.h - Level3 - Fast - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - - - - - Full - Size - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;OMEGLE_EXPORTS;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions) - true - false - Use - common.h - Level3 - Strict - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Omegle/omegle_12.vcxproj.filters b/protocols/Omegle/omegle_12.vcxproj.filters deleted file mode 100644 index aecb742869..0000000000 --- a/protocols/Omegle/omegle_12.vcxproj.filters +++ /dev/null @@ -1,95 +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 - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Resource Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/protocols/Omegle/src/chat.cpp b/protocols/Omegle/src/chat.cpp index 30f890858c..269c6d1731 100644 --- a/protocols/Omegle/src/chat.cpp +++ b/protocols/Omegle/src/chat.cpp @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" void OmegleProto::UpdateChat(const TCHAR *name, const TCHAR *message, bool addtolog) { diff --git a/protocols/Omegle/src/common.h b/protocols/Omegle/src/common.h deleted file mode 100644 index 3b6b8b66bb..0000000000 --- a/protocols/Omegle/src/common.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - -Omegle plugin for Miranda Instant Messenger -_____________________________________________ - -Copyright © 2011-15 Robert Pösel - -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, either version 2 of the License, or -(at your option) any later version. - -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 . - -*/ - -#pragma once - -#pragma warning(disable:4996) - -#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 -//#include - -#include "version.h" - -class OmegleProto; - -#include "http.h" -#include "utils.h" -#include "client.h" -#include "proto.h" -#include "db.h" -#include "constants.h" -#include "dialogs.h" -#include "theme.h" -#include "resource.h" - -extern HINSTANCE g_hInstance; -extern std::string g_strUserAgent; -extern DWORD g_mirandaVersion; \ No newline at end of file diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp index d8b05df903..f6a027c5a4 100644 --- a/protocols/Omegle/src/communication.cpp +++ b/protocols/Omegle/src/communication.cpp @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" http::response Omegle_client::flap( const int request_type, std::string* request_data, std::string* get_data ) { diff --git a/protocols/Omegle/src/connection.cpp b/protocols/Omegle/src/connection.cpp index 0b94357f3a..12d8c3337c 100644 --- a/protocols/Omegle/src/connection.cpp +++ b/protocols/Omegle/src/connection.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" void OmegleProto::SignOn(void*) { diff --git a/protocols/Omegle/src/dialogs.cpp b/protocols/Omegle/src/dialogs.cpp index 727bd6254a..c2f13d2995 100644 --- a/protocols/Omegle/src/dialogs.cpp +++ b/protocols/Omegle/src/dialogs.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" static BOOL LoadDBCheckState(OmegleProto* ppro, HWND hwnd, int idCtrl, const char* szSetting, BYTE bDef = 0) { diff --git a/protocols/Omegle/src/http.cpp b/protocols/Omegle/src/http.cpp index 01904cc8e7..3f42c3f67c 100644 --- a/protocols/Omegle/src/http.cpp +++ b/protocols/Omegle/src/http.cpp @@ -20,4 +20,4 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" diff --git a/protocols/Omegle/src/main.cpp b/protocols/Omegle/src/main.cpp index 1e064b852a..bc4ce92aaf 100644 --- a/protocols/Omegle/src/main.cpp +++ b/protocols/Omegle/src/main.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" // TODO: Make following as "globals" structure? diff --git a/protocols/Omegle/src/messages.cpp b/protocols/Omegle/src/messages.cpp index 07aeef882c..893674de5b 100644 --- a/protocols/Omegle/src/messages.cpp +++ b/protocols/Omegle/src/messages.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" void OmegleProto::SendMsgWorker(void *p) { diff --git a/protocols/Omegle/src/process.cpp b/protocols/Omegle/src/process.cpp deleted file mode 100644 index 96c99db87f..0000000000 --- a/protocols/Omegle/src/process.cpp +++ /dev/null @@ -1,77 +0,0 @@ -/* - -Omegle plugin for Miranda Instant Messenger -_____________________________________________ - -Copyright © 2011-15 Robert Pösel - -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, either version 2 of the License, or -(at your option) any later version. - -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 "common.h" - -void OmegleProto::ProcessEvents( void* data ) -{ - if ( data == NULL ) - return; - - std::string* resp = (std::string*)data; - - if ( isOffline() ) - goto exit; - - LOG("***** Starting processing messages"); - - CODE_BLOCK_TRY - - std::vector< Omegle_message* > messages; - - Omegle_json_parser* p = new Omegle_json_parser( this ); - p->parse_messages( data, &messages ); - delete p; - - for(std::vector::size_type i=0; imessage_text.c_str()); - -/* - PROTORECVEVENT recv = {}; - CCSDATA ccs = {}; - - recv.flags = PREF_UTF; - recv.szMessage = const_cast(messages[i]->message_text.c_str()); - recv.timestamp = static_cast(messages[i]->time); - - ccs.hContact = hContact; - ccs.szProtoService = PSR_MESSAGE; - ccs.wParam = ID_STATUS_ONLINE; - ccs.lParam = reinterpret_cast(&recv); - CallService(MS_PROTO_CHAINRECV,0,reinterpret_cast(&ccs));*/ - - delete messages[i]; - } - messages.clear(); - - LOG("***** Messages processed"); - - CODE_BLOCK_CATCH - - LOG("***** Error processing messages: %s", e.what()); - - CODE_BLOCK_END - -exit: - delete resp; -} diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index ba156b0de6..d0ac1b3370 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" OmegleProto::OmegleProto(const char* proto_name, const TCHAR* username) : PROTO(proto_name, username) @@ -78,7 +78,7 @@ OmegleProto::~OmegleProto( ) ////////////////////////////////////////////////////////////////////////////// -DWORD_PTR OmegleProto::GetCaps( int type, MCONTACT hContact ) +DWORD_PTR OmegleProto::GetCaps(int type, MCONTACT) { switch(type) { case PFLAGNUM_1: @@ -160,13 +160,13 @@ int OmegleProto::OnEvent(PROTOEVENTTYPE event,WPARAM wParam,LPARAM lParam) ////////////////////////////////////////////////////////////////////////////// // EVENTS -INT_PTR OmegleProto::SvcCreateAccMgrUI(WPARAM wParam,LPARAM lParam) +INT_PTR OmegleProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) { return (INT_PTR)CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_OmegleACCOUNT), - (HWND)lParam, OmegleAccountProc, (LPARAM)this ); + (HWND)lParam, OmegleAccountProc, (LPARAM)this); } -int OmegleProto::OnModulesLoaded(WPARAM wParam,LPARAM lParam) +int OmegleProto::OnModulesLoaded(WPARAM, LPARAM) { // Register group chat GCREGISTER gcr = {sizeof(gcr)}; @@ -181,7 +181,7 @@ int OmegleProto::OnModulesLoaded(WPARAM wParam,LPARAM lParam) return 0; } -int OmegleProto::OnOptionsInit(WPARAM wParam,LPARAM lParam) +int OmegleProto::OnOptionsInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = g_hInstance; @@ -198,13 +198,13 @@ int OmegleProto::OnOptionsInit(WPARAM wParam,LPARAM lParam) return 0; } -int OmegleProto::OnPreShutdown(WPARAM wParam,LPARAM lParam) +int OmegleProto::OnPreShutdown(WPARAM, LPARAM) { SetStatus( ID_STATUS_OFFLINE ); return 0; } -int OmegleProto::OnContactDeleted(WPARAM wparam,LPARAM) +int OmegleProto::OnContactDeleted(WPARAM, LPARAM) { OnLeaveChat(NULL, NULL); return 0; diff --git a/protocols/Omegle/src/stdafx.cpp b/protocols/Omegle/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/protocols/Omegle/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 "common.h" \ No newline at end of file diff --git a/protocols/Omegle/src/stdafx.cxx b/protocols/Omegle/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/protocols/Omegle/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/protocols/Omegle/src/stdafx.h b/protocols/Omegle/src/stdafx.h new file mode 100644 index 0000000000..3b6b8b66bb --- /dev/null +++ b/protocols/Omegle/src/stdafx.h @@ -0,0 +1,77 @@ +/* + +Omegle plugin for Miranda Instant Messenger +_____________________________________________ + +Copyright © 2011-15 Robert Pösel + +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, either version 2 of the License, or +(at your option) any later version. + +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 . + +*/ + +#pragma once + +#pragma warning(disable:4996) + +#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 +//#include + +#include "version.h" + +class OmegleProto; + +#include "http.h" +#include "utils.h" +#include "client.h" +#include "proto.h" +#include "db.h" +#include "constants.h" +#include "dialogs.h" +#include "theme.h" +#include "resource.h" + +extern HINSTANCE g_hInstance; +extern std::string g_strUserAgent; +extern DWORD g_mirandaVersion; \ No newline at end of file diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp index 8e34bc2397..145baf716c 100644 --- a/protocols/Omegle/src/theme.cpp +++ b/protocols/Omegle/src/theme.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" extern OBJLIST g_Instances; diff --git a/protocols/Omegle/src/utils.cpp b/protocols/Omegle/src/utils.cpp index 9679f9f2ed..8e804585d5 100644 --- a/protocols/Omegle/src/utils.cpp +++ b/protocols/Omegle/src/utils.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . */ -#include "common.h" +#include "stdafx.h" std::string utils::url::encode(const std::string &s) { -- cgit v1.2.3