You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
460 B
C++

#pragma once
#include <QString>
namespace dm {
// Who logged in last and with which session, kept for the login screen to
// preselect. The file is world-readable: the greeter reads it as its own user.
class State
{
public:
explicit State(QString path);
QString lastUser() const;
QString lastSession(const QString& user) const;
void remember(const QString& user, const QString& session);
private:
QString m_path;
};
} // namespace dm