KWin
|
#include <session_logind.h>
Public Member Functions | |
~LogindSession () override | |
bool | isActive () const override |
Capabilities | capabilities () const override |
QString | seat () const override |
uint | terminal () const override |
int | openRestricted (const QString &fileName) override |
void | closeRestricted (int fileDescriptor) override |
void | switchTo (uint terminal) override |
Static Public Member Functions | |
static std::unique_ptr< LogindSession > | create () |
![]() | |
static std::unique_ptr< Session > | create () |
static std::unique_ptr< Session > | create (Type type) |
Additional Inherited Members | |
![]() | |
enum class | Type { Noop , ConsoleKit , Logind } |
enum class | Capability : uint { SwitchTerminal = 0x1 } |
![]() | |
void | awoke () |
void | activeChanged (bool active) |
void | deviceResumed (dev_t deviceId) |
void | devicePaused (dev_t deviceId) |
![]() | |
Session ()=default | |
Definition at line 16 of file session_logind.h.
|
override |
Definition at line 225 of file session_logind.cpp.
|
overridevirtual |
Returns the capabilities supported by the session.
Implements KWin::Session.
Definition at line 146 of file session_logind.cpp.
|
overridevirtual |
Closes a file that has been opened using the openRestricted() function.
Implements KWin::Session.
Definition at line 190 of file session_logind.cpp.
|
static |
Definition at line 109 of file session_logind.cpp.
|
overridevirtual |
Returns true
if the session is active; otherwise returns false
.
Implements KWin::Session.
Definition at line 141 of file session_logind.cpp.
|
overridevirtual |
Opens the file with the specified fileName. Returns the file descriptor of the file or -1 if an error has occurred.
Implements KWin::Session.
Definition at line 161 of file session_logind.cpp.
|
overridevirtual |
Returns the seat name for the Session.
Implements KWin::Session.
Definition at line 151 of file session_logind.cpp.
|
overridevirtual |
Switches to the specified virtual terminal. This function does nothing if the Capability::SwitchTerminal capability is unsupported.
Implements KWin::Session.
Definition at line 209 of file session_logind.cpp.
|
overridevirtual |
Returns the terminal controlled by the Session.
Implements KWin::Session.
Definition at line 156 of file session_logind.cpp.