diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-10-17 12:53:52 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-10-17 12:53:52 +0000 |
commit | 891cf7aa3028cd32ee8c4f13cc24ec0cef774620 (patch) | |
tree | 4864e7e90492de1803499a0af4e08a80cf88a412 /bin/bbackupd/BackupDaemon.h | |
parent | 213ee3a965d0b0dcba7207917ad7654d31d01edf (diff) |
Use Daemon's delegated option processing instead of our own hacks.
Move Windows service startup, installation and removal to BackupDaemon.
(merges [1854])
Diffstat (limited to 'bin/bbackupd/BackupDaemon.h')
-rw-r--r-- | bin/bbackupd/BackupDaemon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.h b/bin/bbackupd/BackupDaemon.h index 580cbea6..3951a8aa 100644 --- a/bin/bbackupd/BackupDaemon.h +++ b/bin/bbackupd/BackupDaemon.h @@ -58,7 +58,14 @@ private: box_time_t & theLastSyncTime, box_time_t & theNextSyncTime); bool DeleteStoreObjectInfo() const; BackupDaemon(const BackupDaemon &); + public: + #ifdef WIN32 + // add command-line options to handle Windows services + std::string GetOptionString(); + int ProcessOption(signed int option); + int Main(const std::string &rConfigFileName); + #endif void Run(); virtual const char *DaemonName() const; @@ -418,6 +425,8 @@ public: private: bool mDoSyncFlagOut, mSyncIsForcedOut; + bool mInstallService, mRemoveService, mRunAsService; + std::string mServiceName; HANDLE mhMessageToSendEvent, mhCommandReceivedEvent; CRITICAL_SECTION mMessageQueueLock; std::vector<std::string> mMessageList; |