diff options
author | aunsane <aunsane@gmail.com> | 2017-12-30 00:46:19 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-12-30 00:46:19 +0300 |
commit | 77ccb3558c67c83bd0ce5136b785467ef2697911 (patch) | |
tree | 6722366fb5b7b827355e608bd75b1a921530f1c8 /protocols/Tox | |
parent | cc65f8dbead036bfdd29d397195f9152839d4919 (diff) |
Tox: removed own realization of SetAllContactStatus
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 6 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 4 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 1 |
3 files changed, 2 insertions, 9 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 4e1ee4abf4..08931dee00 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -12,12 +12,6 @@ void CToxProto::SetContactStatus(MCONTACT hContact, WORD status) setWord(hContact, "Status", status);
}
-void CToxProto::SetAllContactsStatus(WORD status)
-{
- for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
- SetContactStatus(hContact, status);
-}
-
MCONTACT CToxProto::GetContactFromAuthEvent(MEVENT hEvent)
{
DWORD body[3];
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 60864594e7..237fee5be0 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -16,7 +16,7 @@ CToxProto::CToxProto(const char* protoName, const wchar_t* userName) CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit);
- SetAllContactsStatus(ID_STATUS_OFFLINE);
+ setAllContactStatuses(ID_STATUS_OFFLINE);
// avatars
CreateProtoService(PS_GETAVATARCAPS, &CToxProto::GetAvatarCaps);
@@ -149,7 +149,7 @@ int CToxProto::SetStatus(int iNewStatus) SetEvent(hTerminateEvent);
if (!Miranda_IsTerminated())
- SetAllContactsStatus(ID_STATUS_OFFLINE);
+ setAllContactStatuses(ID_STATUS_OFFLINE);
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 24896724d7..ad63844d6a 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -158,7 +158,6 @@ private: // contacts
WORD GetContactStatus(MCONTACT hContact);
void SetContactStatus(MCONTACT hContact, WORD status);
- void SetAllContactsStatus(WORD status);
MCONTACT GetContact(const Tox *tox, const int friendNumber);
MCONTACT GetContact(const char *pubKey);
|