/* * UserInfo.h * * Copyright (C) 2009 Matthias Schiffer * * 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 . */ #ifndef MAD_COMMON_USERINFO_H_ #define MAD_COMMON_USERINFO_H_ #include "export.h" #include namespace Mad { namespace Common { class UserInfo { private: unsigned long uid; unsigned long gid; Core::String username; Core::String fullName; public: UserInfo(unsigned long uid0 = 0, const Core::String& username0 = Core::String()) : uid(uid0), gid(0), username(username0) {} void setUid(unsigned long newUid) {uid = newUid;} unsigned long getUid() const {return uid;} void setGid(unsigned long newGid) {gid = newGid;} unsigned long getGid() const {return gid;} void setUsername(const Core::String& newUsername) {username = newUsername;} const Core::String& getUsername() const {return username;} void setFullName(const Core::String& newFullName) {fullName = newFullName;} const Core::String& getFullName() const {return fullName;} }; } } #endif /* MAD_COMMON_USERINFO_H_ */