diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-07-01 03:24:58 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-07-01 03:24:58 +0200 |
commit | 7601149f476c1aa3dae6cd55027a36b62efabf12 (patch) | |
tree | 947a8ebeaebaf6a366a0490975e5fa2fa689db9c /src/Common/Request.h | |
parent | 7be6ee9c1cd2c2c5172ad4a094b67c25d6c5b72c (diff) | |
download | mad-7601149f476c1aa3dae6cd55027a36b62efabf12.tar mad-7601149f476c1aa3dae6cd55027a36b62efabf12.zip |
RequestManager hinzugef?gt
Diffstat (limited to 'src/Common/Request.h')
-rw-r--r-- | src/Common/Request.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/Common/Request.h b/src/Common/Request.h new file mode 100644 index 0000000..b537b66 --- /dev/null +++ b/src/Common/Request.h @@ -0,0 +1,46 @@ +/* + * Request.h + * + * Copyright (C) 2008 Matthias Schiffer <matthias@gamezock.de> + * + * 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 + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MAD_COMMON_REQUEST_H_ +#define MAD_COMMON_REQUEST_H_ + +namespace Mad { + +namespace Common { + +class Request { + public: + enum Type { + TYPE_PING, TYPE_DISCONNECT + }; + + private: + Type type; + + public: + Request(Type type0) : type(type0) {} + + Type getType() const {return type;} +}; + +} + +} + +#endif /* MAD_COMMON_REQUEST_H_ */ |