summaryrefslogtreecommitdiff
path: root/plugins/Import/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-24 19:46:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-24 19:46:34 +0000
commitafb1914145f007e970787d9c37a9fb5f5aff2354 (patch)
treed46d9e2c5e578255bd605945aa1cacbdbdacf578 /plugins/Import/src/utils.cpp
parente26440954f80b88d374559ab7f33821e8c78aa1e (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1171 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src/utils.cpp')
-rw-r--r--plugins/Import/src/utils.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp
index 522a987e02..9d51d0f47c 100644
--- a/plugins/Import/src/utils.cpp
+++ b/plugins/Import/src/utils.cpp
@@ -24,11 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "version.h"
#include "resource.h"
-int cICQAccounts = 0;
-char ** szICQModuleName = NULL;
-TCHAR ** tszICQAccountName = NULL;
-int iICQAccount = 0;
-
/////////////////////////////////////////////////////////////////////////////////////////
BOOL IsProtocolLoaded(char* pszProtocolName)
@@ -36,44 +31,6 @@ BOOL IsProtocolLoaded(char* pszProtocolName)
return CallService(MS_PROTO_ISPROTOCOLLOADED, 0, (LPARAM)pszProtocolName) ? TRUE : FALSE;
}
-HANDLE HContactFromNumericID(char* pszProtoName, char* pszSetting, DWORD dwID)
-{
- char* szProto;
- HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0);
- while (hContact != NULL)
- {
- if (DBGetContactSettingDword(hContact, pszProtoName, pszSetting, 0) == dwID)
- {
- szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
- if (szProto != NULL && !strcmp(szProto, pszProtoName))
- return hContact;
- }
- hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0);
- }
- return INVALID_HANDLE_VALUE;
-}
-
-HANDLE HistoryImportFindContact(HWND hdlgProgress, char* szModuleName, DWORD uin, int addUnknown)
-{
- HANDLE hContact = HContactFromNumericID(szModuleName, "UIN", uin);
- if (hContact == NULL) {
- AddMessage( LPGEN("Ignored event from/to self"));
- return INVALID_HANDLE_VALUE;
- }
-
- if (hContact != INVALID_HANDLE_VALUE)
- return hContact;
-
- if (!addUnknown)
- return INVALID_HANDLE_VALUE;
-
- hContact = (HANDLE)CallService(MS_DB_CONTACT_ADD, 0, 0);
- CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)szModuleName);
- DBWriteContactSettingDword(hContact, szModuleName, "UIN", uin);
- AddMessage( LPGEN("Added contact %u (found in history)"), uin );
- return hContact;
-}
-
// ------------------------------------------------
// Creates a group with a specified name in the
// Miranda contact list.