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,
147 #endif // NONSASLAUTH_H__
An abstraction of an IQ stanza.
This class implements a basic Jabber/XMPP Client.
This class is an implementation of XEP-0078 (Non-SASL Authentication).
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
A virtual interface which can be reimplemented to receive IQ stanzas.
virtual bool handleIq(const IQ &iq)
This is an abstraction of an XML element.