servicemanager  2.8.7.4
 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 
15 {
21 };
22 
24 {
25  // Default constructor for registering
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 
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 
58 QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun, packageUuid);
59 
60 #endif
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun, packageUuid)
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
QI_TYPE_ENUM(qi::ServiceEventReason)
QI_TYPE_STRUCT_EXTENSION_ADDED_FIELDS(qi::ServiceProcessInfo,"packageUuid")
ServiceProcessInfo(const qi::PackageService &pkgService, std::string packageUuid, bool _running=false)