diff options
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(); |