- Aldebaran documentation |
- C++ Libraries |
- index

servicemanager 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
servicemanager_structs.h
Go to the documentation of this file.
1
4 #ifndef SERVICEMANAGER_STRUCTS_H
5 #define SERVICEMANAGER_STRUCTS_H
6
7 #include <string>
8 #include <qi/anyobject.hpp>
9 #include <qipackage/package_info.hpp>
10
11 namespace qi
12 {
13
14 enum ServiceEventReason
15 {
16 ProcessStartRequest,
17 ProcessStopRequest,
18 ProcessStopped,
19 ProcessCrashed,
20 ProcessCrashedWhileStopping
21 };
22
23 struct ServiceProcessInfo
24 {
25 // Default constructor for registering
26 ServiceProcessInfo()
27 : running(false), name(""), execStart(""), autorun(false)
28 { }
29
30 ServiceProcessInfo(const qi::PackageService& pkgService, bool _running = false)
31 : running(_running), name(pkgService.name)
32 , execStart(pkgService.execStart), autorun(pkgService.autoRun)
33 { }
34
35 ServiceProcessInfo(
36 const qi::PackageService& pkgService,
37 std::string packageUuid,
38 bool _running = false
39 )
40 : running(_running)
41 , name(pkgService.name)
42 , execStart(pkgService.execStart)
43 , autorun(pkgService.autoRun)
44 , packageUuid(packageUuid)
45 { }
46
47 bool running;
48 std::string name;
49 std::string execStart;
50 bool autorun;
51 std::string packageUuid;
52 };
53
54 }
55
56 QI_TYPE_ENUM(qi::ServiceEventReason);
57 QI_TYPE_STRUCT_EXTENSION_ADDED_FIELDS(qi::ServiceProcessInfo, "packageUuid");
58 QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun, packageUuid);
59
60 #endif
qi::ProcessCrashedWhileStopping
Definition: servicemanager_structs.h:20
qi::ServiceProcessInfo
Definition: servicemanager_structs.h:23
qi::ServiceProcessInfo::name
std::string name
Definition: servicemanager_structs.h:48
QI_TYPE_STRUCT
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun, packageUuid)
qi::ProcessStartRequest
Definition: servicemanager_structs.h:16
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
Definition: servicemanager_structs.h:30
QI_TYPE_ENUM
QI_TYPE_ENUM(qi::ServiceEventReason)
qi::ProcessStopRequest
Definition: servicemanager_structs.h:17
qi::ProcessStopped
Definition: servicemanager_structs.h:18
qi::ServiceProcessInfo::autorun
bool autorun
Definition: servicemanager_structs.h:50
qi::ProcessCrashed
Definition: servicemanager_structs.h:19
QI_TYPE_STRUCT_EXTENSION_ADDED_FIELDS
QI_TYPE_STRUCT_EXTENSION_ADDED_FIELDS(qi::ServiceProcessInfo,"packageUuid")
qi::ServiceProcessInfo::packageUuid
std::string packageUuid
Definition: servicemanager_structs.h:51
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo(const qi::PackageService &pkgService, std::string packageUuid, bool _running=false)
Definition: servicemanager_structs.h:35
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo()
Definition: servicemanager_structs.h:26
qi::ServiceProcessInfo::execStart
std::string execStart
Definition: servicemanager_structs.h:49
qi::ServiceEventReason
ServiceEventReason
Definition: servicemanager_structs.h:14
qi::ServiceProcessInfo::running
bool running
Definition: servicemanager_structs.h:47