1
#ifndef QLIGTHDM_USER_H
2
#define QLIGTHDM_USER_H
5
5
#include <QtDBus/QtDBus>
9
//public facing User class
10
class Q_DECL_EXPORT LdmUser
14
LdmUser(const QString &name, const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
15
LdmUser(const LdmUser& other);
17
LdmUser &operator=(const LdmUser& other);
19
bool update(const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
21
/** The name to display (the real name if available, otherwise use the username */
22
QString displayName() const;
24
/** The username of the user*/
26
/** The user's real name, use this for displaying*/
27
QString realName() const;
29
/** Returns the home directory of this user*/
30
QString homeDirectory() const;
32
/** Returns the path to an avatar of this user*/
33
QString image() const;
35
/** Returns true if this user is already logged in on another session*/
36
bool isLoggedIn() const;
38
// LdmUser &operator=(const LdmUser user);
43
Q_DECLARE_METATYPE(LdmUser);
44
Q_DECLARE_METATYPE(QList<LdmUser>);
11
//public facing User class
12
class Q_DECL_EXPORT User
16
User(const QString &name, const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
17
User(const User& other);
19
User &operator=(const User& other);
21
bool update(const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
23
/** The name to display (the real name if available, otherwise use the username */
24
QString displayName() const;
26
/** The username of the user*/
28
/** The user's real name, use this for displaying*/
29
QString realName() const;
31
/** Returns the home directory of this user*/
32
QString homeDirectory() const;
34
/** Returns the path to an avatar of this user*/
35
QString image() const;
37
/** Returns true if this user is already logged in on another session*/
38
bool isLoggedIn() const;
40
// LdmUser &operator=(const LdmUser user);
46
Q_DECLARE_METATYPE(QLightDM::User);
47
Q_DECLARE_METATYPE(QList<QLightDM::User>);
46
49
#endif // LDMUSER_H