servicemanager  release-2.5.3-2016-11-18
 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 
35  bool running;
36  std::string name;
37  std::string execStart;
38  bool autorun;
39 };
40 
41 }
42 
44 QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun);
45 
46 #endif
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun)
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
QI_TYPE_ENUM(qi::ServiceEventReason)