gloox  1.0.16
iqhandler.h
1 /*
2  Copyright (c) 2004-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 IQHANDLER_H__
16 #define IQHANDLER_H__
17 
18 #include "iq.h"
19 
20 namespace gloox
21 {
22 
31  class GLOOX_API IqHandler
32  {
33  public:
37  virtual ~IqHandler() {}
38 
46  virtual bool handleIq( const IQ& iq ) = 0;
47 
60  virtual void handleIqID( const IQ& iq, int context ) = 0;
61 
62  };
63 
64 }
65 
66 #endif // IQHANDLER_H__
An abstraction of an IQ stanza.
Definition: iq.h:33
The namespace for the gloox library.
Definition: adhoc.cpp:27
A virtual interface which can be reimplemented to receive IQ stanzas.
Definition: iqhandler.h:31
virtual ~IqHandler()
Definition: iqhandler.h:37