summaryrefslogtreecommitdiffstats
path: root/src/Common/Requests
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Requests')
-rw-r--r--src/Common/Requests/DisconnectRequest.cpp4
-rw-r--r--src/Common/Requests/DisconnectRequest.h2
-rw-r--r--src/Common/Requests/IdentifyRequest.cpp2
-rw-r--r--src/Common/Requests/SimpleRequest.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Common/Requests/DisconnectRequest.cpp b/src/Common/Requests/DisconnectRequest.cpp
index 523ef2a..c2b7b71 100644
--- a/src/Common/Requests/DisconnectRequest.cpp
+++ b/src/Common/Requests/DisconnectRequest.cpp
@@ -24,13 +24,13 @@ namespace Common {
namespace Requests {
void DisconnectRequest::sendRequest() {
- XmlPacket packet;
+ XmlData packet;
packet.setType("Disconnect");
sendPacket(packet);
}
-void DisconnectRequest::handlePacket(boost::shared_ptr<const XmlPacket> packet) {
+void DisconnectRequest::handlePacket(boost::shared_ptr<const XmlData> packet) {
if(packet->getType() == "Error") {
signalFinished(Core::Exception(packet->get<const std::string&>("Where"), static_cast<Core::Exception::ErrorCode>(packet->get<long>("ErrorCode")),
packet->get<long>("SubCode"), packet->get<long>("SubSubCode")));
diff --git a/src/Common/Requests/DisconnectRequest.h b/src/Common/Requests/DisconnectRequest.h
index a92c7e7..a905a56 100644
--- a/src/Common/Requests/DisconnectRequest.h
+++ b/src/Common/Requests/DisconnectRequest.h
@@ -31,7 +31,7 @@ namespace Requests {
class MAD_COMMON_EXPORT DisconnectRequest : public Request {
protected:
virtual void sendRequest();
- virtual void handlePacket(boost::shared_ptr<const XmlPacket> packet);
+ virtual void handlePacket(boost::shared_ptr<const XmlData> packet);
public:
DisconnectRequest(Application *application) : Request(application) {}
diff --git a/src/Common/Requests/IdentifyRequest.cpp b/src/Common/Requests/IdentifyRequest.cpp
index fc31c3f..98868ef 100644
--- a/src/Common/Requests/IdentifyRequest.cpp
+++ b/src/Common/Requests/IdentifyRequest.cpp
@@ -24,7 +24,7 @@ namespace Common {
namespace Requests {
void IdentifyRequest::sendRequest() {
- Common::XmlPacket packet;
+ Common::XmlData packet;
packet.setType("Identify");
if(!hostname.empty())
diff --git a/src/Common/Requests/SimpleRequest.cpp b/src/Common/Requests/SimpleRequest.cpp
index a16e1d4..452b6da 100644
--- a/src/Common/Requests/SimpleRequest.cpp
+++ b/src/Common/Requests/SimpleRequest.cpp
@@ -24,7 +24,7 @@ namespace Common {
namespace Requests {
void SimpleRequest::sendRequest() {
- XmlPacket packet;
+ XmlData packet;
packet.setType(type);
sendPacket(packet);