diff options
| author | Sebastien Braun | 2010-10-07 09:29:06 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-07 09:30:26 +0200 |
| commit | 958d63d244a3f4a4542c529761ccdd9cd8244fcf (patch) | |
| tree | ca299432c870f832d1b038c341e307d86d321a0c /src/input/pvsCheckPrivileges.h | |
| parent | Update strings for special input events (diff) | |
| download | pvs-958d63d244a3f4a4542c529761ccdd9cd8244fcf.tar.gz pvs-958d63d244a3f4a4542c529761ccdd9cd8244fcf.tar.xz pvs-958d63d244a3f4a4542c529761ccdd9cd8244fcf.zip | |
Make behaviour on lookup failures configurable
Diffstat (limited to 'src/input/pvsCheckPrivileges.h')
| -rw-r--r-- | src/input/pvsCheckPrivileges.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/input/pvsCheckPrivileges.h b/src/input/pvsCheckPrivileges.h index ec6c591..62b463c 100644 --- a/src/input/pvsCheckPrivileges.h +++ b/src/input/pvsCheckPrivileges.h @@ -74,11 +74,9 @@ class PVSCheckPrivileges : public QObject Q_OBJECT public: typedef enum { - SESSION_LOOKUP_FAILURE, // Comes first because we default to assume - // the session is local if we cannot look it - // up. SESSION_LOCAL, SESSION_NONLOCAL, + SESSION_LOOKUP_FAILURE, SESSION_UNKNOWN } SessionKind; static QString toString(SessionKind k) @@ -96,9 +94,7 @@ public: typedef enum { USER_PRIVILEGED, USER_UNPRIVILEGED, - USER_LOOKUP_FAILURE, // Comes last because we default to assume - // the user is unprivileged if we cannot get - // permission from PolicyKit. + USER_LOOKUP_FAILURE, USER_UNKNOWN } UserPrivilege; static QString toString(UserPrivilege k) |
