From 12d71cc476065d21cc53321cf5ea57e29b4cc124 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Mar 2015 23:05:16 +0000 Subject: - 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 --- protocols/AimOscar/src/proto.cpp | 87 ---------------------------------------- protocols/AimOscar/src/proto.h | 12 ------ 2 files changed, 99 deletions(-) (limited to 'protocols/AimOscar/src') diff --git a/protocols/AimOscar/src/proto.cpp b/protocols/AimOscar/src/proto.cpp index db4fab68ce..0b468f1dba 100644 --- a/protocols/AimOscar/src/proto.cpp +++ b/protocols/AimOscar/src/proto.cpp @@ -130,11 +130,6 @@ MCONTACT CAimProto::AddToList(int flags, PROTOSEARCHRESULT* psr) return hContact; //See authrequest for serverside addition } -MCONTACT __cdecl CAimProto::AddToListByEvent(int flags, int iContact, MEVENT hDbEvent) -{ - return NULL; -} - //////////////////////////////////////////////////////////////////////////////////////// // AuthAllow - processes the successful authorization @@ -151,14 +146,6 @@ int CAimProto::AuthDeny(MEVENT hDbEvent, const TCHAR* szReason) return 0; } -//////////////////////////////////////////////////////////////////////////////////////// -// PSR_AUTH - -int __cdecl CAimProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* evt) -{ - return 1; -} - //////////////////////////////////////////////////////////////////////////////////////// // PSS_AUTHREQUEST @@ -328,14 +315,6 @@ DWORD_PTR __cdecl CAimProto::GetCaps(int type, MCONTACT hContact) return 0; } -//////////////////////////////////////////////////////////////////////////////////////// -// GetInfo - retrieves a contact info - -int __cdecl CAimProto::GetInfo(MCONTACT hContact, int infoType) -{ - return 1; -} - //////////////////////////////////////////////////////////////////////////////////////// // SearchBasic - searches the contact by JID @@ -386,40 +365,6 @@ HANDLE __cdecl CAimProto::SearchByEmail(const PROTOCHAR* email) return (HANDLE)1; } -//////////////////////////////////////////////////////////////////////////////////////// -// SearchByName - searches the contact by its first or last name, or by a nickname - -HANDLE __cdecl CAimProto::SearchByName(const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName) -{ - return NULL; -} - -HWND __cdecl CAimProto::SearchAdvanced(HWND owner) -{ - return NULL; -} - -HWND __cdecl CAimProto::CreateExtendedSearchUI(HWND owner) -{ - return NULL; -} - -//////////////////////////////////////////////////////////////////////////////////////// -// RecvContacts - -int __cdecl CAimProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT*) -{ - return 1; -} - -//////////////////////////////////////////////////////////////////////////////////////// -// RecvFile - -int __cdecl CAimProto::RecvFile(MCONTACT hContact, PROTOFILEEVENT* evt) -{ - return Proto_RecvFile(hContact, evt); -} - //////////////////////////////////////////////////////////////////////////////////////// // RecvMsg @@ -441,22 +386,6 @@ int __cdecl CAimProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) return ( int )res; } -//////////////////////////////////////////////////////////////////////////////////////// -// RecvUrl - -int __cdecl CAimProto::RecvUrl(MCONTACT hContact, PROTORECVEVENT*) -{ - return 1; -} - -//////////////////////////////////////////////////////////////////////////////////////// -// SendContacts - -int __cdecl CAimProto::SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) -{ - return 1; -} - //////////////////////////////////////////////////////////////////////////////////////// // SendFile - sends a file @@ -609,22 +538,6 @@ int __cdecl CAimProto::SendMsg(MCONTACT hContact, int flags, const char* pszSrc) return res; } -//////////////////////////////////////////////////////////////////////////////////////// -// SendUrl - -int __cdecl CAimProto::SendUrl(MCONTACT hContact, int flags, const char* url) -{ - return 1; -} - -//////////////////////////////////////////////////////////////////////////////////////// -// SetApparentMode - sets the visibility m_iStatus - -int __cdecl CAimProto::SetApparentMode(MCONTACT hContact, int mode) -{ - return 0; -} - //////////////////////////////////////////////////////////////////////////////////////// // SetStatus - sets the protocol m_iStatus diff --git a/protocols/AimOscar/src/proto.h b/protocols/AimOscar/src/proto.h index 6635cc7a74..e92f9f34e1 100644 --- a/protocols/AimOscar/src/proto.h +++ b/protocols/AimOscar/src/proto.h @@ -29,11 +29,9 @@ struct CAimProto : public PROTO //==================================================================================== 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 PROTOCHAR* szPath ); @@ -42,25 +40,15 @@ struct CAimProto : public PROTO virtual int __cdecl FileResume( HANDLE hTransfer, int* action, const PROTOCHAR** szFilename ); virtual DWORD_PTR __cdecl GetCaps( int type, MCONTACT hContact = NULL ); - virtual int __cdecl GetInfo(MCONTACT hContact, int infoType ); virtual HANDLE __cdecl SearchBasic( const PROTOCHAR* id ); virtual HANDLE __cdecl SearchByEmail( const PROTOCHAR* email ); - virtual HANDLE __cdecl SearchByName( const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* 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, PROTOFILEEVENT* ); 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 PROTOCHAR* szDescription, PROTOCHAR** 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 ); -- cgit v1.2.3