summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 08:01:44 (GMT)
committerTobias Hunger <tobias.hunger@qt.io>2016-09-20 18:52:38 (GMT)
commit537efe0561ef6a690fd7aac34ce1e4a46614f2e4 (patch)
tree3affd22e6db5f02e4227153adb37b0c626869045 /Source/cmServer.h
parentca7799482cbbb38b667fd5d045a0fc95d09a8cf2 (diff)
downloadCMake-537efe0561ef6a690fd7aac34ce1e4a46614f2e4.zip
CMake-537efe0561ef6a690fd7aac34ce1e4a46614f2e4.tar.gz
CMake-537efe0561ef6a690fd7aac34ce1e4a46614f2e4.tar.bz2
server-mode: Report Messages from cmake to clients
Pass messages sent from cmake via Error(...) or Message(...) on to clients.
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r--Source/cmServer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h
index 031ab64..29b61bf 100644
--- a/Source/cmServer.h
+++ b/Source/cmServer.h
@@ -44,6 +44,8 @@ private:
void RegisterProtocol(cmServerProtocol* protocol);
static void reportProgress(const char* msg, float progress, void* data);
+ static void reportMessage(const char* msg, const char* title, bool& cancel,
+ void* data);
// Handle requests:
cmServerResponse SetProtocolVersion(const cmServerRequest& request);
@@ -53,6 +55,8 @@ private:
// Write responses:
void WriteProgress(const cmServerRequest& request, int min, int current,
int max, const std::string& message) const;
+ void WriteMessage(const cmServerRequest& request, const std::string& message,
+ const std::string& title) const;
void WriteResponse(const cmServerResponse& response) const;
void WriteParseError(const std::string& message) const;