summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-23 15:06:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-23 15:06:01 +0300
commit4080ed23db3d8463c9c6aceddd3670dbed9c379e (patch)
treece80831675532fe2de97072b23ebbb895ec4cdc0 /protocols/JabberG/src/jabber_proto.h
parentdffa41d2751a0ae5c05a2943107abffc48fcf0dd (diff)
Jabber:
- fixes #1844 (Tab button doesn't work in Jabber registration form); - added Escape handler for any dynamic form to inform parent dialog; - massive dynamic forms-related XML code cleaning & reordering; - now form fiields without types are also processed; - vertical scrollbar is hidden if it's not needed; - hidden fields do not eat form space anymore
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.h')
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h
index d0f42a7731..4714ce05fa 100755
--- a/protocols/JabberG/src/jabber_proto.h
+++ b/protocols/JabberG/src/jabber_proto.h
@@ -43,6 +43,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
struct CJabberProto;
class CJabberMucJidListDlg;
+class CJabberFormDlg;
+typedef void (CJabberProto::*JABBER_FORM_SUBMIT_FUNC)(CJabberFormDlg *pDlg, void *userdata);
+
enum TJabberGcLogInfoType { INFO_BAN, INFO_STATUS, INFO_CONFIG, INFO_AFFILIATION, INFO_ROLE };
typedef UNIQUE_MAP<wchar_t, TCharKeyCmp> U_TCHAR_MAP;
@@ -456,10 +459,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
void RenameParticipantNick(JABBER_LIST_ITEM *item, const char *oldNick, const TiXmlElement *itemNode);
void AcceptGroupchatInvite(const char *roomJid, const char *reason, const char *password);
- //---- jabber_form.c -----------------------------------------------------------------
-
- void FormCreateDialog(const TiXmlElement *xNode, char* defTitle, JABBER_FORM_SUBMIT_FUNC pfnSubmit, void *userdata);
-
//---- jabber_ft.c -------------------------------------------------------------------
void __cdecl FileReceiveThread(filetransfer *ft);
@@ -580,7 +579,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
CJabberMucJidListDlg *m_pDlgMucBanList, *m_pDlgMucAdminList, *m_pDlgMucOwnerList;
CJabberMucJidListDlg *& GetMucDlg(JABBER_MUC_JIDLIST_TYPE);
- void SetMucConfig(TiXmlElement *node, void *from);
+ void SetMucConfig(CJabberFormDlg *pDlg, void *from);
void MucShutdown(void);
void OnIqResultMucGetJidList(const TiXmlElement *iqNode, JABBER_MUC_JIDLIST_TYPE listType);
@@ -779,10 +778,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
void OnProcessPresence(const TiXmlElement *node, ThreadData *info);
void OnProcessPresenceCapabilites(const TiXmlElement *node, pResourceStatus &resource);
void OnProcessPubsubEvent(const TiXmlElement *node);
- //XEP-0198 specific types handlers
- void OnProcessSMa(const TiXmlElement *node, ThreadData *info);
- void OnProcessSMr(const TiXmlElement *node, ThreadData *info);
-
void OnProcessStreamOpening(const TiXmlElement *node, ThreadData *info);
void OnProcessProtocol(const TiXmlElement *node, ThreadData *info);
@@ -799,7 +794,8 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
BOOL OnProcessJingle(const TiXmlElement *node);
void OnProcessIq(const TiXmlElement *node);
- void SetRegConfig(TiXmlElement *node, void *from);
+ void SetRegConfig(CJabberFormDlg *pDlg, void *from);
+ void CancelRegConfig(CJabberFormDlg *pDlg, void *from);
void OnProcessRegIq(const TiXmlElement *node, ThreadData *info);
void OnPingReply(const TiXmlElement *node, CJabberIqInfo *pInfo);