summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-22 23:05:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-22 23:05:16 +0000
commit12d71cc476065d21cc53321cf5ea57e29b4cc124 (patch)
tree4bcdf851b81c80012c8382abd37bfd22311150f3 /protocols/IRCG
parent23e051890486c96ce377b6578a028b9f8787c338 (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/IRCG')
-rw-r--r--protocols/IRCG/src/irc.h19
-rw-r--r--protocols/IRCG/src/ircproto.cpp130
2 files changed, 0 insertions, 149 deletions
diff --git a/protocols/IRCG/src/irc.h b/protocols/IRCG/src/irc.h
index 991a01988d..7af8860637 100644
--- a/protocols/IRCG/src/irc.h
+++ b/protocols/IRCG/src/irc.h
@@ -212,12 +212,9 @@ struct CIrcProto : public PROTO<CIrcProto>
// Protocol 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 );
@@ -225,33 +222,17 @@ struct CIrcProto : public PROTO<CIrcProto>
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 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, 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);
// Services
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index 0a259851c1..7dd787fe5d 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -336,14 +336,6 @@ MCONTACT __cdecl CIrcProto::AddToList(int, PROTOSEARCHRESULT* psr)
}
////////////////////////////////////////////////////////////////////////////////////////
-// AddToList - adds a contact to the contact list
-
-MCONTACT __cdecl CIrcProto::AddToListByEvent(int, int, MEVENT)
-{
- return NULL;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// AuthAllow - processes the successful authorization
int __cdecl CIrcProto::Authorize(MEVENT)
@@ -360,22 +352,6 @@ int __cdecl CIrcProto::AuthDeny(MEVENT, const TCHAR*)
}
////////////////////////////////////////////////////////////////////////////////////////
-// PSR_AUTH
-
-int __cdecl CIrcProto::AuthRecv(MCONTACT, PROTORECVEVENT*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// PSS_AUTHREQUEST
-
-int __cdecl CIrcProto::AuthRequest(MCONTACT, const TCHAR*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// FileAllow - starts a file transfer
HANDLE __cdecl CIrcProto::FileAllow(MCONTACT, HANDLE hTransfer, const TCHAR* szPath)
@@ -500,14 +476,6 @@ DWORD_PTR __cdecl CIrcProto::GetCaps(int type, MCONTACT)
}
////////////////////////////////////////////////////////////////////////////////////////
-// GetInfo - retrieves a contact info
-
-int __cdecl CIrcProto::GetInfo(MCONTACT, int)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// SearchBasic - searches the contact by JID
struct AckBasicSearchParam
@@ -542,72 +510,6 @@ HANDLE __cdecl CIrcProto::SearchBasic(const PROTOCHAR* szId)
}
////////////////////////////////////////////////////////////////////////////////////////
-// SearchByEmail - searches the contact by its e-mail
-
-HANDLE __cdecl CIrcProto::SearchByEmail(const PROTOCHAR*)
-{
- return NULL;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// upsupported search functions
-
-HANDLE __cdecl CIrcProto::SearchByName(const PROTOCHAR*, const PROTOCHAR*, const PROTOCHAR*)
-{
- return NULL;
-}
-
-HWND __cdecl CIrcProto::CreateExtendedSearchUI(HWND)
-{
- return NULL;
-}
-
-HWND __cdecl CIrcProto::SearchAdvanced(HWND)
-{
- return NULL;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// RecvContacts
-
-int __cdecl CIrcProto::RecvContacts(MCONTACT, PROTORECVEVENT*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// RecvFile
-
-int __cdecl CIrcProto::RecvFile(MCONTACT hContact, PROTORECVFILET* evt)
-{
- return Proto_RecvFile(hContact, evt);
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// RecvMsg
-
-int __cdecl CIrcProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* evt)
-{
- return Proto_RecvMessage(hContact, evt);
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// RecvUrl
-
-int __cdecl CIrcProto::RecvUrl(MCONTACT, PROTORECVEVENT*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// SendContacts
-
-int __cdecl CIrcProto::SendContacts(MCONTACT, int, int, MCONTACT*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// SendFile - sends a file
HANDLE __cdecl CIrcProto::SendFile(MCONTACT hContact, const TCHAR*, TCHAR** ppszFiles)
@@ -815,22 +717,6 @@ int __cdecl CIrcProto::SendMsg(MCONTACT hContact, int flags, const char* pszSrc)
}
////////////////////////////////////////////////////////////////////////////////////////
-// SendUrl
-
-int __cdecl CIrcProto::SendUrl(MCONTACT, int, const char*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
-// SetApparentMode - sets the visibility status
-
-int __cdecl CIrcProto::SetApparentMode(MCONTACT, int)
-{
- return 0;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// SetStatus - sets the protocol status
int __cdecl CIrcProto::SetStatus(int iNewStatus)
@@ -929,14 +815,6 @@ HANDLE __cdecl CIrcProto::GetAwayMsg(MCONTACT hContact)
}
////////////////////////////////////////////////////////////////////////////////////////
-// PSR_AWAYMSG
-
-int __cdecl CIrcProto::RecvAwayMsg(MCONTACT, int, PROTORECVEVENT*)
-{
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////////////////////
// SetAwayMsg - sets the away status message
int __cdecl CIrcProto::SetAwayMsg(int status, const TCHAR* msg)
@@ -964,14 +842,6 @@ int __cdecl CIrcProto::SetAwayMsg(int status, const TCHAR* msg)
}
/////////////////////////////////////////////////////////////////////////////////////////
-// UserIsTyping - sends a UTN notification
-
-int __cdecl CIrcProto::UserIsTyping(MCONTACT, int)
-{
- return 0;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
// OnEvent - maintain protocol events
int __cdecl CIrcProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)