Remote Call Framework 3.0
CallbackConnectionService.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2018, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 3.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
20 #define INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
21 
22 #include <RCF/RcfFwd.hpp>
23 #include <RCF/Service.hpp>
24 #include <RCF/Tools.hpp>
25 
26 namespace RCF {
27 
28  class CallbackConnectionService : public I_Service, Noncopyable
29  {
30  public:
31 
32  CallbackConnectionService();
33 
34  private:
35 
36  void onServiceAdded(RcfServer & server);
37  void onServiceRemoved(RcfServer & server);
38  void onServerStart(RcfServer & server);
39 
40  public:
41  friend class RcfClient<I_CreateCallbackConnection>;
42  void CreateCallbackConnection();
43 
44  private:
45  RcfServer * mpServer;
46  OnCallbackConnectionCreated mOnCallbackConnectionCreated;
47  };
48 
49  typedef std::shared_ptr<CallbackConnectionService> CallbackConnectionServicePtr;
50 
51 } // namespace RCF
52 
53 #endif // ! INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
Definition: AmiIoHandler.hpp:24