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/AimOscar | |
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/AimOscar')
-rw-r--r-- | protocols/AimOscar/src/proto.cpp | 87 | ||||
-rw-r--r-- | protocols/AimOscar/src/proto.h | 12 |
2 files changed, 0 insertions, 99 deletions
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
@@ -152,14 +147,6 @@ int CAimProto::AuthDeny(MEVENT hDbEvent, const TCHAR* szReason) }
////////////////////////////////////////////////////////////////////////////////////////
-// PSR_AUTH
-
-int __cdecl CAimProto::AuthRecv(MCONTACT hContact, PROTORECVEVENT* evt)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// PSS_AUTHREQUEST
int __cdecl CAimProto::AuthRequest(MCONTACT hContact, const TCHAR* szMessage)
@@ -329,14 +316,6 @@ DWORD_PTR __cdecl CAimProto::GetCaps(int type, MCONTACT hContact) }
////////////////////////////////////////////////////////////////////////////////////////
-// GetInfo - retrieves a contact info
-
-int __cdecl CAimProto::GetInfo(MCONTACT hContact, int infoType)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// SearchBasic - searches the contact by JID
void __cdecl CAimProto::basic_search_ack_success(void* p)
@@ -387,40 +366,6 @@ HANDLE __cdecl CAimProto::SearchByEmail(const PROTOCHAR* email) }
////////////////////////////////////////////////////////////////////////////////////////
-// 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
int __cdecl CAimProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre)
@@ -442,22 +387,6 @@ int __cdecl CAimProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) }
////////////////////////////////////////////////////////////////////////////////////////
-// 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
HANDLE __cdecl CAimProto::SendFile(MCONTACT hContact, const PROTOCHAR* szDescription, PROTOCHAR** ppszFiles)
@@ -610,22 +539,6 @@ int __cdecl CAimProto::SendMsg(MCONTACT hContact, int flags, const char* pszSrc) }
////////////////////////////////////////////////////////////////////////////////////////
-// 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
int __cdecl CAimProto::SetStatus(int iNewStatus)
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<CAimProto> //====================================================================================
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<CAimProto> 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 );
|