gloox  1.0.27
sihandler.h
1 /*
2  Copyright (c) 2007-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 #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__
An abstraction of an IQ stanza.
Definition: iq.h:34
An abstraction of a JID.
Definition: jid.h:31
An abstract base class to handle results of outgoing SI requests, i.e. you requested a stream (using ...
Definition: sihandler.h:40
virtual void handleSIRequestError(const IQ &iq, const std::string &sid)=0
virtual void handleSIRequestResult(const JID &from, const JID &to, const std::string &sid, const SIManager::SI &si)=0
virtual ~SIHandler()
Definition: sihandler.h:46
The namespace for the gloox library.
Definition: adhoc.cpp:28