diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-10 14:42:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 14:42:51 +0000 |
commit | 33953cc6a0fab6a91af293c6838f8a46dd7922da (patch) | |
tree | 2dbbe718ad42545bde6c9f7672387827c530550a /protocols/Xfire/src/main.cpp | |
parent | e190a7fde521bd6af9ea485cc730f854aaf38e11 (diff) |
HCONTACT, part 3
git-svn-id: http://svn.miranda-ng.org/main/trunk@8081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/main.cpp')
-rw-r--r-- | protocols/Xfire/src/main.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index bc9e744231..51d217717f 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -221,7 +221,7 @@ class XFireClient : public PacketListener { void getBuddyList();
void sendmsg(char*usr,char*msg);
void setNick(char*nnick);
- void handlingBuddy(HANDLE handle);
+ void handlingBuddy(HCONTACT handle);
void CheckAvatar(BuddyListEntry* entry);
private:
@@ -259,11 +259,12 @@ void XFireClient::CheckAvatar(BuddyListEntry* entry) { }
}
-void XFireClient::handlingBuddy(HANDLE handle){
+void XFireClient::handlingBuddy(HCONTACT handle)
+{
vector<BuddyListEntry*> *entries = client->getBuddyList()->getEntries();
for(uint i = 0 ; i < entries->size() ; i ++) {
BuddyListEntry *entry = entries->at(i);
- if (entry->hcontact==handle)
+ if (entry->hcontact == handle)
{
handlingBuddys(entry,0,NULL);
break;
@@ -1373,10 +1374,10 @@ INT_PTR SendMessage(WPARAM wParam, LPARAM lParam) if (myClient->client->connected&&db_get_w(ccs->hContact, protocolname, "Status", -1)!=ID_STATUS_OFFLINE)
{
myClient->sendmsg(dbv.pszVal, ptrA( mir_utf8encode((char*)ccs->lParam)));
- mir_forkthread(SendAck,ccs->hContact);
+ mir_forkthread(SendAck, (void*)ccs->hContact);
sended=1;
}
- else mir_forkthread(SendBadAck,ccs->hContact);
+ else mir_forkthread(SendBadAck, (void*)ccs->hContact);
db_free(&dbv);
return sended;
@@ -1684,7 +1685,7 @@ HCONTACT CList_FindContact (int uid) void CList_MakeAllOffline()
{
- vector<HANDLE> fhandles;
+ vector<HCONTACT> fhandles;
for (HCONTACT hContact = db_find_first(protocolname); hContact; hContact = db_find_next(hContact, protocolname)) {
//freunde von freunden in eine seperate liste setzen
//nur wenn das nicht abgestellt wurde
|