diff options
Diffstat (limited to 'project2/daemon/p2daemonAppEngine.h')
-rw-r--r-- | project2/daemon/p2daemonAppEngine.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/project2/daemon/p2daemonAppEngine.h b/project2/daemon/p2daemonAppEngine.h new file mode 100644 index 0000000..a74f34a --- /dev/null +++ b/project2/daemon/p2daemonAppEngine.h @@ -0,0 +1,29 @@ +#ifndef DAEMONAPPENGINE_H +#define DAEMONAPPENGINE_H + +#include <options.h> +#include <boost/optional.hpp> +#include "lib/daemon.h" + +class DaemonAppEngine { + public: + DaemonAppEngine(int, char **); + ~DaemonAppEngine() = default; + + void process() const; + + INITOPTIONS; + + static Glib::ustring reqPlatform; + static std::string daemonType; + static boost::optional<std::string> libraryPath; + + private: + static boost::shared_ptr<void> loadLibrary(const std::string & path); + + boost::shared_ptr<void> library; + DaemonPtr daemon; +}; + +#endif + |