diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-16 19:56:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-16 19:56:59 +0000 |
commit | cf2966326de39e86fa52b34c91aee2a29a31bdab (patch) | |
tree | a6a05803cbb85146c3f1fee249ad0e8998959e51 /protocols/IcqOscarJ/src/utilities.cpp | |
parent | 2053ba5bd4f1f43d960ddeb40fa10568e2254f25 (diff) |
old helpers FindFirstContact/FindNextContact removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@8144 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/utilities.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/utilities.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols/IcqOscarJ/src/utilities.cpp b/protocols/IcqOscarJ/src/utilities.cpp index 29e88eb9e2..848081765c 100644 --- a/protocols/IcqOscarJ/src/utilities.cpp +++ b/protocols/IcqOscarJ/src/utilities.cpp @@ -372,7 +372,7 @@ void CIcqProto::InitContactsCache() // build cache
icq_lock l(contactsCacheMutex);
- MCONTACT hContact = FindFirstContact();
+ MCONTACT hContact = db_find_first(m_szModuleName);
while (hContact) {
DWORD dwUin;
@@ -381,7 +381,7 @@ void CIcqProto::InitContactsCache() if (!getContactUid(hContact, &dwUin, &szUid))
AddToContactsCache(hContact, dwUin, szUid);
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
}
@@ -454,7 +454,7 @@ MCONTACT CIcqProto::HContactFromUIN(DWORD dwUin, int *Added) if (hContact)
return hContact;
- hContact = FindFirstContact();
+ hContact = db_find_first(m_szModuleName);
while (hContact) {
DWORD dwContactUin;
@@ -464,7 +464,7 @@ MCONTACT CIcqProto::HContactFromUIN(DWORD dwUin, int *Added) return hContact;
}
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
//not present: add
@@ -522,7 +522,7 @@ MCONTACT CIcqProto::HContactFromUID(DWORD dwUin, const char *szUid, int *Added) MCONTACT hContact = HandleFromCacheByUid(dwUin, szUid);
if (hContact) return hContact;
- hContact = FindFirstContact();
+ hContact = db_find_first(m_szModuleName);
while (hContact) {
DWORD dwContactUin;
uid_str szContactUid;
@@ -535,7 +535,7 @@ MCONTACT CIcqProto::HContactFromUID(DWORD dwUin, const char *szUid, int *Added) return hContact;
}
}
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
//not present: add
@@ -888,7 +888,7 @@ void CIcqProto::ResetSettingsOnListReload() setWord("SrvRecordCount", 0);
delSetting(DBSETTING_SERVLIST_UNHANDLED);
- MCONTACT hContact = FindFirstContact();
+ MCONTACT hContact = db_find_first(m_szModuleName);
while (hContact) {
// All these values will be restored during the serv-list receive
@@ -900,7 +900,7 @@ void CIcqProto::ResetSettingsOnListReload() setByte(hContact, "Auth", 0);
delSetting(hContact, DBSETTING_SERVLIST_DATA);
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
FlushSrvGroupsCache();
@@ -912,7 +912,7 @@ void CIcqProto::ResetSettingsOnConnect() setByte("SrvVisibility", 0);
setDword("IdleTS", 0);
- MCONTACT hContact = FindFirstContact();
+ MCONTACT hContact = db_find_first(m_szModuleName);
while (hContact) {
setDword(hContact, "LogonTS", 0);
@@ -924,7 +924,7 @@ void CIcqProto::ResetSettingsOnConnect() if (getContactStatus(hContact) != ID_STATUS_OFFLINE)
setWord(hContact, "Status", ID_STATUS_OFFLINE);
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
}
@@ -933,7 +933,7 @@ void CIcqProto::ResetSettingsOnLoad() setDword("IdleTS", 0);
setDword("LogonTS", 0);
- MCONTACT hContact = FindFirstContact();
+ MCONTACT hContact = db_find_first(m_szModuleName);
while (hContact) {
setDword(hContact, "LogonTS", 0);
@@ -948,7 +948,7 @@ void CIcqProto::ResetSettingsOnLoad() }
setByte(hContact, "DCStatus", 0);
- hContact = FindNextContact(hContact);
+ hContact = db_find_next(hContact, m_szModuleName);
}
}
|