summaryrefslogtreecommitdiffstats
path: root/src/Server/Requests
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-06-23 18:54:46 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-06-23 18:54:46 +0200
commit02b9e16833acbdaa820bd3b8b64d652a41a8ff58 (patch)
tree092b9dd423c6c52812f3978770b87417abe69b9b /src/Server/Requests
parent37c8bed9a5f2ae9141c461202fec5baa6fa21389 (diff)
downloadmad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.tar
mad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.zip
XmlPacket-Klasse ?berarbeitet
Diffstat (limited to 'src/Server/Requests')
-rw-r--r--src/Server/Requests/CommandRequest.cpp2
-rw-r--r--src/Server/Requests/DaemonStateUpdateRequest.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Server/Requests/CommandRequest.cpp b/src/Server/Requests/CommandRequest.cpp
index 33f8dc0..c3c09b9 100644
--- a/src/Server/Requests/CommandRequest.cpp
+++ b/src/Server/Requests/CommandRequest.cpp
@@ -26,7 +26,7 @@ namespace Requests {
void CommandRequest::sendRequest() {
Common::XmlPacket packet;
packet.setType("Command");
- packet.add("command", reboot ? "reboot" : "shutdown");
+ packet.set("command", reboot ? "reboot" : "shutdown");
sendPacket(packet);
}
diff --git a/src/Server/Requests/DaemonStateUpdateRequest.cpp b/src/Server/Requests/DaemonStateUpdateRequest.cpp
index 4bdf003..ef4c4f1 100644
--- a/src/Server/Requests/DaemonStateUpdateRequest.cpp
+++ b/src/Server/Requests/DaemonStateUpdateRequest.cpp
@@ -27,8 +27,8 @@ void DaemonStateUpdateRequest::sendRequest() {
Common::XmlPacket packet;
packet.setType("UpdateHostState");
- packet.add("name", name);
- packet.add("state", state);
+ packet.set("name", name);
+ packet.set("state", state);
sendPacket(packet);
}