gloox  1.0.13
adhocplugin.h
1 /*
2  Copyright (c) 2015 by Jakob Schröter <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 ADHOCPLUGIN_H__
16 #define ADHOCPLUGIN_H__
17 
18 #include "gloox.h"
19 #include "stanzaextension.h"
20 
21 namespace gloox
22 {
23 
24  class Tag;
25 
38  class GLOOX_API AdhocPlugin : public StanzaExtension
39  {
40  public:
41 
45  AdhocPlugin( int type ) : StanzaExtension( type ) {}
46 
50  virtual ~AdhocPlugin() {}
51 
55  virtual operator bool() const = 0;
56 
57  };
58 
59 }
60 
61 #endif // ADHOCPLUGIN_H__