summaryrefslogtreecommitdiffstats
path: root/src/Common/Request/Request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Request/Request.h')
-rw-r--r--src/Common/Request/Request.h23
1 files changed, 9 insertions, 14 deletions
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 <matthias@gamezock.de>
+ * 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_ */