diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-09 08:01:44 (GMT) |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-20 18:52:38 (GMT) |
commit | 537efe0561ef6a690fd7aac34ce1e4a46614f2e4 (patch) | |
tree | 3affd22e6db5f02e4227153adb37b0c626869045 /Source/cmServerProtocol.cxx | |
parent | ca7799482cbbb38b667fd5d045a0fc95d09a8cf2 (diff) | |
download | CMake-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/cmServerProtocol.cxx')
-rw-r--r-- | Source/cmServerProtocol.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index ce6be83..26942d3 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -46,6 +46,12 @@ void cmServerRequest::ReportProgress(int min, int current, int max, this->m_Server->WriteProgress(*this, min, current, max, message); } +void cmServerRequest::ReportMessage(const std::string& message, + const std::string& title) const +{ + m_Server->WriteMessage(*this, message, title); +} + cmServerResponse cmServerRequest::Reply(const Json::Value& data) const { cmServerResponse response(*this); |