Remote Call Framework 3.3
CallbackConnectionService.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
19 #define INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
20 
21 #include <RCF/RcfFwd.hpp>
22 #include <RCF/Service.hpp>
23 #include <RCF/Tools.hpp>
24 
25 namespace RCF {
26 
27  class CallbackConnectionService : public I_Service, Noncopyable
28  {
29  public:
30 
31  CallbackConnectionService();
32 
33  private:
34 
35  void onServiceAdded(RcfServer & server);
36  void onServiceRemoved(RcfServer & server);
37  void onServerStart(RcfServer & server);
38 
39  public:
40  friend class RcfClient<I_CreateCallbackConnection>;
41  void CreateCallbackConnection();
42 
43  private:
44  RcfServer * mpServer;
45  OnCallbackConnectionCreated mOnCallbackConnectionCreated;
46  };
47 
48  typedef std::shared_ptr<CallbackConnectionService> CallbackConnectionServicePtr;
49 
50 } // namespace RCF
51 
52 #endif // ! INCLUDE_RCF_CALLBACKCONNECTIONSERVICE_HPP
Definition: AmiIoHandler.hpp:23