gloox  1.0.9
sihandler.h
1 /*
2  Copyright (c) 2007-2013 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 #ifndef SIHANDLER_H__
15 #define SIHANDLER_H__
16 
17 #include "macros.h"
18 #include "simanager.h"
19 
20 #include <string>
21 
22 namespace gloox
23 {
24 
25  class IQ;
26  class Tag;
27  class JID;
28 
39  class GLOOX_API SIHandler
40  {
41 
42  public:
46  virtual ~SIHandler() {}
47 
56  virtual void handleSIRequestResult( const JID& from, const JID& to, const std::string& sid,
57  const SIManager::SI& si ) = 0;
58 
64  virtual void handleSIRequestError( const IQ& iq, const std::string& sid ) = 0;
65 
66  };
67 
68 }
69 
70 #endif // SIHANDLER_H__