From 803724f9df40d8d0505fa7913666c55b9099337d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 10 Aug 2015 16:04:37 +0000 Subject: tlen: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14899 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 +- build/vc.common/common.props | 2 +- protocols/Tlen/src/stdafx.h | 499 +++++++++++++++++++++++++++++++++ protocols/Tlen/src/tlen.cpp | 2 +- protocols/Tlen/src/tlen.h | 499 --------------------------------- protocols/Tlen/src/tlen_advsearch.cpp | 2 +- protocols/Tlen/src/tlen_avatar.cpp | 2 +- protocols/Tlen/src/tlen_file.cpp | 2 +- protocols/Tlen/src/tlen_file.h | 2 +- protocols/Tlen/src/tlen_iq.cpp | 2 +- protocols/Tlen/src/tlen_iq.h | 2 +- protocols/Tlen/src/tlen_iqid.cpp | 2 +- protocols/Tlen/src/tlen_list.cpp | 2 +- protocols/Tlen/src/tlen_list.h | 2 +- protocols/Tlen/src/tlen_misc.cpp | 2 +- protocols/Tlen/src/tlen_muc.cpp | 2 +- protocols/Tlen/src/tlen_opt.cpp | 2 +- protocols/Tlen/src/tlen_p2p_new.cpp | 2 + protocols/Tlen/src/tlen_p2p_old.cpp | 2 + protocols/Tlen/src/tlen_p2p_old.h | 2 +- protocols/Tlen/src/tlen_picture.cpp | 2 +- protocols/Tlen/src/tlen_picture.h | 2 +- protocols/Tlen/src/tlen_presence.cpp | 2 +- protocols/Tlen/src/tlen_svc.cpp | 2 +- protocols/Tlen/src/tlen_thread.cpp | 2 +- protocols/Tlen/src/tlen_userinfo.cpp | 2 +- protocols/Tlen/src/tlen_util.cpp | 2 +- protocols/Tlen/src/tlen_voice.cpp | 2 +- protocols/Tlen/src/tlen_voice.h | 2 +- protocols/Tlen/src/tlen_ws.cpp | 2 +- protocols/Tlen/src/tlen_xml.cpp | 2 +- protocols/Tlen/tlen.vcxproj | 40 +++ protocols/Tlen/tlen.vcxproj.filters | 4 + protocols/Tlen/tlen_10.vcxproj | 332 ---------------------- protocols/Tlen/tlen_10.vcxproj.filters | 205 -------------- protocols/Tlen/tlen_12.vcxproj | 337 ---------------------- protocols/Tlen/tlen_12.vcxproj.filters | 217 -------------- protocols/Tlen/tlen_14.vcxproj | 337 ---------------------- protocols/Tlen/tlen_14.vcxproj.filters | 217 -------------- 45 files changed, 580 insertions(+), 2177 deletions(-) create mode 100644 protocols/Tlen/src/stdafx.h delete mode 100644 protocols/Tlen/src/tlen.h create mode 100644 protocols/Tlen/tlen.vcxproj create mode 100644 protocols/Tlen/tlen.vcxproj.filters delete mode 100644 protocols/Tlen/tlen_10.vcxproj delete mode 100644 protocols/Tlen/tlen_10.vcxproj.filters delete mode 100644 protocols/Tlen/tlen_12.vcxproj delete mode 100644 protocols/Tlen/tlen_12.vcxproj.filters delete mode 100644 protocols/Tlen/tlen_14.vcxproj delete mode 100644 protocols/Tlen/tlen_14.vcxproj.filters diff --git a/bin10/mir_dev.sln b/bin10/mir_dev.sln index 4b701526ed..4eb21c8494 100644 --- a/bin10/mir_dev.sln +++ b/bin10/mir_dev.sln @@ -295,7 +295,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_10.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MobileState", "..\plugins\MobileState\mobilestate.vcxproj", "{AE677E3A-DAC5-42FD-8762-47370C57639B}" EndProject diff --git a/bin10/mir_full.sln b/bin10/mir_full.sln index 371ad77df1..3ec185bdb2 100644 --- a/bin10/mir_full.sln +++ b/bin10/mir_full.sln @@ -295,7 +295,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_10.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Xfire", "..\protocols\Xfire\xfire.vcxproj", "{E4CD8BBA-B580-4584-AC3E-B4E9915026AE}" EndProject diff --git a/bin10/mir_full_pro.sln b/bin10/mir_full_pro.sln index fc2369c5dd..b4c9e2d063 100644 --- a/bin10/mir_full_pro.sln +++ b/bin10/mir_full_pro.sln @@ -329,7 +329,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_10.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Xfire", "..\protocols\Xfire\xfire.vcxproj", "{E4CD8BBA-B580-4584-AC3E-B4E9915026AE}" EndProject diff --git a/bin12/mir_dev.sln b/bin12/mir_dev.sln index eacc703cb9..80a0d2ccdd 100644 --- a/bin12/mir_dev.sln +++ b/bin12/mir_dev.sln @@ -297,7 +297,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_12.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MobileState", "..\plugins\MobileState\mobilestate.vcxproj", "{AE677E3A-DAC5-42FD-8762-47370C57639B}" EndProject diff --git a/bin12/mir_full.sln b/bin12/mir_full.sln index 7301d15f91..21c017323a 100644 --- a/bin12/mir_full.sln +++ b/bin12/mir_full.sln @@ -299,7 +299,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_12.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Xfire", "..\protocols\Xfire\xfire.vcxproj", "{E4CD8BBA-B580-4584-AC3E-B4E9915026AE}" EndProject diff --git a/bin14/mir_dev.sln b/bin14/mir_dev.sln index 179f359a0b..599d399064 100644 --- a/bin14/mir_dev.sln +++ b/bin14/mir_dev.sln @@ -297,7 +297,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_14.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MobileState", "..\plugins\MobileState\mobilestate.vcxproj", "{AE677E3A-DAC5-42FD-8762-47370C57639B}" EndProject diff --git a/bin14/mir_full.sln b/bin14/mir_full.sln index edd34529d4..09bc8db77f 100644 --- a/bin14/mir_full.sln +++ b/bin14/mir_full.sln @@ -299,7 +299,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackUpdater", "..\plugins\P EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QuickContacts", "..\plugins\QuickContacts\quickcontacts.vcxproj", "{7FC00D59-03D3-4A6C-AEFE-67349C9C9E10}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen_14.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tlen", "..\protocols\Tlen\tlen.vcxproj", "{F3208C96-3C21-46AA-8695-C794E28CDC34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Xfire", "..\protocols\Xfire\xfire.vcxproj", "{E4CD8BBA-B580-4584-AC3E-B4E9915026AE}" EndProject diff --git a/build/vc.common/common.props b/build/vc.common/common.props index 6f5eab3cc1..7b5be63ec3 100644 --- a/build/vc.common/common.props +++ b/build/vc.common/common.props @@ -34,7 +34,7 @@ false - Wtsapi32.lib;netapi32.lib;pdh.lib;shlwapi.lib;Strmiids.lib;gdiplus.lib;dbghelp.lib;Setupapi.lib;msimg32.lib;comctl32.lib;ws2_32.lib;UxTheme.lib;Iphlpapi.lib;%(AdditionalDependencies) + winmm.lib;Wtsapi32.lib;netapi32.lib;pdh.lib;shlwapi.lib;Strmiids.lib;gdiplus.lib;dbghelp.lib;Setupapi.lib;msimg32.lib;comctl32.lib;ws2_32.lib;UxTheme.lib;Iphlpapi.lib;%(AdditionalDependencies) $(CommonLibDir) true false diff --git a/protocols/Tlen/src/stdafx.h b/protocols/Tlen/src/stdafx.h new file mode 100644 index 0000000000..b0bf31b044 --- /dev/null +++ b/protocols/Tlen/src/stdafx.h @@ -0,0 +1,499 @@ +/* + +Jabber Protocol Plugin for Miranda IM +Tlen Protocol Plugin for Miranda NG +Copyright (C) 2002-2004 Santithorn Bunchua +Copyright (C) 2004-2007 Piotr Piastucki + +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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +#ifndef _TLEN_H_ +#define _TLEN_H_ + +#define __try +#define __except(x) if (0) +#define __finally + +#define _try __try +#define _except __except +#define _finally __finally + +#ifdef _DEBUG +#define _CRTDBG_MAP_ALLOC +#include +#include +#endif +#define ENABLE_LOGGING + +/******************************************************************* + * Global compilation flags + *******************************************************************/ + +/******************************************************************* + * Global header files + *******************************************************************/ + +#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 "tlen_xml.h" +#include "crypto/polarssl/aes.h" +#include "crypto/polarssl/bignum.h" + +/******************************************************************* + * Global constants + *******************************************************************/ +#define TLEN_DEFAULT_PORT 443 +#define TLEN_IQID "mim_" +#define TLEN_REGISTER "http://reg.tlen.pl/" +#define TLEN_MAX_SEARCH_RESULTS_PER_PAGE 20 + +// User-defined message +#define WM_TLEN_REFRESH (WM_USER + 100) +// Error code +#define TLEN_ERROR_REDIRECT 302 +#define TLEN_ERROR_BAD_REQUEST 400 +#define TLEN_ERROR_UNAUTHORIZED 401 +#define TLEN_ERROR_PAYMENT_REQUIRED 402 +#define TLEN_ERROR_FORBIDDEN 403 +#define TLEN_ERROR_NOT_FOUND 404 +#define TLEN_ERROR_NOT_ALLOWED 405 +#define TLEN_ERROR_NOT_ACCEPTABLE 406 +#define TLEN_ERROR_REGISTRATION_REQUIRED 407 +#define TLEN_ERROR_REQUEST_TIMEOUT 408 +#define TLEN_ERROR_CONFLICT 409 +#define TLEN_ERROR_INTERNAL_SERVER_ERROR 500 +#define TLEN_ERROR_NOT_IMPLEMENTED 501 +#define TLEN_ERROR_REMOTE_SERVER_ERROR 502 +#define TLEN_ERROR_SERVICE_UNAVAILABLE 503 +#define TLEN_ERROR_REMOTE_SERVER_TIMEOUT 504 + +#define TLEN_ALERTS_ACCEPT_ALL 0 +#define TLEN_ALERTS_IGNORE_NIR 1 +#define TLEN_ALERTS_IGNORE_ALL 2 + +#define TLEN_IMAGES_ACCEPT_ALL 0 +#define TLEN_IMAGES_IGNORE_NIR 1 +#define TLEN_IMAGES_IGNORE_ALL 2 + +#define TLEN_MUC_ASK 0 +#define TLEN_MUC_ACCEPT_IR 1 +#define TLEN_MUC_ACCEPT_ALL 2 +#define TLEN_MUC_IGNORE_NIR 3 +#define TLEN_MUC_IGNORE_ALL 4 + +#define IDC_STATIC (-1) + +/******************************************************************* + * Global data structures and data type definitions + *******************************************************************/ + +typedef enum { + LIST_ROSTER, // Roster list + LIST_CHATROOM, // Groupchat room currently joined + LIST_FILE, // Current file transfer session + LIST_INVITATIONS,// Invitations to be sent + LIST_SEARCH, // Rooms names being searched + LIST_VOICE, + LIST_PICTURE +} TLEN_LIST; + +typedef enum { + IQ_PROC_NONE, + IQ_PROC_GETSEARCH +} TLEN_IQ_PROCID; + +typedef enum { + SUB_NONE, + SUB_TO, + SUB_FROM, + SUB_BOTH +} TLEN_SUBSCRIPTION; + +typedef struct { + char *szOnline; + char *szAway; + char *szNa; + char *szDnd; + char *szFreechat; + char *szInvisible; +} TLEN_MODEMSGS; + +typedef struct { + char mailBase[256]; + char mailMsg[256]; + int mailMsgMthd; + char mailIndex[256]; + int mailIndexMthd; + char mailLogin[256]; + int mailLoginMthd; + char mailCompose[256]; + int mailComposeMthd; + char avatarGet[256]; + int avatarGetMthd; + char avatarUpload[256]; + int avatarUploadMthd; + char avatarRemove[256]; + int avatarRemoveMthd; +} TlenConfiguration; + +typedef struct { + BOOL useEncryption; + BOOL reconnect; + BOOL rosterSync; + BOOL offlineAsInvisible; + BOOL leaveOfflineMessage; + int offlineMessageOption; + BOOL ignoreAdvertisements; + int alertPolicy; + int groupChatPolicy; + int voiceChatPolicy; + int imagePolicy; + BOOL enableAvatars; + BOOL enableVersion; + BOOL useNudge; + BOOL logAlerts; + BOOL useNewP2P; + BOOL sendKeepAlive; + BOOL savePassword; +} TlenOptions; + + +struct TLEN_IQ_FUNC_STRUCT; +struct TLEN_LIST_ITEM_STRUCT; +struct TLEN_VOICE_CONTROL_STRUCT; + +struct TlenProtocol : public PROTO +{ + TlenProtocol( const char*, const TCHAR* ); + ~TlenProtocol(); + + //==================================================================================== + // PROTO_INTERFACE + //==================================================================================== + + virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr); + virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent); + + virtual int __cdecl Authorize(MEVENT hDbEvent); + virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR* szReason); + + virtual HANDLE __cdecl FileAllow(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szPath); + virtual int __cdecl FileCancel(MCONTACT hContact, HANDLE hTransfer); + virtual int __cdecl FileDeny(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szReason); + virtual int __cdecl FileResume(HANDLE hTransfer, int* action, const TCHAR** szFilename); + + virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL); + virtual int __cdecl GetInfo(MCONTACT hContact, int infoType); + + virtual HANDLE __cdecl SearchBasic(const TCHAR* id); + virtual HANDLE __cdecl SearchByEmail(const TCHAR* email); + virtual HANDLE __cdecl SearchByName(const TCHAR* nick, const TCHAR* firstName, const TCHAR* lastName); + virtual HWND __cdecl SearchAdvanced(HWND owner); + virtual HWND __cdecl CreateExtendedSearchUI(HWND owner); + + virtual int __cdecl RecvFile(MCONTACT hContact, PROTORECVFILET*); + virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT*); + virtual int __cdecl RecvUrl(MCONTACT hContact, PROTORECVEVENT*); + + virtual int __cdecl SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList); + virtual HANDLE __cdecl SendFile(MCONTACT hContact, const TCHAR* szDescription, TCHAR** ppszFiles); + virtual int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg); + virtual int __cdecl SendUrl(MCONTACT hContact, int flags, const char* url); + + virtual int __cdecl SetApparentMode(MCONTACT hContact, int mode); + virtual int __cdecl SetStatus(int iNewStatus); + + virtual HANDLE __cdecl GetAwayMsg(MCONTACT hContact); + virtual int __cdecl RecvAwayMsg(MCONTACT hContact, int mode, PROTORECVEVENT* evt); + virtual int __cdecl SetAwayMsg(int iStatus, const TCHAR* msg); + + virtual int __cdecl UserIsTyping(MCONTACT hContact, int type); + + virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam); + + //==================================================================================== + // Services + + INT_PTR __cdecl GetName(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl GetAvatarInfo(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl SendAlert(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl GetAvatarCaps(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl SetMyAvatar(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl GetMyAvatar(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl GetStatus(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl AccMgrUI(WPARAM wParam, LPARAM lParam); + + INT_PTR __cdecl MUCMenuHandleChats(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl MUCMenuHandleMUC(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl MenuHandleInbox(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl ContactMenuHandleSendPicture(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl MUCContactMenuHandleMUC(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl VoiceContactMenuHandleVoice(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl ContactMenuHandleRequestAuth(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl ContactMenuHandleGrantAuth(WPARAM wParam, LPARAM lParam); + + //==================================================================================== + // Events + + int __cdecl OnModulesLoaded(WPARAM wParam, LPARAM lParam); + int __cdecl OptionsInit(WPARAM wParam, LPARAM lParam); + int __cdecl TlenDbSettingChanged(WPARAM wParam, LPARAM lParam); + int __cdecl TlenContactDeleted(WPARAM wParam, LPARAM lParam); + int __cdecl PrebuildContactMenu(WPARAM wParam, LPARAM lParam); + int __cdecl PreShutdown(WPARAM wParam, LPARAM lParam); + + int __cdecl UserInfoInit(WPARAM wParam, LPARAM lParam); + + int __cdecl MUCHandleEvent(WPARAM wParam, LPARAM lParam); + + //==================================================================================== + HANDLE hFileNetlibUser; + + TLEN_MODEMSGS modeMsgs; + + struct ThreadDataStruct *threadData; + HANDLE hTlenNudge; + HGENMENU hMenuMUC; + HGENMENU hMenuChats; + HGENMENU hMenuInbox; + HGENMENU hMenuContactMUC; + HGENMENU hMenuContactVoice; + HGENMENU hMenuContactGrantAuth; + HGENMENU hMenuContactRequestAuth; + HGENMENU hMenuPicture; + + int listsCount; + struct TLEN_LIST_ITEM_STRUCT *lists; + mir_cs csLists; + + int iqCount; + int iqAlloced; + struct TLEN_IQ_FUNC_STRUCT *iqList; + mir_cs csIqList; + + mir_cs csSerial; + unsigned int serial; + BOOL isOnline; + BOOL isConnected; + + mir_cs modeMsgMutex; + + void initMenuItems(); + HGENMENU hMenuRoot; + + char *searchJID; + int searchID; + int searchIndex; + char *searchQuery; + int searchQueryLen; + + mir_cs csSend; + + HWND voiceDlgHWND; + struct TLEN_VOICE_CONTROL_STRUCT *playbackControl; + struct TLEN_VOICE_CONTROL_STRUCT *recordingControl; + int framesAvailableForPlayback; + int availOverrunValue; + + TlenOptions tlenOptions; + +}; + + + +typedef struct ThreadDataStruct{ + HANDLE hThread; + char *streamId; + char username[128]; + char password[128]; + char server[128]; + char manualHost[128]; + char avatarToken[128]; + char avatarHash[64]; + int avatarFormat; + WORD port; + BOOL useEncryption; + + HANDLE s; //HANDLE from CallService(MS_NETLIB_OPENCONNECTION (tlen_ws.c:68) + aes_context aes_in_context; + aes_context aes_out_context; + unsigned char aes_in_iv[16]; + unsigned char aes_out_iv[16]; + + BOOL useAES; + TlenConfiguration tlenConfig; + TlenProtocol *proto; +} ThreadData; + + +typedef enum { FT_CONNECTING, FT_INITIALIZING, FT_RECEIVING, FT_DONE, FT_ERROR, FT_DENIED, FT_SWITCH } TLEN_FILE_STATE; +typedef enum { FT_RECV, FT_SEND} TLEN_FILE_MODE; +typedef struct TLEN_FILE_TRANSFER_STRUCT{ + MCONTACT hContact; + HANDLE s; + NETLIBNEWCONNECTIONPROC_V2 pfnNewConnectionV2; + TLEN_FILE_STATE state; + char *jid; + int fileId; + char *iqId; + int mode; + + // Used by file receiving only + char *hostName; + WORD wPort; + char *localName; + WORD wLocalPort; + char *szSavePath; + long fileReceivedBytes; + long fileTotalSize; + + // Used by file sending only + HANDLE hFileEvent; + int fileCount; + char **files; + long *filesSize; + //long fileTotalSize; // Size of the current file (file being sent) + long allFileTotalSize; + long allFileReceivedBytes; + char *szDescription; + int currentFile; + + // New p2p + BOOL newP2P; + char *id2; + SOCKET udps; + aes_context aes_context; + unsigned char aes_iv[16]; + TlenProtocol *proto; + +} TLEN_FILE_TRANSFER; + +typedef struct { + PROTOSEARCHRESULT hdr; + char jid[256]; +} TLEN_SEARCH_RESULT; + +typedef struct { + char *iqId; + PROTOSEARCHRESULT hdr; + char jid[256]; +} TLEN_CONFERENCE; + + +typedef struct { + int id; + TCHAR *name; +} TLEN_FIELD_MAP; + + +/******************************************************************* + * Global variables + *******************************************************************/ +extern HINSTANCE hInst; +extern HANDLE hMainThread; + +/******************************************************************* + * Function declarations + *******************************************************************/ +HICON GetIcolibIcon(int iconId); +void ReleaseIcolibIcon(HICON hIcon); + +void __cdecl TlenServerThread(ThreadData *info); +// tlen_ws.cpp +BOOL TlenWsInit(TlenProtocol *proto); +void TlenWsUninit(TlenProtocol *proto); +HANDLE TlenWsConnect(TlenProtocol *proto, char *host, WORD port); +int TlenWsSend(TlenProtocol *proto, HANDLE s, char *data, int datalen); +int TlenWsRecv(TlenProtocol *proto, HANDLE s, char *data, long datalen); +int TlenWsSendAES(TlenProtocol *proto, char *data, int datalen, aes_context *aes_ctx, unsigned char *aes_iv); +int TlenWsRecvAES(TlenProtocol *proto, char *data, long datalen, aes_context *aes_ctx, unsigned char *aes_iv); + +// tlen_util.cpp +void TlenSerialInit(TlenProtocol *proto); +unsigned int TlenSerialNext(TlenProtocol *proto); +int TlenSend(TlenProtocol *proto, const char *fmt, ...); +MCONTACT TlenHContactFromJID(TlenProtocol *proto, const char *jid); +char *TlenJIDFromHContact(TlenProtocol *proto, MCONTACT hContact); +char *TlenLoginFromJID(const char *jid); +char *TlenResourceFromJID(const char *jid); +char *TlenNickFromJID(const char *jid); +char *TlenLocalNickFromJID(const char *jid); +char *TlenGroupEncode(const char *str); +char *TlenGroupDecode(const char *str); +char *TlenSha1(char *str); +char *TlenSha1(char *str, int len); +char *TlenPasswordHash(const char *str); +void TlenUrlDecode(char *str); +char *TlenUrlEncode(const char *str); +char *TlenTextEncode(const char *str); +char *TlenTextDecode(const char *str); +void TlenLogMessage(TlenProtocol *proto, MCONTACT hContact, DWORD flags, const char *message); +BOOL IsAuthorized(TlenProtocol *proto, const char *jid); +//char *TlenGetVersionText(); +time_t TlenIsoToUnixTime(char *stamp); +time_t TlenTimeToUTC(time_t time); +void TlenSendPresence(TlenProtocol *proto,int status); +void TlenStringAppend(char **str, int *sizeAlloced, const char *fmt, ...); +//char *TlenGetClientJID(char *jid); +// tlen_misc.cpp +void TlenDBAddEvent(TlenProtocol *proto, MCONTACT hContact, int eventType, DWORD flags, PBYTE pBlob, DWORD cbBlob); +void TlenDBAddAuthRequest(TlenProtocol *proto, char *jid, char *nick); +MCONTACT TlenDBCreateContact(TlenProtocol *proto, char *jid, char *nick, BOOL temporary); +// tlen_svc.cpp +int TlenRunSearch(TlenProtocol *proto); +// tlen_opt.cpp +void TlenLoadOptions(TlenProtocol *proto); +// tlen_voice.cpp +int TlenVoiceCancelAll(TlenProtocol *proto); +// tlen_advsearch.cpp +extern TLEN_FIELD_MAP tlenFieldGender[]; +extern TLEN_FIELD_MAP tlenFieldLookfor[]; +extern TLEN_FIELD_MAP tlenFieldStatus[]; +extern TLEN_FIELD_MAP tlenFieldOccupation[]; +extern TLEN_FIELD_MAP tlenFieldPlan[]; +// tlen_advsearch.cpp +INT_PTR CALLBACK TlenAdvSearchDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +char *TlenAdvSearchCreateQuery(HWND hwndDlg, int iqId); + + +#endif diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index b7d055cfb9..5c74b77123 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "stdafx.h" #include "commons.h" -#include "tlen.h" #include "tlen_muc.h" #include "tlen_file.h" #include "tlen_voice.h" diff --git a/protocols/Tlen/src/tlen.h b/protocols/Tlen/src/tlen.h deleted file mode 100644 index b0bf31b044..0000000000 --- a/protocols/Tlen/src/tlen.h +++ /dev/null @@ -1,499 +0,0 @@ -/* - -Jabber Protocol Plugin for Miranda IM -Tlen Protocol Plugin for Miranda NG -Copyright (C) 2002-2004 Santithorn Bunchua -Copyright (C) 2004-2007 Piotr Piastucki - -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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -#ifndef _TLEN_H_ -#define _TLEN_H_ - -#define __try -#define __except(x) if (0) -#define __finally - -#define _try __try -#define _except __except -#define _finally __finally - -#ifdef _DEBUG -#define _CRTDBG_MAP_ALLOC -#include -#include -#endif -#define ENABLE_LOGGING - -/******************************************************************* - * Global compilation flags - *******************************************************************/ - -/******************************************************************* - * Global header files - *******************************************************************/ - -#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 "tlen_xml.h" -#include "crypto/polarssl/aes.h" -#include "crypto/polarssl/bignum.h" - -/******************************************************************* - * Global constants - *******************************************************************/ -#define TLEN_DEFAULT_PORT 443 -#define TLEN_IQID "mim_" -#define TLEN_REGISTER "http://reg.tlen.pl/" -#define TLEN_MAX_SEARCH_RESULTS_PER_PAGE 20 - -// User-defined message -#define WM_TLEN_REFRESH (WM_USER + 100) -// Error code -#define TLEN_ERROR_REDIRECT 302 -#define TLEN_ERROR_BAD_REQUEST 400 -#define TLEN_ERROR_UNAUTHORIZED 401 -#define TLEN_ERROR_PAYMENT_REQUIRED 402 -#define TLEN_ERROR_FORBIDDEN 403 -#define TLEN_ERROR_NOT_FOUND 404 -#define TLEN_ERROR_NOT_ALLOWED 405 -#define TLEN_ERROR_NOT_ACCEPTABLE 406 -#define TLEN_ERROR_REGISTRATION_REQUIRED 407 -#define TLEN_ERROR_REQUEST_TIMEOUT 408 -#define TLEN_ERROR_CONFLICT 409 -#define TLEN_ERROR_INTERNAL_SERVER_ERROR 500 -#define TLEN_ERROR_NOT_IMPLEMENTED 501 -#define TLEN_ERROR_REMOTE_SERVER_ERROR 502 -#define TLEN_ERROR_SERVICE_UNAVAILABLE 503 -#define TLEN_ERROR_REMOTE_SERVER_TIMEOUT 504 - -#define TLEN_ALERTS_ACCEPT_ALL 0 -#define TLEN_ALERTS_IGNORE_NIR 1 -#define TLEN_ALERTS_IGNORE_ALL 2 - -#define TLEN_IMAGES_ACCEPT_ALL 0 -#define TLEN_IMAGES_IGNORE_NIR 1 -#define TLEN_IMAGES_IGNORE_ALL 2 - -#define TLEN_MUC_ASK 0 -#define TLEN_MUC_ACCEPT_IR 1 -#define TLEN_MUC_ACCEPT_ALL 2 -#define TLEN_MUC_IGNORE_NIR 3 -#define TLEN_MUC_IGNORE_ALL 4 - -#define IDC_STATIC (-1) - -/******************************************************************* - * Global data structures and data type definitions - *******************************************************************/ - -typedef enum { - LIST_ROSTER, // Roster list - LIST_CHATROOM, // Groupchat room currently joined - LIST_FILE, // Current file transfer session - LIST_INVITATIONS,// Invitations to be sent - LIST_SEARCH, // Rooms names being searched - LIST_VOICE, - LIST_PICTURE -} TLEN_LIST; - -typedef enum { - IQ_PROC_NONE, - IQ_PROC_GETSEARCH -} TLEN_IQ_PROCID; - -typedef enum { - SUB_NONE, - SUB_TO, - SUB_FROM, - SUB_BOTH -} TLEN_SUBSCRIPTION; - -typedef struct { - char *szOnline; - char *szAway; - char *szNa; - char *szDnd; - char *szFreechat; - char *szInvisible; -} TLEN_MODEMSGS; - -typedef struct { - char mailBase[256]; - char mailMsg[256]; - int mailMsgMthd; - char mailIndex[256]; - int mailIndexMthd; - char mailLogin[256]; - int mailLoginMthd; - char mailCompose[256]; - int mailComposeMthd; - char avatarGet[256]; - int avatarGetMthd; - char avatarUpload[256]; - int avatarUploadMthd; - char avatarRemove[256]; - int avatarRemoveMthd; -} TlenConfiguration; - -typedef struct { - BOOL useEncryption; - BOOL reconnect; - BOOL rosterSync; - BOOL offlineAsInvisible; - BOOL leaveOfflineMessage; - int offlineMessageOption; - BOOL ignoreAdvertisements; - int alertPolicy; - int groupChatPolicy; - int voiceChatPolicy; - int imagePolicy; - BOOL enableAvatars; - BOOL enableVersion; - BOOL useNudge; - BOOL logAlerts; - BOOL useNewP2P; - BOOL sendKeepAlive; - BOOL savePassword; -} TlenOptions; - - -struct TLEN_IQ_FUNC_STRUCT; -struct TLEN_LIST_ITEM_STRUCT; -struct TLEN_VOICE_CONTROL_STRUCT; - -struct TlenProtocol : public PROTO -{ - TlenProtocol( const char*, const TCHAR* ); - ~TlenProtocol(); - - //==================================================================================== - // PROTO_INTERFACE - //==================================================================================== - - virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr); - virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent); - - virtual int __cdecl Authorize(MEVENT hDbEvent); - virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR* szReason); - - virtual HANDLE __cdecl FileAllow(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szPath); - virtual int __cdecl FileCancel(MCONTACT hContact, HANDLE hTransfer); - virtual int __cdecl FileDeny(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szReason); - virtual int __cdecl FileResume(HANDLE hTransfer, int* action, const TCHAR** szFilename); - - virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL); - virtual int __cdecl GetInfo(MCONTACT hContact, int infoType); - - virtual HANDLE __cdecl SearchBasic(const TCHAR* id); - virtual HANDLE __cdecl SearchByEmail(const TCHAR* email); - virtual HANDLE __cdecl SearchByName(const TCHAR* nick, const TCHAR* firstName, const TCHAR* lastName); - virtual HWND __cdecl SearchAdvanced(HWND owner); - virtual HWND __cdecl CreateExtendedSearchUI(HWND owner); - - virtual int __cdecl RecvFile(MCONTACT hContact, PROTORECVFILET*); - virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT*); - virtual int __cdecl RecvUrl(MCONTACT hContact, PROTORECVEVENT*); - - virtual int __cdecl SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList); - virtual HANDLE __cdecl SendFile(MCONTACT hContact, const TCHAR* szDescription, TCHAR** ppszFiles); - virtual int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg); - virtual int __cdecl SendUrl(MCONTACT hContact, int flags, const char* url); - - virtual int __cdecl SetApparentMode(MCONTACT hContact, int mode); - virtual int __cdecl SetStatus(int iNewStatus); - - virtual HANDLE __cdecl GetAwayMsg(MCONTACT hContact); - virtual int __cdecl RecvAwayMsg(MCONTACT hContact, int mode, PROTORECVEVENT* evt); - virtual int __cdecl SetAwayMsg(int iStatus, const TCHAR* msg); - - virtual int __cdecl UserIsTyping(MCONTACT hContact, int type); - - virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam); - - //==================================================================================== - // Services - - INT_PTR __cdecl GetName(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl GetAvatarInfo(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl SendAlert(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl GetAvatarCaps(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl SetMyAvatar(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl GetMyAvatar(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl GetStatus(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl AccMgrUI(WPARAM wParam, LPARAM lParam); - - INT_PTR __cdecl MUCMenuHandleChats(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl MUCMenuHandleMUC(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl MenuHandleInbox(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl ContactMenuHandleSendPicture(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl MUCContactMenuHandleMUC(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl VoiceContactMenuHandleVoice(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl ContactMenuHandleRequestAuth(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl ContactMenuHandleGrantAuth(WPARAM wParam, LPARAM lParam); - - //==================================================================================== - // Events - - int __cdecl OnModulesLoaded(WPARAM wParam, LPARAM lParam); - int __cdecl OptionsInit(WPARAM wParam, LPARAM lParam); - int __cdecl TlenDbSettingChanged(WPARAM wParam, LPARAM lParam); - int __cdecl TlenContactDeleted(WPARAM wParam, LPARAM lParam); - int __cdecl PrebuildContactMenu(WPARAM wParam, LPARAM lParam); - int __cdecl PreShutdown(WPARAM wParam, LPARAM lParam); - - int __cdecl UserInfoInit(WPARAM wParam, LPARAM lParam); - - int __cdecl MUCHandleEvent(WPARAM wParam, LPARAM lParam); - - //==================================================================================== - HANDLE hFileNetlibUser; - - TLEN_MODEMSGS modeMsgs; - - struct ThreadDataStruct *threadData; - HANDLE hTlenNudge; - HGENMENU hMenuMUC; - HGENMENU hMenuChats; - HGENMENU hMenuInbox; - HGENMENU hMenuContactMUC; - HGENMENU hMenuContactVoice; - HGENMENU hMenuContactGrantAuth; - HGENMENU hMenuContactRequestAuth; - HGENMENU hMenuPicture; - - int listsCount; - struct TLEN_LIST_ITEM_STRUCT *lists; - mir_cs csLists; - - int iqCount; - int iqAlloced; - struct TLEN_IQ_FUNC_STRUCT *iqList; - mir_cs csIqList; - - mir_cs csSerial; - unsigned int serial; - BOOL isOnline; - BOOL isConnected; - - mir_cs modeMsgMutex; - - void initMenuItems(); - HGENMENU hMenuRoot; - - char *searchJID; - int searchID; - int searchIndex; - char *searchQuery; - int searchQueryLen; - - mir_cs csSend; - - HWND voiceDlgHWND; - struct TLEN_VOICE_CONTROL_STRUCT *playbackControl; - struct TLEN_VOICE_CONTROL_STRUCT *recordingControl; - int framesAvailableForPlayback; - int availOverrunValue; - - TlenOptions tlenOptions; - -}; - - - -typedef struct ThreadDataStruct{ - HANDLE hThread; - char *streamId; - char username[128]; - char password[128]; - char server[128]; - char manualHost[128]; - char avatarToken[128]; - char avatarHash[64]; - int avatarFormat; - WORD port; - BOOL useEncryption; - - HANDLE s; //HANDLE from CallService(MS_NETLIB_OPENCONNECTION (tlen_ws.c:68) - aes_context aes_in_context; - aes_context aes_out_context; - unsigned char aes_in_iv[16]; - unsigned char aes_out_iv[16]; - - BOOL useAES; - TlenConfiguration tlenConfig; - TlenProtocol *proto; -} ThreadData; - - -typedef enum { FT_CONNECTING, FT_INITIALIZING, FT_RECEIVING, FT_DONE, FT_ERROR, FT_DENIED, FT_SWITCH } TLEN_FILE_STATE; -typedef enum { FT_RECV, FT_SEND} TLEN_FILE_MODE; -typedef struct TLEN_FILE_TRANSFER_STRUCT{ - MCONTACT hContact; - HANDLE s; - NETLIBNEWCONNECTIONPROC_V2 pfnNewConnectionV2; - TLEN_FILE_STATE state; - char *jid; - int fileId; - char *iqId; - int mode; - - // Used by file receiving only - char *hostName; - WORD wPort; - char *localName; - WORD wLocalPort; - char *szSavePath; - long fileReceivedBytes; - long fileTotalSize; - - // Used by file sending only - HANDLE hFileEvent; - int fileCount; - char **files; - long *filesSize; - //long fileTotalSize; // Size of the current file (file being sent) - long allFileTotalSize; - long allFileReceivedBytes; - char *szDescription; - int currentFile; - - // New p2p - BOOL newP2P; - char *id2; - SOCKET udps; - aes_context aes_context; - unsigned char aes_iv[16]; - TlenProtocol *proto; - -} TLEN_FILE_TRANSFER; - -typedef struct { - PROTOSEARCHRESULT hdr; - char jid[256]; -} TLEN_SEARCH_RESULT; - -typedef struct { - char *iqId; - PROTOSEARCHRESULT hdr; - char jid[256]; -} TLEN_CONFERENCE; - - -typedef struct { - int id; - TCHAR *name; -} TLEN_FIELD_MAP; - - -/******************************************************************* - * Global variables - *******************************************************************/ -extern HINSTANCE hInst; -extern HANDLE hMainThread; - -/******************************************************************* - * Function declarations - *******************************************************************/ -HICON GetIcolibIcon(int iconId); -void ReleaseIcolibIcon(HICON hIcon); - -void __cdecl TlenServerThread(ThreadData *info); -// tlen_ws.cpp -BOOL TlenWsInit(TlenProtocol *proto); -void TlenWsUninit(TlenProtocol *proto); -HANDLE TlenWsConnect(TlenProtocol *proto, char *host, WORD port); -int TlenWsSend(TlenProtocol *proto, HANDLE s, char *data, int datalen); -int TlenWsRecv(TlenProtocol *proto, HANDLE s, char *data, long datalen); -int TlenWsSendAES(TlenProtocol *proto, char *data, int datalen, aes_context *aes_ctx, unsigned char *aes_iv); -int TlenWsRecvAES(TlenProtocol *proto, char *data, long datalen, aes_context *aes_ctx, unsigned char *aes_iv); - -// tlen_util.cpp -void TlenSerialInit(TlenProtocol *proto); -unsigned int TlenSerialNext(TlenProtocol *proto); -int TlenSend(TlenProtocol *proto, const char *fmt, ...); -MCONTACT TlenHContactFromJID(TlenProtocol *proto, const char *jid); -char *TlenJIDFromHContact(TlenProtocol *proto, MCONTACT hContact); -char *TlenLoginFromJID(const char *jid); -char *TlenResourceFromJID(const char *jid); -char *TlenNickFromJID(const char *jid); -char *TlenLocalNickFromJID(const char *jid); -char *TlenGroupEncode(const char *str); -char *TlenGroupDecode(const char *str); -char *TlenSha1(char *str); -char *TlenSha1(char *str, int len); -char *TlenPasswordHash(const char *str); -void TlenUrlDecode(char *str); -char *TlenUrlEncode(const char *str); -char *TlenTextEncode(const char *str); -char *TlenTextDecode(const char *str); -void TlenLogMessage(TlenProtocol *proto, MCONTACT hContact, DWORD flags, const char *message); -BOOL IsAuthorized(TlenProtocol *proto, const char *jid); -//char *TlenGetVersionText(); -time_t TlenIsoToUnixTime(char *stamp); -time_t TlenTimeToUTC(time_t time); -void TlenSendPresence(TlenProtocol *proto,int status); -void TlenStringAppend(char **str, int *sizeAlloced, const char *fmt, ...); -//char *TlenGetClientJID(char *jid); -// tlen_misc.cpp -void TlenDBAddEvent(TlenProtocol *proto, MCONTACT hContact, int eventType, DWORD flags, PBYTE pBlob, DWORD cbBlob); -void TlenDBAddAuthRequest(TlenProtocol *proto, char *jid, char *nick); -MCONTACT TlenDBCreateContact(TlenProtocol *proto, char *jid, char *nick, BOOL temporary); -// tlen_svc.cpp -int TlenRunSearch(TlenProtocol *proto); -// tlen_opt.cpp -void TlenLoadOptions(TlenProtocol *proto); -// tlen_voice.cpp -int TlenVoiceCancelAll(TlenProtocol *proto); -// tlen_advsearch.cpp -extern TLEN_FIELD_MAP tlenFieldGender[]; -extern TLEN_FIELD_MAP tlenFieldLookfor[]; -extern TLEN_FIELD_MAP tlenFieldStatus[]; -extern TLEN_FIELD_MAP tlenFieldOccupation[]; -extern TLEN_FIELD_MAP tlenFieldPlan[]; -// tlen_advsearch.cpp -INT_PTR CALLBACK TlenAdvSearchDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); -char *TlenAdvSearchCreateQuery(HWND hwndDlg, int iqId); - - -#endif diff --git a/protocols/Tlen/src/tlen_advsearch.cpp b/protocols/Tlen/src/tlen_advsearch.cpp index aea0a806d0..3ae4f313c9 100644 --- a/protocols/Tlen/src/tlen_advsearch.cpp +++ b/protocols/Tlen/src/tlen_advsearch.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "resource.h" static void InitComboBox(HWND hwndCombo, TLEN_FIELD_MAP *fieldMap) diff --git a/protocols/Tlen/src/tlen_avatar.cpp b/protocols/Tlen/src/tlen_avatar.cpp index d548dc3c31..44d6134e7c 100644 --- a/protocols/Tlen/src/tlen_avatar.cpp +++ b/protocols/Tlen/src/tlen_avatar.cpp @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include "tlen_avatar.h" #include diff --git a/protocols/Tlen/src/tlen_file.cpp b/protocols/Tlen/src/tlen_file.cpp index 2ed6d32e7e..7d5e2713e6 100644 --- a/protocols/Tlen/src/tlen_file.cpp +++ b/protocols/Tlen/src/tlen_file.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include #include #include diff --git a/protocols/Tlen/src/tlen_file.h b/protocols/Tlen/src/tlen_file.h index 170c1b75ec..346ec886ac 100644 --- a/protocols/Tlen/src/tlen_file.h +++ b/protocols/Tlen/src/tlen_file.h @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define _TLEN_FILE_H_ #include -#include "tlen.h" +#include "stdafx.h" extern int TlenFileCancelAll(TlenProtocol *proto); extern void TlenProcessF(XmlNode *node, ThreadData *userdata); diff --git a/protocols/Tlen/src/tlen_iq.cpp b/protocols/Tlen/src/tlen_iq.cpp index 84440d19ed..19dd956a77 100644 --- a/protocols/Tlen/src/tlen_iq.cpp +++ b/protocols/Tlen/src/tlen_iq.cpp @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_iq.h" diff --git a/protocols/Tlen/src/tlen_iq.h b/protocols/Tlen/src/tlen_iq.h index fa7b25d2e3..6966de74fb 100644 --- a/protocols/Tlen/src/tlen_iq.h +++ b/protocols/Tlen/src/tlen_iq.h @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define _TLEN_IQ_H_ #include "tlen_xml.h" -#include "tlen.h" +#include "stdafx.h" typedef void (*TLEN_IQ_PFUNC)(TlenProtocol *proto, XmlNode *iqNode); diff --git a/protocols/Tlen/src/tlen_iqid.cpp b/protocols/Tlen/src/tlen_iqid.cpp index 70876b4a00..2f2d7ba943 100644 --- a/protocols/Tlen/src/tlen_iqid.cpp +++ b/protocols/Tlen/src/tlen_iqid.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "resource.h" #include "tlen_list.h" #include "tlen_iq.h" diff --git a/protocols/Tlen/src/tlen_list.cpp b/protocols/Tlen/src/tlen_list.cpp index 5827fad64f..f44811537e 100644 --- a/protocols/Tlen/src/tlen_list.cpp +++ b/protocols/Tlen/src/tlen_list.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" diff --git a/protocols/Tlen/src/tlen_list.h b/protocols/Tlen/src/tlen_list.h index 680190672a..3130f41c14 100644 --- a/protocols/Tlen/src/tlen_list.h +++ b/protocols/Tlen/src/tlen_list.h @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #ifndef _TLEN_LIST_H_ #define _TLEN_LIST_H_ diff --git a/protocols/Tlen/src/tlen_misc.cpp b/protocols/Tlen/src/tlen_misc.cpp index 37692d98b1..732af24769 100644 --- a/protocols/Tlen/src/tlen_misc.cpp +++ b/protocols/Tlen/src/tlen_misc.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" void TlenDBAddEvent(TlenProtocol *proto, MCONTACT hContact, int eventType, DWORD flags, PBYTE pBlob, DWORD cbBlob) diff --git a/protocols/Tlen/src/tlen_muc.cpp b/protocols/Tlen/src/tlen_muc.cpp index 892da79ba6..2f16316620 100644 --- a/protocols/Tlen/src/tlen_muc.cpp +++ b/protocols/Tlen/src/tlen_muc.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include "tlen_iq.h" #include "resource.h" diff --git a/protocols/Tlen/src/tlen_opt.cpp b/protocols/Tlen/src/tlen_opt.cpp index 0d17ca7519..d904537185 100644 --- a/protocols/Tlen/src/tlen_opt.cpp +++ b/protocols/Tlen/src/tlen_opt.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include "tlen_voice.h" #include diff --git a/protocols/Tlen/src/tlen_p2p_new.cpp b/protocols/Tlen/src/tlen_p2p_new.cpp index 1313ee2521..f796b62ff0 100644 --- a/protocols/Tlen/src/tlen_p2p_new.cpp +++ b/protocols/Tlen/src/tlen_p2p_new.cpp @@ -18,6 +18,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include "stdafx.h" #include "tlen_p2p_old.h" #include #include diff --git a/protocols/Tlen/src/tlen_p2p_old.cpp b/protocols/Tlen/src/tlen_p2p_old.cpp index a582ef2a43..267748a5f1 100644 --- a/protocols/Tlen/src/tlen_p2p_old.cpp +++ b/protocols/Tlen/src/tlen_p2p_old.cpp @@ -18,6 +18,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include "stdafx.h" #include "tlen_p2p_old.h" #include #include diff --git a/protocols/Tlen/src/tlen_p2p_old.h b/protocols/Tlen/src/tlen_p2p_old.h index 1e8bc111f9..563054a83e 100644 --- a/protocols/Tlen/src/tlen_p2p_old.h +++ b/protocols/Tlen/src/tlen_p2p_old.h @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #ifndef _TLEN_P2P_OLD_H_ #define _TLEN_P2P_OLD_H_ diff --git a/protocols/Tlen/src/tlen_picture.cpp b/protocols/Tlen/src/tlen_picture.cpp index 255c1b8e03..1b08824840 100644 --- a/protocols/Tlen/src/tlen_picture.cpp +++ b/protocols/Tlen/src/tlen_picture.cpp @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include "tlen_file.h" #include "tlen_p2p_old.h" diff --git a/protocols/Tlen/src/tlen_picture.h b/protocols/Tlen/src/tlen_picture.h index 50e3b0b1e6..07e608c90c 100644 --- a/protocols/Tlen/src/tlen_picture.h +++ b/protocols/Tlen/src/tlen_picture.h @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define _TLEN_PICTURE_H #include -#include "tlen.h" +#include "stdafx.h" void TlenProcessPic(XmlNode *node, TlenProtocol *proto); BOOL SendPicture(TlenProtocol *, MCONTACT hContact); diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp index b56b72c411..ccbcab9beb 100644 --- a/protocols/Tlen/src/tlen_presence.cpp +++ b/protocols/Tlen/src/tlen_presence.cpp @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include "tlen_avatar.h" diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index e15145cb05..71e12493e8 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include #include #include diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index b1de0fe4c7..f3f027388a 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "commons.h" #include "tlen_list.h" diff --git a/protocols/Tlen/src/tlen_userinfo.cpp b/protocols/Tlen/src/tlen_userinfo.cpp index ab995ce0b3..fbe38e7a51 100644 --- a/protocols/Tlen/src/tlen_userinfo.cpp +++ b/protocols/Tlen/src/tlen_userinfo.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include #include #include diff --git a/protocols/Tlen/src/tlen_util.cpp b/protocols/Tlen/src/tlen_util.cpp index f315a3e177..a3314e5a20 100644 --- a/protocols/Tlen/src/tlen_util.cpp +++ b/protocols/Tlen/src/tlen_util.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include "tlen_list.h" #include #include diff --git a/protocols/Tlen/src/tlen_voice.cpp b/protocols/Tlen/src/tlen_voice.cpp index a08e1c1c17..cfad2223d9 100644 --- a/protocols/Tlen/src/tlen_voice.cpp +++ b/protocols/Tlen/src/tlen_voice.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include #include #include diff --git a/protocols/Tlen/src/tlen_voice.h b/protocols/Tlen/src/tlen_voice.h index b1f2a5e2a8..bc1adf6364 100644 --- a/protocols/Tlen/src/tlen_voice.h +++ b/protocols/Tlen/src/tlen_voice.h @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include -#include "tlen.h" +#include "stdafx.h" extern "C" { #include "codec/gsm.h" } diff --git a/protocols/Tlen/src/tlen_ws.cpp b/protocols/Tlen/src/tlen_ws.cpp index 7db8152810..8b0a40554f 100644 --- a/protocols/Tlen/src/tlen_ws.cpp +++ b/protocols/Tlen/src/tlen_ws.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" BOOL TlenWsInit(TlenProtocol *proto) { diff --git a/protocols/Tlen/src/tlen_xml.cpp b/protocols/Tlen/src/tlen_xml.cpp index 408df2ab3a..28e3ca07c6 100644 --- a/protocols/Tlen/src/tlen_xml.cpp +++ b/protocols/Tlen/src/tlen_xml.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "tlen.h" +#include "stdafx.h" #include static BOOL TlenXmlProcessElem(XmlState *xmlState, XmlElemType elemType, char *elemText, char *elemAttr); diff --git a/protocols/Tlen/tlen.vcxproj b/protocols/Tlen/tlen.vcxproj new file mode 100644 index 0000000000..bfc2cf4a79 --- /dev/null +++ b/protocols/Tlen/tlen.vcxproj @@ -0,0 +1,40 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Tlen + {F3208C96-3C21-46AA-8695-C794E28CDC34} + + + + + + + NotUsing + + + NotUsing + + + + + + + \ No newline at end of file diff --git a/protocols/Tlen/tlen.vcxproj.filters b/protocols/Tlen/tlen.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/protocols/Tlen/tlen.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/protocols/Tlen/tlen_10.vcxproj b/protocols/Tlen/tlen_10.vcxproj deleted file mode 100644 index 4f1a25817b..0000000000 --- a/protocols/Tlen/tlen_10.vcxproj +++ /dev/null @@ -1,332 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Tlen - {F3208C96-3C21-46AA-8695-C794E28CDC34} - - - - DynamicLibrary - false - Unicode - v100 - - - DynamicLibrary - false - Unicode - - - DynamicLibrary - false - Unicode - true - - - DynamicLibrary - false - Unicode - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - /PDBALTPATH:%_PDB% - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - $(ProfileDir)..\..\bin10\lib - - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - /PDBALTPATH:%_PDB% - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - EditAndContinue - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - Windows - $(ProfileDir)..\..\bin10\lib - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin10\lib - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Tlen/tlen_10.vcxproj.filters b/protocols/Tlen/tlen_10.vcxproj.filters deleted file mode 100644 index 4d1ca6b9bc..0000000000 --- a/protocols/Tlen/tlen_10.vcxproj.filters +++ /dev/null @@ -1,205 +0,0 @@ - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - 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 - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - - - {35b6da69-06c9-4f34-901c-823e97f865fd} - - - {a2b613e9-0050-4e07-8d72-9fbd35d80c8d} - - - {c8abc1f0-582c-43c8-bbe4-043b9c119339} - - - {72c45104-d6de-464c-9b29-23abc26e4f80} - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/protocols/Tlen/tlen_12.vcxproj b/protocols/Tlen/tlen_12.vcxproj deleted file mode 100644 index 0677209ff4..0000000000 --- a/protocols/Tlen/tlen_12.vcxproj +++ /dev/null @@ -1,337 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Tlen - {F3208C96-3C21-46AA-8695-C794E28CDC34} - - - - DynamicLibrary - false - Unicode - v120_xp - - - DynamicLibrary - false - Unicode - v120_xp - - - DynamicLibrary - false - Unicode - true - v120_xp - - - DynamicLibrary - false - Unicode - true - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27X86%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - $(ProfileDir)..\..\bin12\lib - - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin12\lib - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - EditAndContinue - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - Windows - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin12\lib - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Tlen/tlen_12.vcxproj.filters b/protocols/Tlen/tlen_12.vcxproj.filters deleted file mode 100644 index ec709d6746..0000000000 --- a/protocols/Tlen/tlen_12.vcxproj.filters +++ /dev/null @@ -1,217 +0,0 @@ - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - 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 - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - - - {35b6da69-06c9-4f34-901c-823e97f865fd} - - - {a2b613e9-0050-4e07-8d72-9fbd35d80c8d} - - - {c8abc1f0-582c-43c8-bbe4-043b9c119339} - - - {559d744f-4f43-4e18-a29d-844226e5b472} - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/protocols/Tlen/tlen_14.vcxproj b/protocols/Tlen/tlen_14.vcxproj deleted file mode 100644 index 3471b4fc33..0000000000 --- a/protocols/Tlen/tlen_14.vcxproj +++ /dev/null @@ -1,337 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Tlen - {F3208C96-3C21-46AA-8695-C794E28CDC34} - - - - DynamicLibrary - false - Unicode - v140_xp - - - DynamicLibrary - false - Unicode - v140_xp - - - DynamicLibrary - false - Unicode - true - v140_xp - - - DynamicLibrary - false - Unicode - true - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27X86%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - $(ProfileDir)..\..\bin14\lib - - - - - Full - OnlyExplicitInline - Size - true - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - true - - - tlen.h - AssemblyAndSourceCode - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - true - true - true - UseLinkTimeCodeGeneration - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin14\lib - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - EditAndContinue - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - MachineX86 - Windows - $(ProfileDir)..\..\bin14\lib - false - - - - - Disabled - ../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - false - EnableFastChecks - MultiThreadedDebugDLL - true - Precise - - - tlen.h - - - - - Level3 - true - ProgramDatabase - Default - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - ..\..\include;..\..\include\msapi - - - ws2_32.lib;winmm.lib;%(AdditionalDependencies) - true - true - $(TargetDir)$(TargetName).pdb - false - - - 0x32500000 - false - - - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin14\lib - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27*%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Tlen/tlen_14.vcxproj.filters b/protocols/Tlen/tlen_14.vcxproj.filters deleted file mode 100644 index ec709d6746..0000000000 --- a/protocols/Tlen/tlen_14.vcxproj.filters +++ /dev/null @@ -1,217 +0,0 @@ - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - 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 - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - Resource Files\Icons - - - - - {35b6da69-06c9-4f34-901c-823e97f865fd} - - - {a2b613e9-0050-4e07-8d72-9fbd35d80c8d} - - - {c8abc1f0-582c-43c8-bbe4-043b9c119339} - - - {559d744f-4f43-4e18-a29d-844226e5b472} - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file -- cgit v1.2.3