nonsaslauth.h

00001 /*
00002   Copyright (c) 2005-2006 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
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       // reimplemented from IqHandler
00059       virtual bool handleIq( Stanza *stanza );
00060 
00061       // reimplemented from IqHandler
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__

Generated on Tue May 1 14:20:20 2007 for gloox by  doxygen 1.5.1