diff options
Diffstat (limited to 'protocols/Icq10/src')
-rw-r--r-- | protocols/Icq10/src/icq_proto.cpp | 310 | ||||
-rw-r--r-- | protocols/Icq10/src/icq_proto.h | 96 | ||||
-rw-r--r-- | protocols/Icq10/src/main.cpp | 72 | ||||
-rw-r--r-- | protocols/Icq10/src/resource.h | 154 | ||||
-rw-r--r-- | protocols/Icq10/src/stdafx.cxx | 18 | ||||
-rw-r--r-- | protocols/Icq10/src/stdafx.h | 75 | ||||
-rw-r--r-- | protocols/Icq10/src/version.h | 13 |
7 files changed, 738 insertions, 0 deletions
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" |