servicemanager  2.4.3.28
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
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 {
19 };
20 
22 {
23  // Default constructor for registering
25  : running(false), name(""), execStart(""), autorun(false)
26  { }
27 
28  ServiceProcessInfo(const qi::PackageService& pkgService, bool _running = false)
29  : running(_running), name(pkgService.name)
30  , execStart(pkgService.execStart), autorun(pkgService.autoRun)
31  { }
32 
33  bool running;
34  std::string name;
35  std::string execStart;
36  bool autorun;
37 };
38 
39 }
40 
42 QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun);
43 
44 #endif
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun)
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
QI_TYPE_ENUM_REGISTER(qi::ServiceEventReason)