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& image, const bool loggedIn);
15 LdmUser(const LdmUser& other);
17 LdmUser &operator=(const LdmUser& other);
19 /** The name to display (the real name if available, otherwise use the username */
20 QString displayName() const;
22 /** The username of the user*/
24 /** The user's real name, use this for displaying*/
25 QString realName() const;
27 /** Returns the path to an avatar of this user*/
28 QString image() const;
30 /** Returns true if this user is already logged in on another session*/
31 bool isLoggedIn() const;
33 // LdmUser &operator=(const LdmUser user);
38 QDBusArgument &operator<<(QDBusArgument &argument, const LdmUser &request);
39 const QDBusArgument &operator>>(const QDBusArgument &argument, LdmUser &request);
41 Q_DECLARE_METATYPE(LdmUser);
42 Q_DECLARE_METATYPE(QList<LdmUser>);