summaryrefslogtreecommitdiffstats
path: root/src/Core/Requests/DaemonStatusRequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/Requests/DaemonStatusRequest.h')
-rw-r--r--src/Core/Requests/DaemonStatusRequest.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/Core/Requests/DaemonStatusRequest.h b/src/Core/Requests/DaemonStatusRequest.h
index ce6e4f7..baeb847 100644
--- a/src/Core/Requests/DaemonStatusRequest.h
+++ b/src/Core/Requests/DaemonStatusRequest.h
@@ -22,9 +22,6 @@
#include <Common/Request.h>
-#include <string>
-#include <sigc++/signal.h>
-
namespace Mad {
namespace Net {
@@ -36,17 +33,13 @@ class HostStatusPacket;
namespace Core {
namespace Requests {
-class DaemonStatusRequest : public Common::Request {
- private:
- sigc::signal<void,const Net::Packets::HostStatusPacket&> finished;
-
- DaemonStatusRequest() {}
+class DaemonStatusRequest : public Common::Request<Net::Packets::HostStatusPacket> {
+ protected:
+ virtual void sendRequest(Net::Connection *connection, uint16_t requestId);
+ virtual void handlePacket(Net::Connection *connection, const Net::Packet &packet);
public:
- static bool send(Net::Connection *connection, const sigc::slot<void,const Net::Packets::HostStatusPacket&> &callback);
-
- virtual bool sendRequest(Net::Connection *connection, uint16_t requestId);
- virtual void handlePacket(Net::Connection*, const Net::Packet &packet);
+ DaemonStatusRequest(slot_type slot) : Common::Request<Net::Packets::HostStatusPacket>(slot) {}
};
}