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/Steam | |
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/Steam')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 97 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.h | 25 |
2 files changed, 0 insertions, 122 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 8a80a2e235..d096beeac6 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -105,11 +105,6 @@ MCONTACT __cdecl CSteamProto::AddToList(int flags, PROTOSEARCHRESULT* psr) return hContact; } -MCONTACT __cdecl CSteamProto::AddToListByEvent(int flags, int iContact, MEVENT hDbEvent) -{ - return 0; -} - int __cdecl CSteamProto::Authorize(MEVENT hDbEvent) { if (IsOnline() && hDbEvent) @@ -164,11 +159,6 @@ int __cdecl CSteamProto::AuthDeny(MEVENT hDbEvent, const TCHAR* szReason) return 1; } -int __cdecl CSteamProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* pre) -{ - return 0; -} - int __cdecl CSteamProto::AuthRequest(MCONTACT hContact, const TCHAR* szMessage) { if (IsOnline() && hContact) @@ -209,26 +199,6 @@ int __cdecl CSteamProto::AuthRequest(MCONTACT hContact, const TCHAR* szMessage) return 1; } -HANDLE __cdecl CSteamProto::FileAllow(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szPath) -{ - return 0; -} - -int __cdecl CSteamProto::FileCancel(MCONTACT hContact, HANDLE hTransfer) -{ - return 0; -} - -int __cdecl CSteamProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szReason) -{ - return 0; -} - -int __cdecl CSteamProto::FileResume(HANDLE hTransfer, int* action, const TCHAR** szFilename) -{ - return 0; -} - DWORD_PTR __cdecl CSteamProto:: GetCaps(int type, MCONTACT hContact) { switch(type) @@ -252,8 +222,6 @@ DWORD_PTR __cdecl CSteamProto:: GetCaps(int type, MCONTACT hContact) } } -int __cdecl CSteamProto::GetInfo(MCONTACT hContact, int infoType ) { return 0; } - HANDLE __cdecl CSteamProto::SearchBasic(const TCHAR* id) { if (!this->IsOnline()) @@ -273,63 +241,11 @@ HANDLE __cdecl CSteamProto::SearchBasic(const TCHAR* id) return (HANDLE)STEAM_SEARCH_BYID; } -HANDLE __cdecl CSteamProto::SearchByEmail(const TCHAR* email) -{ - return 0; -} - -HANDLE __cdecl CSteamProto::SearchByName(const TCHAR* nick, const TCHAR* firstName, const TCHAR* lastName) -{ - //if (!this->IsOnline()) - return 0; - - /*ptrA token(getStringA("TokenSecret")); - - CMString keywords; - keywords.AppendFormat(L" %s", nick); - keywords.AppendFormat(L" %s", firstName); - keywords.AppendFormat(L" %s", lastName); - keywords.Trim(); - - //ForkThread(&CSteamProto::SearchByNameThread, ptrT(mir_tstrdup(keywords))); - PushRequest( - new SteamWebApi::SearchRequest(token, ptrT(mir_utf8encodeT(keywords))), - &CSteamProto::OnSearchByNameStarted); - - return (HANDLE)STEAM_SEARCH_BYNAME;*/ -} - -HWND __cdecl CSteamProto::SearchAdvanced( HWND owner ) { return 0; } - -HWND __cdecl CSteamProto::CreateExtendedSearchUI( HWND owner ){ return 0; } - -int __cdecl CSteamProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT* pre) -{ - return 0; -} - -int __cdecl CSteamProto::RecvFile(MCONTACT hContact, PROTORECVFILET* pre) -{ - return 0; -} - int __cdecl CSteamProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) { return (INT_PTR)AddDBEvent(hContact, EVENTTYPE_MESSAGE, pre->timestamp, DBEF_UTF, lstrlenA(pre->szMessage), (BYTE*)pre->szMessage); } -int __cdecl CSteamProto::RecvUrl(MCONTACT hContact, PROTORECVEVENT *) { return 0; } - -int __cdecl CSteamProto::SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) -{ - return 0; -} - -HANDLE __cdecl CSteamProto::SendFile(MCONTACT hContact, const TCHAR *szDescription, TCHAR **ppszFiles) -{ - return 0; -} - int __cdecl CSteamProto::SendMsg(MCONTACT hContact, int flags, const char *msg) { UINT hMessage = InterlockedIncrement(&hMessageProcess); @@ -369,10 +285,6 @@ void __cdecl CSteamProto::SendMsgThread(void *arg) ARG_MIR_FREE); } -int __cdecl CSteamProto::SendUrl(MCONTACT hContact, int flags, const char *url) { return 0; } - -int __cdecl CSteamProto::SetApparentMode(MCONTACT hContact, int mode) { return 0; } - int CSteamProto::SetStatus(int new_status) { mir_cslock lock(set_status_lock); @@ -431,15 +343,6 @@ int CSteamProto::SetStatus(int new_status) return 0; } -HANDLE __cdecl CSteamProto::GetAwayMsg(MCONTACT hContact) { return 0; } -int __cdecl CSteamProto::RecvAwayMsg(MCONTACT hContact, int mode, PROTORECVEVENT *evt) { return 0; } -int __cdecl CSteamProto::SetAwayMsg(int m_iStatus, const TCHAR *msg) { return 0; } - -int __cdecl CSteamProto::UserIsTyping(MCONTACT hContact, int type) -{ - return 0; -} - int __cdecl CSteamProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam) { switch (eventType) { diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h index 514410caea..34560349e8 100644 --- a/protocols/Steam/src/steam_proto.h +++ b/protocols/Steam/src/steam_proto.h @@ -125,46 +125,21 @@ public: // PROTO_INTERFACE
virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT *psr);
- virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent);
virtual int __cdecl Authorize(MEVENT hDbEvent);
virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR *szReason);
- virtual int __cdecl AuthRecv(MCONTACT hContact, PROTORECVEVENT *);
virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR * szMessage);
- virtual HANDLE __cdecl FileAllow(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szPath);
- virtual int __cdecl FileCancel(MCONTACT hContact, HANDLE hTransfer);
- virtual int __cdecl FileDeny(MCONTACT hContact, HANDLE hTransfer, const TCHAR* szReason);
- virtual int __cdecl FileResume(HANDLE hTransfer, int *action, const TCHAR** szFilename);
-
virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL);
- virtual int __cdecl GetInfo(MCONTACT hContact, int infoType);
virtual HANDLE __cdecl SearchBasic(const TCHAR *id);
- virtual HANDLE __cdecl SearchByEmail(const TCHAR *email);
- virtual HANDLE __cdecl SearchByName(const TCHAR *nick, const TCHAR *firstName, const TCHAR *lastName);
- virtual HWND __cdecl SearchAdvanced(HWND owner);
- virtual HWND __cdecl CreateExtendedSearchUI(HWND owner);
- virtual int __cdecl RecvContacts(MCONTACT hContact, PROTORECVEVENT*);
- virtual int __cdecl RecvFile(MCONTACT hContact, PROTORECVFILET*);
virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT*);
- virtual int __cdecl RecvUrl(MCONTACT hContact, PROTORECVEVENT*);
- virtual int __cdecl SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList);
- virtual HANDLE __cdecl SendFile(MCONTACT hContact, const TCHAR* szDescription, TCHAR** ppszFiles);
virtual int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg);
- virtual int __cdecl SendUrl(MCONTACT hContact, int flags, const char* url);
- virtual int __cdecl SetApparentMode(MCONTACT hContact, int mode);
virtual int __cdecl SetStatus(int iNewStatus);
- virtual HANDLE __cdecl GetAwayMsg(MCONTACT hContact);
- virtual int __cdecl RecvAwayMsg(MCONTACT hContact, int mode, PROTORECVEVENT* evt);
- virtual int __cdecl SetAwayMsg(int m_iStatus, const TCHAR* msg);
-
- virtual int __cdecl UserIsTyping(MCONTACT hContact, int type);
-
virtual int __cdecl OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam);
// instances
|