diff options
Diffstat (limited to 'src/Client/UserListCommands.h')
-rw-r--r-- | src/Client/UserListCommands.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Client/UserListCommands.h b/src/Client/UserListCommands.h new file mode 100644 index 0000000..17fcb4e --- /dev/null +++ b/src/Client/UserListCommands.h @@ -0,0 +1,52 @@ +/* + * UserListCommands.h + * + * Copyright (C) 2009 Matthias Schiffer <matthias@gamezock.de> + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser 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 Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MAD_CLIENT_USERLISTCOMMANDS_H_ +#define MAD_CLIENT_USERLISTCOMMANDS_H_ + +#include "export.h" + +#include "CommandParser.h" + +namespace Mad { +namespace Client { + +class MAD_CLIENT_EXPORT UserListCommands { + private: + typedef CommandParser::Command Command; + + static const Command commands[]; + + UserListCommands(); + + static const Command* findCommand(const std::string& command); + static void printUsage(const std::string& command); + + static void helpCommand(CommandParser *commandParser, const std::vector<std::string> &args); + static void listCommand(CommandParser *commandParser, const std::vector<std::string> &args); + static void showListCommand(CommandParser *commandParser, const std::vector<std::string> &args); + + public: + static void userListCommand(CommandParser *commandParser, const std::vector<std::string> &args); +}; + +} +} + +#endif /* MAD_CLIENT_USERLISTCOMMANDS_H_ */ |