From a3a41c71c50f95f95965165eff28d24a1be24453 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 4 Sep 2008 23:52:14 +0200 Subject: RequestManager kann jetzt flexibler auf eingehende Anfragen reagieren --- src/Common/Request/Request.h | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'src/Common/Request/Request.h') diff --git a/src/Common/Request/Request.h b/src/Common/Request/Request.h index 211b2cd..e0fcf11 100644 --- a/src/Common/Request/Request.h +++ b/src/Common/Request/Request.h @@ -1,7 +1,7 @@ /* * Request.h * - * Copyright (C) 2008 Matthias Schiffer + * Copyright (C) 2008 Matthias Schiffer * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,38 +20,33 @@ #ifndef MAD_COMMON_REQUEST_REQUEST_H_ #define MAD_COMMON_REQUEST_REQUEST_H_ -namespace Mad { +#include "../RequestHandler.h" -namespace Net { -class Connection; -class Packet; -} +namespace Mad { namespace Common { + namespace Request { -class Request { +class Request : public RequestHandler { private: - bool sent, finished; + bool sent; protected: - Request() : sent(false), finished(false) {} + Request() : sent(false) {} void setSent() {sent = true;} - void setFinished() {finished = true;} public: - virtual ~Request() {} - bool isSent() const {return sent;} - bool isFinished() const {return finished;} virtual bool sendRequest(Net::Connection *connection, unsigned short requestId) = 0; - virtual bool handlePacket(Net::Connection *connection, const Net::Packet &packet) = 0; }; } + } + } #endif /* MAD_COMMON_REQUEST_REQUEST_H_ */ -- cgit v1.2.3