From 992a950aee9e228c9b6a196178dc001faff4f35b Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Wed, 24 May 2006 02:13:24 +0000 Subject: Add gui code for registration (bzr r991) --- src/pedro/pedroxmpp.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/pedro/pedroxmpp.h') diff --git a/src/pedro/pedroxmpp.h b/src/pedro/pedroxmpp.h index 12a69fa3b..d26b83b76 100644 --- a/src/pedro/pedroxmpp.h +++ b/src/pedro/pedroxmpp.h @@ -811,19 +811,6 @@ public: virtual int getMsgId() { return msgId++; } - /** - * - */ - virtual void setDoRegister(bool val) - { doRegister = val; } - - - /** - * - */ - virtual bool getDoRegister() - { return doRegister; } - //####################### @@ -882,6 +869,29 @@ public: */ virtual void rosterShow(const DOMString &jid, const DOMString &show); + //####################### + //# REGISTRATION + //####################### + + /** + * Set whether the client should to in-band registration + * before authentication. Causes inBandRegistrationNew() to be called + * synchronously, before async is started. + */ + virtual void setDoRegister(bool val) + { doRegister = val; } + + /** + * Change the password of an existing account with a server + */ + bool inBandRegistrationChangePassword(const DOMString &newPassword); + + /** + * Cancel an existing account with a server + */ + bool inBandRegistrationCancel(); + + //####################### //# CHAT (individual) //####################### @@ -1127,20 +1137,10 @@ private: bool iqAuthenticate(const DOMString &streamId); /** - * Register a new account with a server + * Register a new account with a server. Not done by user */ bool inBandRegistrationNew(); - /** - * Change the password of an existing account with a server - */ - bool inBandRegistrationChangePassword(const DOMString &newPassword); - - /** - * Cancel an existing account with a server - */ - bool inBandRegistrationCancel(); - bool keepGoing; bool doRegister; -- cgit v1.2.3