File indexing completed on 2024-11-24 04:44:30

0001 /*
0002     This file is part of oxaccess.
0003 
0004     SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #include "user.h"
0010 
0011 using namespace OXA;
0012 
0013 User::User() = default;
0014 
0015 bool User::isValid() const
0016 {
0017     return mUid != -1;
0018 }
0019 
0020 void User::setUid(qlonglong uid)
0021 {
0022     mUid = uid;
0023 }
0024 
0025 qlonglong User::uid() const
0026 {
0027     return mUid;
0028 }
0029 
0030 void User::setEmail(const QString &email)
0031 {
0032     mEmail = email;
0033 }
0034 
0035 QString User::email() const
0036 {
0037     return mEmail;
0038 }
0039 
0040 void User::setName(const QString &name)
0041 {
0042     mName = name;
0043 }
0044 
0045 QString User::name() const
0046 {
0047     return mName;
0048 }