gloox  1.1-svn
mucinvite.h
1 /*
2  Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 
15 #ifndef MUCINVITE_H__
16 #define MUCINVITE_H__
17 
18 
19 #include "stanzaextension.h"
20 #include "jid.h"
21 #include "gloox.h"
22 
23 #include <string>
24 
25 namespace gloox
26 {
27 
28  class Tag;
29 
37  class GLOOX_API MUCInvite : public StanzaExtension
38  {
39 
40  public:
45  MUCInvite( const Tag* tag = 0 );
46 
52  MUCInvite( const JID& room, const std::string& password = EmptyString );
53 
57  virtual ~MUCInvite();
58 
59  // reimplemented from StanzaExtension
60  virtual const std::string& filterString() const;
61 
62  // reimplemented from StanzaExtension
63  virtual StanzaExtension* newInstance( const Tag* tag ) const
64  {
65  return new MUCInvite( tag );
66  }
67 
68  // reimplemented from StanzaExtension
69  virtual Tag* tag() const;
70 
71  // reimplemented from StanzaExtension
72  virtual StanzaExtension* clone() const
73  {
74  return new MUCInvite( *this );
75  }
76 
77  private:
78  JID m_room;
79  std::string m_pwd;
80 
81  };
82 
83 }
84 
85 #endif // MUCINVITE_H__