ADTF
Loading...
Searching...
No Matches
service_intf.h
Go to the documentation of this file.
1
7
8#ifndef _ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
9#define _ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
10
11namespace adtf
12{
13namespace ucom
14{
15namespace ant
16{
17
23class DOEXPORT IService : public IObjectInfo
24{
25public:
30 ADTF_IID(IService, "service.ant.ucom.adtf.iid");
31
32 public:
161 enum tServiceEvent : uint32_t
162 {
165
171
177
183
189
195 };
196
197
198 enum class tServiceState: uint32_t
199 {
200 Deinitialized = 0,
201 Initialized = 1
202 };
203
204 public:
205
206 virtual tServiceState GetState() const = 0;
207
208 virtual tResult SetState(tServiceState eState) = 0;
209
224 virtual tResult ServiceEvent(int nEventId,
225 uint32_t ui32Param1 = 0,
226 uint32_t ui32Param2 = 0,
227 void* pvData = nullptr,
228 int szData = 0) = 0;
229
230 protected:
232 ~IService() = default;
233};
234
235}//namespace ant
236
239
240}//namespace ucom
241}//namespace adtf
242
243//*************************************************************************************************
244#endif //_ADTF_UCOM_ANT_SERVICE_INTERFACE_INCLUDES_HEADER_
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition object_info_intf.h:23
Definition service_intf.h:24
virtual tResult ServiceEvent(int nEventId, uint32_t ui32Param1=0, uint32_t ui32Param2=0, void *pvData=nullptr, int szData=0)=0
~IService()=default
Protected destructor --> Only the final implementation can be destroyed!
tServiceEvent
Definition service_intf.h:162
@ SE_ChangeRunLevel
Definition service_intf.h:194
@ SE_Starting
Definition service_intf.h:170
@ SE_Unknown
Unknown Event.
Definition service_intf.h:164
@ SE_Ready
Definition service_intf.h:176
@ SE_Stopping
Definition service_intf.h:182
@ SE_Stopped
Definition service_intf.h:188
ADTF_IID(IService, "service.ant.ucom.adtf.iid")
Namespace for all functionality of the ADTF UCOM SDK provided since v3.0.
Definition test_runtime.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
ant::IService IService
Alias always bringing the latest version of ant::IService into scope.
Definition service_intf.h:238
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14