diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-02 19:38:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-02 19:38:44 +0000 |
commit | 8fecb411c56387ef6db40abe96b8c935fddc6083 (patch) | |
tree | 3aee9abef3610ab248bba34af1bd4878038d130f /protocols/JabberG/src/jabber_iq.h | |
parent | f7e58cf1bf50928ae22ffbdd9de99844407d5780 (diff) |
atavism extincted: old nasty IQ handler mechanism
git-svn-id: http://svn.miranda-ng.org/main/trunk@6312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_iq.h')
-rw-r--r-- | protocols/JabberG/src/jabber_iq.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/protocols/JabberG/src/jabber_iq.h b/protocols/JabberG/src/jabber_iq.h index 02d4fdf38e..57afea900b 100644 --- a/protocols/JabberG/src/jabber_iq.h +++ b/protocols/JabberG/src/jabber_iq.h @@ -29,34 +29,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class CJabberIqInfo;
-typedef enum {
- IQ_PROC_NONE,
- IQ_PROC_GETAGENTS,
- IQ_PROC_GETREGISTER,
- IQ_PROC_SETREGISTER,
- IQ_PROC_GETVCARD,
- IQ_PROC_SETVCARD,
- IQ_PROC_GETSEARCH,
- IQ_PROC_GETSEARCHFIELDS,
- IQ_PROC_BROWSEROOMS,
- IQ_PROC_DISCOROOMSERVER,
- IQ_PROC_DISCOAGENTS,
- IQ_PROC_DISCOBOOKMARKS,
- IQ_PROC_SETBOOKMARKS,
- IQ_PROC_DISCOCOMMANDS,
- IQ_PROC_EXECCOMMANDS,
-} JABBER_IQ_PROCID;
-
struct CJabberProto;
-typedef void (CJabberProto::*JABBER_IQ_PFUNC)(HXML iqNode);
typedef void (*IQ_USER_DATA_FREE_FUNC)(void *pUserData);
-typedef struct {
- TCHAR *xmlns;
- JABBER_IQ_PFUNC func;
- BOOL allowSubNs; // e.g. #info in disco#info
-} JABBER_IQ_XMLNS_FUNC;
-
// 2 minutes, milliseconds
#define JABBER_DEFAULT_IQ_REQUEST_TIMEOUT 120000
@@ -209,7 +184,7 @@ public: BOOL Shutdown();
// fucking params, maybe just return CJabberIqRequestInfo pointer ?
- CJabberIqInfo* AddHandler(JABBER_IQ_HANDLER pHandler, int nIqType = JABBER_IQ_TYPE_GET, const TCHAR *szReceiver = NULL, DWORD dwParamsToParse = 0, int nIqId = -1, void *pUserData = NULL, int iPriority = JH_PRIORITY_DEFAULT);
+ CJabberIqInfo* AddHandler(JABBER_IQ_HANDLER pHandler, int nIqType, const TCHAR *szReceiver, DWORD dwParamsToParse, int nIqId, void *pUserData, int iPriority);
CJabberIqPermanentInfo* AddPermanentHandler(JABBER_PERMANENT_IQ_HANDLER pHandler, int nIqTypes, DWORD dwParamsToParse, const TCHAR *szXmlns, BOOL bAllowPartialNs, const TCHAR *szTag, void *pUserData = NULL, IQ_USER_DATA_FREE_FUNC pUserDataFree = NULL, int iPriority = JH_PRIORITY_DEFAULT);
// returns TRUE when pInfo found, or FALSE otherwise
|