Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

mucinvite.h

00001 /*
00002   Copyright (c) 2009 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 
00015 #ifndef MUCINVITE_H__
00016 #define MUCINVITE_H__
00017 
00018 
00019 #include "stanzaextension.h"
00020 #include "jid.h"
00021 #include "gloox.h"
00022 
00023 #include <string>
00024 
00025 namespace gloox
00026 {
00027 
00028   class Tag;
00029 
00037   class GLOOX_API MUCInvite : public StanzaExtension
00038   {
00039 
00040     public:
00045       MUCInvite( const Tag* tag = 0 );
00046 
00052       MUCInvite( const JID& room, const std::string& password = EmptyString );
00053 
00057       virtual ~MUCInvite();
00058 
00059       // reimplemented from StanzaExtension
00060       virtual const std::string& filterString() const;
00061 
00062       // reimplemented from StanzaExtension
00063       virtual StanzaExtension* newInstance( const Tag* tag ) const
00064       {
00065         return new MUCInvite( tag );
00066       }
00067 
00068       // reimplemented from StanzaExtension
00069       virtual Tag* tag() const;
00070 
00071       // reimplemented from StanzaExtension
00072       virtual StanzaExtension* clone() const
00073       {
00074         return new MUCInvite( *this );
00075       }
00076 
00077     private:
00078       JID m_room;
00079       std::string m_pwd;
00080 
00081   };
00082 
00083 }
00084 
00085 #endif // MUCINVITE_H__

Generated on Tue May 4 16:35:12 2010 for gloox by  doxygen 1.4.1