Changeset View
Changeset View
Standalone View
Standalone View
components/sessionsprivate/sessionsmodel.h
Context not available. | |||||
84 | Q_INVOKABLE void switchUser(int vt, bool shouldLock = false); | 84 | Q_INVOKABLE void switchUser(int vt, bool shouldLock = false); | ||
---|---|---|---|---|---|
85 | Q_INVOKABLE void startNewSession(bool shouldLock = false); | 85 | Q_INVOKABLE void startNewSession(bool shouldLock = false); | ||
86 | 86 | | |||
87 | /** | ||||
88 | * Returns the virtual terminal number of a graphical session of the given | ||||
89 | * user which can be used to provide a "Switch To" button when on the login | ||||
90 | * screen and the user is already logged in. | ||||
91 | * | ||||
92 | * @param userName the name of the user | ||||
93 | * @return the virtual terminal number or -1 if no such session exists | ||||
94 | */ | ||||
95 | Q_INVOKABLE int graphicalSessionOfUser(const QString &userName) const; | ||||
96 | | ||||
87 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | 97 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||
88 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 98 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
89 | QHash<int, QByteArray> roleNames() const override; | 99 | QHash<int, QByteArray> roleNames() const override; | ||
Context not available. |