00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef NONSASLAUTH_H__
00015 #define NONSASLAUTH_H__
00016
00017 #include "iqhandler.h"
00018
00019 #include <string>
00020
00021 namespace gloox
00022 {
00023
00024 class Client;
00025 class Stanza;
00026 class Tag;
00027
00037 class GLOOX_API NonSaslAuth : public IqHandler
00038 {
00039 public:
00044 NonSaslAuth( Client *parent );
00045
00049 virtual ~NonSaslAuth();
00050
00056 void doAuth( const std::string& sid );
00057
00058
00059 virtual bool handleIq( Stanza *stanza );
00060
00061
00062 virtual bool handleIqID( Stanza *stanza, int context );
00063
00064 private:
00065 enum NonSaslAuthTrack
00066 {
00067 TRACK_REQUEST_AUTH_FIELDS,
00068 TRACK_SEND_AUTH
00069 };
00070
00071 Client *m_parent;
00072 std::string m_sid;
00073
00074 };
00075
00076 }
00077
00078 #endif // NONSASLAUTH_H__