diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-03-27 01:37:37 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-03-27 01:37:37 +0100 |
commit | c6f8a170e642b5b1a28bd85857f715846bbadbb4 (patch) | |
tree | ff254204358a62ca9da4f2f433370c802f059a33 /src/Client/CommandManager.cpp | |
parent | 3a219dd11cd05284b8b97f7016c671f0df4a0706 (diff) | |
download | mad-c6f8a170e642b5b1a28bd85857f715846bbadbb4.tar mad-c6f8a170e642b5b1a28bd85857f715846bbadbb4.zip |
userInfo() im Mysql-Backend implementiert; UserInfo-Request hinzugefuegt
Diffstat (limited to 'src/Client/CommandManager.cpp')
-rw-r--r-- | src/Client/CommandManager.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Client/CommandManager.cpp b/src/Client/CommandManager.cpp index 3bfc3a6..ad88152 100644 --- a/src/Client/CommandManager.cpp +++ b/src/Client/CommandManager.cpp @@ -211,6 +211,20 @@ void CommandManager::statusRequestFinished(const Common::Request &request) { requestFinished(); } +void CommandManager::userInfoRequestFinished(const Common::Request &request) { + try { + const Common::XmlPacket &packet = request.getResult(); + + std::cout << " " << (unsigned long)packet["uid"] << ", " << (unsigned long)packet["gid"] << ", " << (const std::string&)packet["username"] << ", " + << (const std::string&)packet["fullName"] << std::endl << std::endl; + } + catch(Common::Exception &exception) { + Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str()); + } + + requestFinished(); +} + void CommandManager::userListRequestFinished(const Common::Request &request) { try { const Common::XmlPacket &packet = request.getResult(); |