19 #ifndef INCLUDE_RCF_SERVICE_HPP
20 #define INCLUDE_RCF_SERVICE_HPP
22 #include <boost/shared_ptr.hpp>
24 #include <RCF/Export.hpp>
25 #include <RCF/ServerTask.hpp>
26 #include <RCF/ThreadLibrary.hpp>
34 typedef boost::shared_ptr<I_Service> ServicePtr;
35 typedef boost::shared_ptr<StubEntry> StubEntryPtr;
37 class RCF_EXPORT I_Service
45 virtual void onServiceAdded(RcfServer &server);
46 virtual void onServiceRemoved(RcfServer &server);
47 virtual void onServerStart(RcfServer &server);
48 virtual void onServerStop(RcfServer &server);
50 void setThreadPool(ThreadPoolPtr threadPoolPtr);
53 virtual void onTimer()
58 friend class RcfServer;
60 TaskEntries mTaskEntries;
62 ThreadPoolPtr mThreadPoolPtr;
67 #endif // ! INCLUDE_RCF_SERVICE_HPP