summaryrefslogtreecommitdiffstats
path: root/Source/cmServerConnection.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 08:01:46 (GMT)
committerTobias Hunger <tobias.hunger@qt.io>2016-09-29 19:47:05 (GMT)
commit0d96e1932937b866343ae8b52c20e0a8c058f3b2 (patch)
tree24c851e37aff55c8b0abbeaab92542df6a0696ec /Source/cmServerConnection.h
parent5d29506811c5b75ae48e12de6c317f6440874215 (diff)
downloadCMake-0d96e1932937b866343ae8b52c20e0a8c058f3b2.zip
CMake-0d96e1932937b866343ae8b52c20e0a8c058f3b2.tar.gz
CMake-0d96e1932937b866343ae8b52c20e0a8c058f3b2.tar.bz2
server-mode: Add infrastructure to watch the filesystem
Enable the server to watch for filesystem changes. This patch includes * The infrastructure for the file watching * makes that infrastructure available to cmServerProtocols * Resets the filesystemwatchers on "configure"
Diffstat (limited to 'Source/cmServerConnection.h')
-rw-r--r--Source/cmServerConnection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmServerConnection.h b/Source/cmServerConnection.h
index 16b1d5c..78842e7 100644
--- a/Source/cmServerConnection.h
+++ b/Source/cmServerConnection.h
@@ -10,6 +10,7 @@
#endif
class cmServer;
+class cmFileMonitor;
class LoopGuard;
class cmServerConnection
@@ -29,6 +30,8 @@ public:
virtual void Connect(uv_stream_t* server) { (void)(server); }
+ cmFileMonitor* FileMonitor() const { return this->mFileMonitor; }
+
protected:
virtual bool DoSetup(std::string* errorMessage) = 0;
virtual void TearDown() = 0;
@@ -46,6 +49,7 @@ protected:
private:
uv_loop_t* mLoop = nullptr;
+ cmFileMonitor* mFileMonitor = nullptr;
cmServer* Server = nullptr;
friend class LoopGuard;