14 #ifndef NONSASLAUTH_H__
15 #define NONSASLAUTH_H__
17 #include "iqhandler.h"
58 void doAuth(
const std::string& sid );
61 virtual bool handleIq(
const IQ& iq ) { (void)iq;
return false; }
64 virtual void handleIqID(
const IQ& iq,
int context );
67 #ifdef NONSASLAUTH_TEST
84 Query(
const std::string& user );
90 Query(
const Tag* tag = 0 );
100 Query* newInstance(
const std::string& user,
const std::string& sid,
101 const std::string& pwd,
const std::string& resource )
const;
109 virtual const std::string& filterString()
const;
112 virtual StanzaExtension* newInstance(
const Tag* tag )
const
114 return new Query( tag );
118 virtual Tag* tag()
const;
121 virtual StanzaExtension* clone()
const
123 return new Query( *
this );
129 std::string m_resource;
134 enum NonSaslAuthTrack
136 TrackRequestAuthFields,
This class implements a basic Jabber/XMPP Client.
An abstraction of an IQ stanza.
A virtual interface which can be reimplemented to receive IQ stanzas.
This class is an implementation of XEP-0078 (Non-SASL Authentication).
virtual bool handleIq(const IQ &iq)
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
The namespace for the gloox library.