diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-22 23:05:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-22 23:05:16 +0000 |
commit | 12d71cc476065d21cc53321cf5ea57e29b4cc124 (patch) | |
tree | 4bcdf851b81c80012c8382abd37bfd22311150f3 /protocols/Tox/src/tox_proto.cpp | |
parent | 23e051890486c96ce377b6578a028b9f8787c338 (diff) |
- PROTO_INTERFACE got the default implementation;
- all unneeded stubs removed from all protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@12481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 39ffad7c39..045cf3117e 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -78,20 +78,15 @@ MCONTACT __cdecl CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr) return AddContact(address.c_str(), _T(""), flags & PALF_TEMPORARY);
}
-MCONTACT __cdecl CToxProto::AddToListByEvent(int, int, MEVENT) { return 0; }
-
int __cdecl CToxProto::Authorize(MEVENT hDbEvent)
{
MCONTACT hContact = GetContactFromAuthEvent(hDbEvent);
if (hContact == INVALID_CONTACT_ID)
- {
return 1;
- }
+
return OnGrantAuth(hContact, 0);
}
-int __cdecl CToxProto::AuthDeny(MEVENT, const PROTOCHAR*) { return 0; }
-
int __cdecl CToxProto::AuthRecv(MCONTACT, PROTORECVEVENT* pre)
{
return Proto_AuthRecv(m_szModuleName, pre);
@@ -103,16 +98,6 @@ int __cdecl CToxProto::AuthRequest(MCONTACT hContact, const PROTOCHAR *szMessage return OnRequestAuth(hContact, (LPARAM)reason);
}
-HANDLE __cdecl CToxProto::ChangeInfo(int, void*) { return 0; }
-
-int __cdecl CToxProto::GetInfo(MCONTACT, int) { return 0; }
-
-HANDLE __cdecl CToxProto::SearchBasic(const PROTOCHAR*) { return 0; }
-
-HANDLE __cdecl CToxProto::SearchByEmail(const PROTOCHAR*) { return 0; }
-
-HANDLE __cdecl CToxProto::SearchByName(const PROTOCHAR*, const PROTOCHAR*, const PROTOCHAR*) { return 0; }
-
HWND __cdecl CToxProto::SearchAdvanced(HWND owner)
{
return OnSearchAdvanced(owner);
@@ -123,37 +108,20 @@ HWND __cdecl CToxProto::CreateExtendedSearchUI(HWND owner) return OnCreateExtendedSearchUI(owner);
}
-int __cdecl CToxProto::RecvContacts(MCONTACT, PROTORECVEVENT*) { return 0; }
-
-int __cdecl CToxProto::RecvFile(MCONTACT hContact, PROTOFILEEVENT *pre)
-{
- return Proto_RecvFile(hContact, pre);
-}
-
int __cdecl CToxProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre)
{
return OnReceiveMessage(hContact, pre);
}
-int __cdecl CToxProto::RecvUrl(MCONTACT, PROTORECVEVENT*) { return 0; }
-
-int __cdecl CToxProto::SendContacts(MCONTACT, int, int, MCONTACT*) { return 0; }
-
int CToxProto::SendMsg(MCONTACT hContact, int flags, const char *msg)
{
return OnSendMessage(hContact, flags, msg);
}
-int __cdecl CToxProto::SendUrl(MCONTACT, int, const char*) { return 0; }
-
-int __cdecl CToxProto::SetApparentMode(MCONTACT, int) { return 0; }
-
int __cdecl CToxProto::SetStatus(int iNewStatus)
{
if (iNewStatus == m_iDesiredStatus)
- {
return 0;
- }
switch (iNewStatus)
{
@@ -223,8 +191,6 @@ int __cdecl CToxProto::SetStatus(int iNewStatus) HANDLE __cdecl CToxProto::GetAwayMsg(MCONTACT) { return 0; }
-int __cdecl CToxProto::RecvAwayMsg(MCONTACT, int, PROTORECVEVENT*) { return 0; }
-
int __cdecl CToxProto::SetAwayMsg(int, const PROTOCHAR *msg)
{
if (IsOnline())
@@ -257,4 +223,4 @@ int __cdecl CToxProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM }
return 1;
-}
\ No newline at end of file +}
|