/* * Copyright (c) 2011 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include #include #include #include namespace Swift { class Client; } class MUCs; using namespace Swift; class Users { public: class User { public: /* If you add a role here, edit the role lists in Commands.cpp*/ enum Role {Unknown, Owner}; User(const JID& jid, Role role) : jid_(jid), role_(role) {} Role getRole() {return role_;} Swift::JID getJID() {return jid_;} private: Swift::JID jid_; Role role_; }; public: Users(Client* client, MUCs* mucs); void clearAll(); void addUser(const User& user); User::Role getRoleForSender(Message::ref message); private: std::vector users_; Client* client_; MUCs* mucs_; };