diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-23 13:49:28 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-23 13:49:28 +0000 |
commit | a9580df150d799246eaecbf3c1fb5cecf9f8ab49 (patch) | |
tree | ce046b1cd432d65718c9f6af80521d533ce6d4ca /plugins/SecureIM/crypt_metacontacts.cpp | |
parent | 60338d55bb73d0c45b6e092703c4bb88a3c49755 (diff) |
SecureIM, SeenPlugin, SendSS, Sessions: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1122 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/crypt_metacontacts.cpp')
-rw-r--r-- | plugins/SecureIM/crypt_metacontacts.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/plugins/SecureIM/crypt_metacontacts.cpp b/plugins/SecureIM/crypt_metacontacts.cpp deleted file mode 100644 index f36c7e4dd3..0000000000 --- a/plugins/SecureIM/crypt_metacontacts.cpp +++ /dev/null @@ -1,60 +0,0 @@ -#include "commonheaders.h"
-
-
-BOOL isProtoMetaContacts(HANDLE hContact) {
- if(bMetaContacts) {
- LPSTR proto = (LPSTR)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
- if ( proto && strcmp(proto,"MetaContacts")==0 ) {
- return true;
- }
- }
-// for(int j=0;j<clist_cnt;j++)
-// if(clist[j].hContact==hContact && clist[j].proto->inspecting)
-// return strstr(clist[j].proto->name,"MetaContacts")!=NULL;
- return false;
-}
-
-
-BOOL isDefaultSubContact(HANDLE hContact) {
-
- if(bMetaContacts) {
- return (HANDLE)CallService(MS_MC_GETDEFAULTCONTACT,(WPARAM)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0),0)==hContact;
- }
- return false;
-}
-
-
-HANDLE getMetaContact(HANDLE hContact) {
-
- if(bMetaContacts) {
- return (HANDLE)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0);
- }
- return 0;
-}
-
-
-HANDLE getMostOnline(HANDLE hContact) {
-
- if(bMetaContacts) {
- return (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT,(WPARAM)hContact,0);
- }
- return 0;
-}
-
-
-// remove all secureim connections on subcontacts
-void DeinitMetaContact(HANDLE hContact) {
-
- HANDLE hMetaContact = isProtoMetaContacts(hContact) ? hContact : getMetaContact(hContact);
-
- if ( hMetaContact ) {
- for(int i=0;i<CallService(MS_MC_GETNUMCONTACTS,(WPARAM)hMetaContact,0);i++) {
- HANDLE hSubContact = (HANDLE)CallService(MS_MC_GETSUBCONTACT,(WPARAM)hMetaContact,(LPARAM)i);
- if ( hSubContact && isContactSecured(hSubContact)&SECURED ) {
- CallContactService(hSubContact,PSS_MESSAGE,(WPARAM)PREF_METANODB,(LPARAM)SIG_DEIN);
- }
- }
- }
-}
-
-// EOF
|