gloox  1.0.27
adhocplugin.h
1 /*
2  Copyright (c) 2015-2023 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 
47  AdhocPlugin( int type ) : StanzaExtension( type ) {}
48 
52  virtual ~AdhocPlugin() {}
53 
57  virtual operator bool() const = 0;
58 
59  };
60 
61 }
62 
63 #endif // ADHOCPLUGIN_H__
A base class for Adhoc Command plugins (DataForm, IO Data, ...).
Definition: adhocplugin.h:39
virtual ~AdhocPlugin()
Definition: adhocplugin.h:52
AdhocPlugin(int type)
Definition: adhocplugin.h:47
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
The namespace for the gloox library.
Definition: adhoc.cpp:28