diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-20 21:34:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-20 21:34:16 +0300 |
commit | aadbf89f4e9d5939e9b3d9a6e75642c6208b9992 (patch) | |
tree | b8d6c2c722450beffe86cf3132175f9b340f3971 /protocols/Icq10 | |
parent | acea0ce48f332160f225e0c0f3a612952ea5620f (diff) |
stub for new ICQ protocol
Diffstat (limited to 'protocols/Icq10')
26 files changed, 1089 insertions, 0 deletions
diff --git a/protocols/Icq10/CMakeLists.txt b/protocols/Icq10/CMakeLists.txt new file mode 100644 index 0000000000..bb361358c2 --- /dev/null +++ b/protocols/Icq10/CMakeLists.txt @@ -0,0 +1,5 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc") +set(TARGET ICQ) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} comctl32.lib ws2_32.lib) +add_subdirectory(proto_icq) diff --git a/protocols/Icq10/icq10.vcxproj b/protocols/Icq10/icq10.vcxproj new file mode 100644 index 0000000000..1c6a247732 --- /dev/null +++ b/protocols/Icq10/icq10.vcxproj @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectName>Icq10</ProjectName> + <ProjectGuid>{EFB2355B-82B3-4759-B7D8-95F8E9506291}</ProjectGuid> + </PropertyGroup> + <ImportGroup Label="PropertySheets"> + <Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" /> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/protocols/Icq10/icq10.vcxproj.filters b/protocols/Icq10/icq10.vcxproj.filters new file mode 100644 index 0000000000..fcae13a9d8 --- /dev/null +++ b/protocols/Icq10/icq10.vcxproj.filters @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(ProjectDir)..\..\build\vc.common\common.filters" /> +</Project>
\ No newline at end of file diff --git a/protocols/Icq10/proto_icq/CMakeLists.txt b/protocols/Icq10/proto_icq/CMakeLists.txt new file mode 100644 index 0000000000..596ac21624 --- /dev/null +++ b/protocols/Icq10/proto_icq/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET Proto_ICQ) +include(${CMAKE_SOURCE_DIR}/cmake/icons.cmake)
\ No newline at end of file diff --git a/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj b/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj new file mode 100644 index 0000000000..21763bbc0b --- /dev/null +++ b/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectName>Proto_ICQ</ProjectName> + <ProjectGuid>{DB3B0449-E576-4BBB-8B08-AB9E914D39CA}</ProjectGuid> + </PropertyGroup> + <ImportGroup Label="PropertySheets"> + <Import Project="$(ProjectDir)..\..\..\build\vc.common\icons.props" /> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj.filters b/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj.filters new file mode 100644 index 0000000000..28f81e7f1b --- /dev/null +++ b/protocols/Icq10/proto_icq/Proto_ICQ.vcxproj.filters @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(ProjectDir)..\..\..\build\vc.common\common.filters" /> +</Project>
\ No newline at end of file diff --git a/protocols/Icq10/proto_icq/res/Away.ico b/protocols/Icq10/proto_icq/res/Away.ico Binary files differnew file mode 100644 index 0000000000..248a3e9916 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Away.ico diff --git a/protocols/Icq10/proto_icq/res/DND.ico b/protocols/Icq10/proto_icq/res/DND.ico Binary files differnew file mode 100644 index 0000000000..4833160eac --- /dev/null +++ b/protocols/Icq10/proto_icq/res/DND.ico diff --git a/protocols/Icq10/proto_icq/res/FFC.ico b/protocols/Icq10/proto_icq/res/FFC.ico Binary files differnew file mode 100644 index 0000000000..e7ec4d3ae2 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/FFC.ico diff --git a/protocols/Icq10/proto_icq/res/Invisible.ico b/protocols/Icq10/proto_icq/res/Invisible.ico Binary files differnew file mode 100644 index 0000000000..6a337c2926 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Invisible.ico diff --git a/protocols/Icq10/proto_icq/res/NA.ico b/protocols/Icq10/proto_icq/res/NA.ico Binary files differnew file mode 100644 index 0000000000..ec0621dc9f --- /dev/null +++ b/protocols/Icq10/proto_icq/res/NA.ico diff --git a/protocols/Icq10/proto_icq/res/Occupied.ico b/protocols/Icq10/proto_icq/res/Occupied.ico Binary files differnew file mode 100644 index 0000000000..04ea2a5855 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Occupied.ico diff --git a/protocols/Icq10/proto_icq/res/Offline.ico b/protocols/Icq10/proto_icq/res/Offline.ico Binary files differnew file mode 100644 index 0000000000..af862168cd --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Offline.ico diff --git a/protocols/Icq10/proto_icq/res/Online.ico b/protocols/Icq10/proto_icq/res/Online.ico Binary files differnew file mode 100644 index 0000000000..2e33305a76 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Online.ico diff --git a/protocols/Icq10/proto_icq/res/Phone.ico b/protocols/Icq10/proto_icq/res/Phone.ico Binary files differnew file mode 100644 index 0000000000..74c80b66ed --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Phone.ico diff --git a/protocols/Icq10/proto_icq/res/Proto_ICQ.rc b/protocols/Icq10/proto_icq/res/Proto_ICQ.rc new file mode 100644 index 0000000000..33d8faf243 --- /dev/null +++ b/protocols/Icq10/proto_icq/res/Proto_ICQ.rc @@ -0,0 +1,77 @@ +// Microsoft Visual C++ generated resource script. +// +#include "..\src\resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Russian (Russia) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS) +LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "..\\src\\resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON1 ICON "Offline.ico" +IDI_ICON2 ICON "Online.ico" +IDI_ICON3 ICON "Away.ico" +IDI_ICON4 ICON "Invisible.ico" +IDI_ICON5 ICON "NA.ico" +IDI_ICON6 ICON "DND.ico" +IDI_ICON7 ICON "Occupied.ico" +IDI_ICON8 ICON "FFC.ico" +IDI_ICON9 ICON "Phone.ico" +#endif // Russian (Russia) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/protocols/Icq10/proto_icq/src/resource.h b/protocols/Icq10/proto_icq/src/resource.h new file mode 100644 index 0000000000..c74e04f59e --- /dev/null +++ b/protocols/Icq10/proto_icq/src/resource.h @@ -0,0 +1,24 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Proto_ICQ.rc +// +#define IDI_ICON1 105 +#define IDI_ICON2 104 +#define IDI_ICON3 128 +#define IDI_ICON4 130 +#define IDI_ICON5 131 +#define IDI_ICON6 158 +#define IDI_ICON7 159 +#define IDI_ICON8 129 +#define IDI_ICON9 1002 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 110 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/protocols/Icq10/res/resources.rc b/protocols/Icq10/res/resources.rc new file mode 100644 index 0000000000..424b919f93 --- /dev/null +++ b/protocols/Icq10/res/resources.rc @@ -0,0 +1,170 @@ +// Microsoft Visual C++ generated resource script. +// +#include "..\src\resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_ICQACCOUNT DIALOGEX 0, 0, 186, 68 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg", 0, 0, 0x1 +BEGIN + LTEXT "ICQ Number:",IDC_STATIC,0,0,53,12 + EDITTEXT IDC_UIN,54,0,131,12,ES_AUTOHSCROLL + LTEXT "Password:",IDC_STATIC,0,16,53,12 + EDITTEXT IDC_PW,54,16,131,12,ES_PASSWORD | ES_AUTOHSCROLL + CONTROL "Create a new ICQ account",IDC_REGISTER,"Hyperlink",WS_TABSTOP,0,49,174,12 +END + +IDD_OPT_ICQ DIALOGEX 0, 0, 310, 234 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg", 0, 0, 0x1 +BEGIN + GROUPBOX "ICQ",IDC_STICQGROUP,4,0,302,93 + RTEXT "ICQ number:",IDC_STATIC11,12,14,51,8 + EDITTEXT IDC_ICQNUM,68,12,106,12,ES_AUTOHSCROLL + RTEXT "Password:",IDC_STATIC12,12,28,51,8 + EDITTEXT IDC_PASSWORD,68,26,106,12,ES_PASSWORD | ES_AUTOHSCROLL + LTEXT "Hint: If you don't enter your password here, Miranda will ask for the password every time you try to go online.",IDC_STATIC,12,43,286,19 + CONTROL "Retrieve a lost password or ICQ number",IDC_LOOKUPLINK, + "Hyperlink",WS_TABSTOP,12,78,286,8 + CONTROL "Create a new ICQ account using the ICQ website",IDC_NEWUINLINK, + "Hyperlink",WS_TABSTOP,12,66,286,8 + GROUPBOX "Connection settings",IDC_STATIC,4,94,302,136 + LTEXT "Login Server:",IDC_STATIC,12,108,55,8 + EDITTEXT IDC_ICQSERVER,68,106,106,12,ES_AUTOHSCROLL + LTEXT "Port:",IDC_STATIC,182,108,25,8 + EDITTEXT IDC_ICQPORT,208,106,29,12,ES_AUTOHSCROLL | ES_NUMBER + PUSHBUTTON "Default",IDC_RESETSERVER,241,106,56,12 + LTEXT "Hint: Use port 0 to connect on a random port. Try port 80 or port 443 if you are having problems connecting through an http proxy server.",IDC_STATIC,12,120,286,18 + CONTROL "Secure Connection (SSL)",IDC_SSL,"Button",BS_AUTOCHECKBOX | BS_TOP | WS_TABSTOP,12,138,290,10 + CONTROL "Secure (MD5) login",IDC_MD5LOGIN,"Button",BS_AUTOCHECKBOX | BS_TOP | WS_TABSTOP,12,150,290,10 + CONTROL "Legacy fix (for ICQ Groupware or IServerD only)",IDC_LEGACY, + "Button",BS_AUTOCHECKBOX | BS_TOP | WS_TABSTOP,12,162,290,10 + CONTROL "Send 'Keep-alives' (enable this if you use a proxy server and frequently get disconnected)",IDC_KEEPALIVE, + "Button",BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,12,174,290,18 + CONTROL "Ignore concurrent error messages",IDC_NOERRMULTI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,192,290,10 + LTEXT "Show connection error messages:",IDC_STATIC,12,204,290,8 + CONTROL "Slider1",IDC_LOGLEVEL,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,12,216,58,10 + LTEXT "",IDC_LEVELDESCR,72,216,230,10,SS_NOPREFIX +END + +IDD_OPT_POPUPS DIALOGEX 0, 0, 314, 251 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg", 0, 0, 0x1 +BEGIN + GROUPBOX "Options",IDC_STATIC,4,4,305,71 + CONTROL "Enable popup support",IDC_POPUPS_ENABLED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,19,216,10 + CONTROL "Display errors using popups",IDC_POPUPS_LOG_ENABLED, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,37,216,10 + CONTROL "Display popup when spambot is detected",IDC_POPUPS_SPAM_ENABLED, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,50,216,10 + GROUPBOX "Look && Feel",IDC_STATIC,4,80,305,160 + LTEXT "Back Color",IDC_STATIC,80,93,42,8 + LTEXT "Text Color",IDC_STATIC,130,93,40,8 + LTEXT "Timeout",IDC_STATIC,182,93,60,8 + LTEXT "Note",IDC_STATIC,12,105,60,8 + CONTROL "",IDC_POPUP_LOG0_BACKCOLOR,"ColourPicker",WS_TABSTOP,80,104,39,10 + CONTROL "",IDC_POPUP_LOG0_TEXTCOLOR,"ColourPicker",WS_TABSTOP,130,104,39,10 + EDITTEXT IDC_POPUP_LOG0_TIMEOUT,182,103,34,12,ES_AUTOHSCROLL | ES_NUMBER + LTEXT "Warning",IDC_STATIC,12,120,60,8 + CONTROL "",IDC_POPUP_LOG1_BACKCOLOR,"ColourPicker",WS_TABSTOP,80,119,39,10 + CONTROL "",IDC_POPUP_LOG1_TEXTCOLOR,"ColourPicker",WS_TABSTOP,130,119,39,10 + EDITTEXT IDC_POPUP_LOG1_TIMEOUT,182,118,34,12,ES_AUTOHSCROLL | ES_NUMBER + LTEXT "Error",IDC_STATIC,12,135,60,8 + CONTROL "",IDC_POPUP_LOG2_BACKCOLOR,"ColourPicker",WS_TABSTOP,80,134,39,10 + CONTROL "",IDC_POPUP_LOG2_TEXTCOLOR,"ColourPicker",WS_TABSTOP,130,134,39,10 + EDITTEXT IDC_POPUP_LOG2_TIMEOUT,182,133,34,12,ES_AUTOHSCROLL | ES_NUMBER + LTEXT "Fatal",IDC_STATIC,12,150,60,8 + CONTROL "",IDC_POPUP_LOG3_BACKCOLOR,"ColourPicker",WS_TABSTOP,80,149,39,10 + CONTROL "",IDC_POPUP_LOG3_TEXTCOLOR,"ColourPicker",WS_TABSTOP,130,149,39,10 + EDITTEXT IDC_POPUP_LOG3_TIMEOUT,182,148,34,12,ES_AUTOHSCROLL | ES_NUMBER + LTEXT "Spam detected",IDC_STATIC,12,165,60,8 + CONTROL "",IDC_POPUP_SPAM_BACKCOLOR,"ColourPicker",WS_TABSTOP,80,164,39,10 + CONTROL "",IDC_POPUP_SPAM_TEXTCOLOR,"ColourPicker",WS_TABSTOP,130,164,39,10 + EDITTEXT IDC_POPUP_SPAM_TIMEOUT,182,163,34,12,ES_AUTOHSCROLL | ES_NUMBER + CONTROL "&Use Windows colors",IDC_USEWINCOLORS,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP,12,183,220,8 + CONTROL "Use system &icons",IDC_USESYSICONS,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP,12,211,220,8 + DEFPUSHBUTTON "Previe&w",IDC_PREVIEW,247,192,52,12 + CONTROL "Use default colors",IDC_USEDEFCOLORS,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,12,196,221,10 +END + +IDD_INFO_ICQ DIALOGEX 0, 0, 222, 132 +STYLE DS_SETFONT | DS_3DLOOK | DS_FIXEDSYS | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg", 0, 0, 0x1 +BEGIN + LTEXT "UIN:",IDC_UINSTATIC,5,5,71,8 + EDITTEXT IDC_UIN,74,5,143,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "External IP:",IDC_STATIC,5,18,71,8 + EDITTEXT IDC_IP,74,18,74,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Internal IP:",IDC_STATIC,5,31,71,8 + EDITTEXT IDC_REALIP,74,31,139,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Port:",IDC_STATIC,5,44,71,8 + EDITTEXT IDC_PORT,74,44,141,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Protocol Version:",IDC_STATIC,5,57,71,8 + EDITTEXT IDC_VERSION,74,57,142,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "User Client:",IDC_STATIC,5,70,71,8 + EDITTEXT IDC_MIRVER,74,70,141,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Online since:",IDC_STATIC,5,83,71,8 + EDITTEXT IDC_ONLINESINCE,74,83,139,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "System up since:",IDC_SUPTIME,5,96,71,8 + EDITTEXT IDC_SYSTEMUPTIME,74,96,139,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Idle since:",IDC_STATIC,5,109,71,8 + EDITTEXT IDC_IDLETIME,74,109,139,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + LTEXT "Status:",IDC_STATIC,5,122,71,8 + EDITTEXT IDC_STATUS,74,122,139,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER +END + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "..\\src\\resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// diff --git a/protocols/Icq10/res/version.rc b/protocols/Icq10/res/version.rc new file mode 100644 index 0000000000..5a5ddd63ed --- /dev/null +++ b/protocols/Icq10/res/version.rc @@ -0,0 +1,9 @@ +// Microsoft Visual C++ generated resource script. +// +#ifdef APSTUDIO_INVOKED +#error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + +#include "..\src\version.h" + +#include "..\..\build\Version.rc" diff --git a/protocols/Icq10/src/icq_proto.cpp b/protocols/Icq10/src/icq_proto.cpp new file mode 100644 index 0000000000..abb02d21d6 --- /dev/null +++ b/protocols/Icq10/src/icq_proto.cpp @@ -0,0 +1,310 @@ +// ---------------------------------------------------------------------------80 +// ICQ plugin for Miranda Instant Messenger +// ________________________________________ +// +// Copyright © 2000-2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede +// Copyright © 2001-2002 Jon Keating, Richard Hughes +// Copyright © 2002-2004 Martin Öberg, Sam Kothari, Robert Rainwater +// Copyright © 2004-2010 Joe Kucera, George Hazan +// Copyright © 2012-2018 Miranda NG team +// +// 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, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// ----------------------------------------------------------------------------- +// DESCRIPTION: +// +// Protocol Interface Implementation +// ----------------------------------------------------------------------------- + +#include "stdafx.h" + +#include "m_icolib.h" + +#pragma warning(disable:4355) + +CIcqProto::CIcqProto(const char* aProtoName, const wchar_t* aUserName) : + PROTO<CIcqProto>(aProtoName, aUserName) +{ +} + +CIcqProto::~CIcqProto() +{ +} + +//////////////////////////////////////////////////////////////////////////////////////// +// OnModulesLoadedEx - performs hook registration + +void CIcqProto::OnModulesLoaded() +{ +} + +void CIcqProto::OnShutdown() +{ +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_AddToList - adds a contact to the contact list + +MCONTACT CIcqProto::AddToList(int flags, PROTOSEARCHRESULT *psr) +{ + return 0; +} + +MCONTACT CIcqProto::AddToListByEvent(int flags, int iContact, MEVENT hDbEvent) +{ + return 0; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_AuthAllow - processes the successful authorization + +int CIcqProto::Authorize(MEVENT hDbEvent) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_AuthDeny - handles the unsuccessful authorization + +int CIcqProto::AuthDeny(MEVENT hDbEvent, const wchar_t* szReason) +{ + return 1; // Failure +} + + +//////////////////////////////////////////////////////////////////////////////////////// +// PSR_AUTH + +int CIcqProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* pre) +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PSS_AUTHREQUEST + +int CIcqProto::AuthRequest(MCONTACT hContact, const wchar_t* szMessage) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_FileAllow - starts a file transfer + +HANDLE CIcqProto::FileAllow(MCONTACT hContact, HANDLE hTransfer, const wchar_t* szPath) +{ + return nullptr; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_FileCancel - cancels a file transfer + +int CIcqProto::FileCancel(MCONTACT hContact, HANDLE hTransfer) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_FileDeny - denies a file transfer + +int CIcqProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar_t* szReason) +{ + return 1; // Invalid contact +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_FileResume - processes file renaming etc + +int CIcqProto::FileResume(HANDLE hTransfer, int* action, const wchar_t** szFilename) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// GetCaps - return protocol capabilities bits + +INT_PTR CIcqProto::GetCaps(int type, MCONTACT hContact) +{ + INT_PTR nReturn = 0; + + switch (type) { + + case PFLAGNUM_1: + nReturn = PF1_IM | PF1_URL | PF1_AUTHREQ | PF1_BASICSEARCH | PF1_ADDSEARCHRES | + PF1_VISLIST | PF1_INVISLIST | PF1_MODEMSG | PF1_FILE | PF1_EXTSEARCH | + PF1_EXTSEARCHUI | PF1_SEARCHBYEMAIL | PF1_SEARCHBYNAME | + PF1_ADDED | PF1_CONTACT | PF1_SERVERCLIST; + break; + + case PFLAGNUM_2: + return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | + PF2_FREECHAT | PF2_INVISIBLE | PF2_ONTHEPHONE; + + case PFLAGNUM_3: + return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | + PF2_FREECHAT | PF2_INVISIBLE; + + case PFLAGNUM_4: + nReturn = PF4_SUPPORTIDLE | PF4_IMSENDOFFLINE | PF4_INFOSETTINGSVC | PF4_SUPPORTTYPING | PF4_AVATARS; + break; + + case PFLAGNUM_5: + return PF2_FREECHAT | PF2_ONTHEPHONE; + + case PFLAG_UNIQUEIDTEXT: + return (INT_PTR)Translate("User ID"); + } + + return nReturn; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// GetInfo - retrieves a contact info + +int CIcqProto::GetInfo(MCONTACT hContact, int infoType) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// SearchBasic - searches the contact by UID + +HANDLE CIcqProto::SearchBasic(const wchar_t *pszSearch) +{ + // Failure + return nullptr; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// SearchByEmail - searches the contact by its e-mail + +HANDLE CIcqProto::SearchByEmail(const wchar_t *email) +{ + return nullptr; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_SearchByName - searches the contact by its first or last name, or by a nickname + +HANDLE CIcqProto::SearchByName(const wchar_t *nick, const wchar_t *firstName, const wchar_t *lastName) +{ + return nullptr; // Failure +} + +HWND CIcqProto::CreateExtendedSearchUI(HWND parent) +{ + return nullptr; // Failure +} + +HWND CIcqProto::SearchAdvanced(HWND hwndDlg) +{ + return nullptr; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// RecvContacts + +int CIcqProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT* pre) +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// RecvMsg + +MEVENT CIcqProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// SendContacts + +int CIcqProto::SendContacts(MCONTACT hContact, int, int nContacts, MCONTACT *hContactsList) +{ + // Exit with Failure + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// SendFile - sends a file + +HANDLE CIcqProto::SendFile(MCONTACT hContact, const wchar_t* szDescription, wchar_t** ppszFiles) +{ + return nullptr; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_SendMessage - sends a message + +int CIcqProto::SendMsg(MCONTACT hContact, int, const char* pszSrc) +{ + return NULL; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// SendUrl + +int CIcqProto::SendUrl(MCONTACT hContact, int, const char* url) +{ + return 1; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_SetStatus - sets the protocol status + +int CIcqProto::SetStatus(int iNewStatus) +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_GetAwayMsg - returns a contact's away message + +HANDLE CIcqProto::GetAwayMsg(MCONTACT hContact) +{ + return nullptr; // Failure +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PSR_AWAYMSG - processes received status mode message + +int CIcqProto::RecvAwayMsg(MCONTACT hContact, int, PROTORECVEVENT* evt) +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_SetAwayMsg - sets the away status message + +int CIcqProto::SetAwayMsg(int status, const wchar_t* msg) +{ + return 0; // Success +} + +///////////////////////////////////////////////////////////////////////////////////////// +// PS_UserIsTyping - sends a UTN notification + +int CIcqProto::UserIsTyping(MCONTACT hContact, int type) +{ + return 1; +} + +//////////////////////////////////////////////////////////////////////////////////////// +// PS_SetApparentMode - sets the visibility status + +int CIcqProto::SetApparentMode(MCONTACT hContact, int mode) +{ + return 1; // Failure +} diff --git a/protocols/Icq10/src/icq_proto.h b/protocols/Icq10/src/icq_proto.h new file mode 100644 index 0000000000..3e3d56accf --- /dev/null +++ b/protocols/Icq10/src/icq_proto.h @@ -0,0 +1,96 @@ +// ---------------------------------------------------------------------------80 +// ICQ plugin for Miranda Instant Messenger +// ________________________________________ +// +// Copyright © 2000-2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede +// Copyright © 2001-2002 Jon Keating, Richard Hughes +// Copyright © 2002-2004 Martin Öberg, Sam Kothari, Robert Rainwater +// Copyright © 2004-2010 Joe Kucera, George Hazan +// Copyright © 2012-2018 Miranda NG team +// +// 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, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// ----------------------------------------------------------------------------- +// DESCRIPTION: +// +// Protocol Interface declarations +// ----------------------------------------------------------------------------- + +#ifndef _ICQ_PROTO_H_ +#define _ICQ_PROTO_H_ + +#include "m_system.h" +#include "m_protoint.h" + +struct CIcqProto : public PROTO<CIcqProto> +{ + CIcqProto(const char*, const wchar_t*); + ~CIcqProto(); + + //==================================================================================== + // PROTO_INTERFACE + //==================================================================================== + + MCONTACT AddToList( int flags, PROTOSEARCHRESULT *psr) override; + MCONTACT AddToListByEvent( int flags, int iContact, MEVENT hDbEvent) override; + + int Authorize(MEVENT hDbEvent) override; + int AuthDeny(MEVENT hDbEvent, const wchar_t *szReason) override; + int AuthRecv(MCONTACT hContact, PROTORECVEVENT*) override; + int AuthRequest(MCONTACT hContact, const wchar_t *szMessage) override; + + HANDLE FileAllow(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szPath) override; + int FileCancel(MCONTACT hContact, HANDLE hTransfer) override; + int FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szReason) override; + int FileResume( HANDLE hTransfer, int *action, const wchar_t **szFilename) override; + + INT_PTR GetCaps(int type, MCONTACT hContact = NULL) override; + int GetInfo(MCONTACT hContact, int infoType) override; + + HANDLE SearchBasic(const wchar_t *id) override; + HANDLE SearchByEmail(const wchar_t *email) override; + HANDLE SearchByName(const wchar_t *nick, const wchar_t *firstName, const wchar_t *lastName) override; + HWND SearchAdvanced(HWND owner) override; + HWND CreateExtendedSearchUI(HWND owner) override; + + int RecvContacts(MCONTACT hContact, PROTORECVEVENT*) override; + MEVENT RecvMsg(MCONTACT hContact, PROTORECVEVENT*) override; + + int SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) override; + HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override; + int SendMsg(MCONTACT hContact, int flags, const char *msg) override; + int SendUrl(MCONTACT hContact, int flags, const char *url) override; + + int SetApparentMode(MCONTACT hContact, int mode) override; + int SetStatus(int iNewStatus) override; + + HANDLE GetAwayMsg(MCONTACT hContact) override; + int RecvAwayMsg(MCONTACT hContact, int mode, PROTORECVEVENT *evt) override; + int SetAwayMsg(int m_iStatus, const wchar_t *msg) override; + + int UserIsTyping(MCONTACT hContact, int type) override; + + void OnModulesLoaded() override; + void OnShutdown() override; +}; + +struct CMPlugin : public ACCPROTOPLUGIN<CIcqProto> +{ + CMPlugin(); + + int Load() override; + int Unload() override; +}; + +#endif diff --git a/protocols/Icq10/src/main.cpp b/protocols/Icq10/src/main.cpp new file mode 100644 index 0000000000..ae2c297a62 --- /dev/null +++ b/protocols/Icq10/src/main.cpp @@ -0,0 +1,72 @@ +// ----------------------------------------------------------------------------- +// ICQ plugin for Miranda NG +// ----------------------------------------------------------------------------- +// Copyright © 2018 Miranda NG team +// +// 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, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// ----------------------------------------------------------------------------- + +#include "stdafx.h" + +bool g_bPopupService; + +///////////////////////////////////////////////////////////////////////////////////////// + +static PLUGININFOEX pluginInfoEx = { + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + { 0xEFB2355B, 0x82B3, 0x4759, { 0xb7, 0xd8, 0x95, 0xf8, 0xe9, 0x50, 0x62, 0x91 } } // {EFB2355B-82B3-4759-B7D8-95F8E9506291} +}; + +CMPlugin::CMPlugin() : + ACCPROTOPLUGIN<CIcqProto>(MODULENAME, pluginInfoEx) +{ + SetUniqueId("UIN"); +} + +///////////////////////////////////////////////////////////////////////////////////////// + +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; + +///////////////////////////////////////////////////////////////////////////////////////// + +CMPlugin g_plugin; + +///////////////////////////////////////////////////////////////////////////////////////// + +int ModuleLoad(WPARAM, LPARAM) +{ + g_bPopupService = ServiceExists(MS_POPUP_ADDPOPUPT); + return 0; +} + +int CMPlugin::Load() +{ + HookEvent(ME_SYSTEM_MODULELOAD, ModuleLoad); + HookEvent(ME_SYSTEM_MODULEUNLOAD, ModuleLoad); + ModuleLoad(0, 0); + return 0; +}; + +int CMPlugin::Unload() +{ + return 0; +} diff --git a/protocols/Icq10/src/resource.h b/protocols/Icq10/src/resource.h new file mode 100644 index 0000000000..ceeaac87fa --- /dev/null +++ b/protocols/Icq10/src/resource.h @@ -0,0 +1,154 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by D:\miranda-ng\protocols\IcqOscarJ\res\resources.rc + +#define IDD_ICQACCOUNT 101 +#define IDD_OPT_ICQ 102 +#define IDD_OPT_POPUPS 103 +#define IDC_POPUPS_ENABLED 410 +#define IDC_POPUPS_LOG_ENABLED 411 +#define IDC_POPUPS_SPAM_ENABLED 412 +#define IDC_POPUP_LOG0_TEXTCOLOR 420 +#define IDC_POPUP_LOG1_TEXTCOLOR 421 +#define IDC_POPUP_LOG2_TEXTCOLOR 422 +#define IDC_POPUP_LOG3_TEXTCOLOR 423 +#define IDC_POPUP_SPAM_TEXTCOLOR 425 +#define IDC_POPUP_LOG0_BACKCOLOR 430 +#define IDC_POPUP_LOG1_BACKCOLOR 431 +#define IDC_POPUP_LOG2_BACKCOLOR 432 +#define IDC_POPUP_LOG3_BACKCOLOR 433 +#define IDC_POPUP_SPAM_BACKCOLOR 435 +#define IDC_POPUP_LOG0_TIMEOUT 440 +#define IDC_POPUP_LOG1_TIMEOUT 441 +#define IDC_POPUP_LOG2_TIMEOUT 442 +#define IDC_POPUP_LOG3_TIMEOUT 443 +#define IDC_POPUP_SPAM_TIMEOUT 444 +#define IDC_USEWINCOLORS 450 +#define IDC_USESYSICONS 451 +#define IDC_PREVIEW 455 +#define IDC_SAVEPASS 1004 +#define IDC_RETRXSTATUS 1005 +#define IDC_XTITLE_STATIC 1006 +#define IDC_XMSG_STATIC 1007 +#define IDC_SSL 1008 +#define IDC_MD5LOGIN 1009 +#define IDC_XTITLE 1010 +#define IDC_LEGACY 1010 +#define IDC_KEEPALIVE 1011 +#define IDC_XMSG 1011 +#define IDC_UTFSTATIC 1013 +#define IDC_UTFCODEPAGE 1014 +#define IDC_PW 1015 +#define IDC_TEMPVISIBLE 1015 +#define IDC_REGISTER 1016 +#define IDC_EDITAUTH 1017 +#define IDC_LOGINPW 1018 +#define IDC_INSTRUCTION 1019 +#define IDC_PASSWORD 1020 +#define IDC_SUPTIME 1020 +#define IDC_DCENABLE 1020 +#define IDC_DCPASSIVE 1021 +#define IDC_OLDPASS 1021 +#define IDC_ICQNUM 1022 +#define IDC_USEPOPUPCOLORS 1023 +#define IDC_USEDEFCOLORS 1024 +#define IDC_CLIST 1035 +#define IDC_XSTATUSENABLE 1040 +#define IDC_XSTATUSAUTO 1041 +#define IDC_XSTATUSRESET 1042 +#define IDC_MOODSENABLE 1043 +#define IDC_KILLSPAMBOTS 1045 +#define IDC_EMAIL 1048 +#define IDC_NICK 1053 +#define IDC_GENDER 1060 +#define IDC_CITY 1061 +#define IDC_STATE 1062 +#define IDC_COUNTRY 1063 +#define IDC_COMPANY 1066 +#define IDC_DEPARTMENT 1067 +#define IDC_POSITION 1069 +#define IDC_IP 1094 +#define IDC_UINSTATIC 1122 +#define IDC_UIN 1123 +#define IDC_STATIC11 1154 +#define IDC_STATIC12 1155 +#define IDC_ICQSERVER 1171 +#define IDC_ICQPORT 1172 +#define IDC_VERSION 1179 +#define IDC_FIRSTNAME 1224 +#define IDC_LASTNAME 1225 +#define IDC_REALIP 1230 +#define IDC_RECONNECTREQD 1239 +#define IDC_OFFLINETOENABLE 1240 +#define IDC_PORT 1249 +#define IDC_MIRVER 1251 +#define IDC_ONLINESINCE 1252 +#define IDC_SYSTEMUPTIME 1253 +#define IDC_IDLETIME 1254 +#define IDC_STATUS 1255 +#define IDC_SLOWSEND 1301 +#define IDC_LOGLEVEL 1331 +#define IDC_LEVELDESCR 1332 +#define IDC_NOERRMULTI 1333 +#define IDC_STICQGROUP 1374 +#define IDC_AGERANGE 1410 +#define IDC_MARITALSTATUS 1411 +#define IDC_KEYWORDS 1412 +#define IDC_LANGUAGE 1414 +#define IDC_WORKFIELD 1421 +#define IDC_PASTCAT 1422 +#define IDC_PASTKEY 1423 +#define IDC_INTERESTSCAT 1424 +#define IDC_INTERESTSKEY 1425 +#define IDC_ORGANISATION 1426 +#define IDC_ORGKEYWORDS 1427 +#define IDC_OTHERGROUP 1429 +#define IDC_ONLINEONLY 1430 +#define IDC_HOMEPAGECAT 1431 +#define IDC_HOMEPAGEKEY 1432 +#define IDC_SUMMARYGROUP 1434 +#define IDC_WORKGROUP 1435 +#define IDC_LOCATIONGROUP 1436 +#define IDC_BACKGROUNDGROUP 1437 +#define IDC_NEWUINLINK 1438 +#define IDC_LOOKUPLINK 1439 +#define IDC_RESETSERVER 1472 +#define IDC_UPLOADNOW 1521 +#define IDC_GROUPS 1522 +#define IDC_ALLGROUPS 1526 +#define IDC_VISIBILITY 1527 +#define IDC_IGNORE 1528 +#define IDC_ENABLE 1529 +#define IDC_LOADFROMSERVER 1530 +#define IDC_ADDSERVER 1532 +#define IDC_SAVETOSERVER 1533 +#define IDC_ENABLEAVATARS 1536 +#define IDC_AUTOLOADAVATARS 1537 +#define IDC_STRICTAVATARCHECK 1539 +#define IDC_WEBAWARE 1546 +#define IDC_DCALLOW_ANY 1547 +#define IDC_DCALLOW_CLIST 1548 +#define IDC_DCALLOW_AUTH 1549 +#define IDC_PUBLISHPRIMARY 1550 +#define IDC_ADD_ANY 1551 +#define IDC_ADD_AUTH 1552 +#define IDC_STATUSMSG_CLIST 1553 +#define IDC_STATUSMSG_VISIBLE 1554 +#define IDC_STATIC_NOTONLINE 1555 +#define IDC_STATIC_DC2 1556 +#define IDC_STATIC_DC1 1557 +#define IDC_STATIC_CLIST 1558 +#define IDC_SAVE 1600 +#define IDC_LIST 1601 +#define IDC_UPLOADING 1602 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 113 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1026 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/protocols/Icq10/src/stdafx.cxx b/protocols/Icq10/src/stdafx.cxx new file mode 100644 index 0000000000..1fcbafc511 --- /dev/null +++ b/protocols/Icq10/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-18 Miranda NG team (https://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 <http://www.gnu.org/licenses/>. +*/ + +#include "stdafx.h" diff --git a/protocols/Icq10/src/stdafx.h b/protocols/Icq10/src/stdafx.h new file mode 100644 index 0000000000..3191bcf750 --- /dev/null +++ b/protocols/Icq10/src/stdafx.h @@ -0,0 +1,75 @@ +// ---------------------------------------------------------------------------80 +// ICQ plugin for Miranda Instant Messenger +// ________________________________________ +// +// Copyright © 2000-2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede +// Copyright © 2001-2002 Jon Keating, Richard Hughes +// Copyright © 2002-2004 Martin Öberg, Sam Kothari, Robert Rainwater +// Copyright © 2004-2010 Joe Kucera +// Copyright © 2012-2018 Miranda NG team +// +// 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, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// ----------------------------------------------------------------------------- +// DESCRIPTION: +// +// Includes all header files that should be precompiled to speed up compilation. +// ----------------------------------------------------------------------------- + +#pragma once + +// Windows includes +#include <windows.h> + +// Standard includes +#include <stdio.h> +#include <time.h> +#include <io.h> +#include <malloc.h> +#include <direct.h> +#include <fcntl.h> +#include <process.h> + +// Miranda IM SDK includes +#include <newpluginapi.h> // This must be included first +#include <m_clist.h> +#include <m_database.h> +#include <m_langpack.h> +#include <m_message.h> +#include <m_netlib.h> +#include <m_protocols.h> +#include <m_protosvc.h> +#include <m_options.h> +#include <m_system.h> +#include <m_userinfo.h> +#include <m_utils.h> +#include <m_idle.h> +#include <m_skin.h> +#include <m_popup.h> +#include <m_ignore.h> +#include <m_icolib.h> +#include <m_avatars.h> +#include <m_timezones.h> +#include <win2k.h> +#include <m_gui.h> + +// Project resources +#include "resource.h" + +// ICQ plugin includes +#include "version.h" + +#define MODULENAME "ICQ" + +#include "icq_proto.h" diff --git a/protocols/Icq10/src/version.h b/protocols/Icq10/src/version.h new file mode 100644 index 0000000000..85aa555d6d --- /dev/null +++ b/protocols/Icq10/src/version.h @@ -0,0 +1,13 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 95 +#define __RELEASE_NUM 10 +#define __BUILD_NUM 1 + +#include <stdver.h> + +#define __PLUGIN_NAME "Icq/2018 protocol" +#define __FILENAME "ICQ.dll" +#define __DESCRIPTION "ICQ protocol support for Miranda NG." +#define __AUTHOR "George Hazan" +#define __AUTHORWEB "https://miranda-ng.org/p/Icq10/" +#define __COPYRIGHT "© 2018 George Hazan" |