d->isLoggedIn = isLoggedIn;
}
-User::User(const User &other)
- :d(new UserPrivate(*other.d))
-{
-}
-
User::~User()
{
delete d;
}
-
-User& User::operator=(const User& other)
-{
- *d = *other.d;
- return *this;
-}
-
bool User::update(const QString& realName, const QString& homeDirectory, const QString& image, bool isLoggedIn)
{
if (d->realName == realName && d->homeDirectory == homeDirectory && d->image == image && d->isLoggedIn == isLoggedIn)
public:
explicit User();
User(const QString &name, const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
- User(const User& other);
~User();
- User &operator=(const User& other);
bool update(const QString &realName, const QString &homeDirectory, const QString &image, bool isLoggedIn);
/** Returns true if this user is already logged in on another session*/
bool isLoggedIn() const;
- // LdmUser &operator=(const LdmUser user);
private:
+ Q_DISABLE_COPY(User);
UserPrivate* d;
};
}
-Q_DECLARE_METATYPE(QLightDM::User);
-Q_DECLARE_METATYPE(QList<QLightDM::User>);
+Q_DECLARE_METATYPE(QLightDM::User*);
#endif // LDMUSER_H