KWin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
KWin::LogindSession Class Reference

#include <session_logind.h>

Inheritance diagram for KWin::LogindSession:
KWin::Session

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< LogindSessioncreate ()
 
- Static Public Member Functions inherited from KWin::Session
static std::unique_ptr< Sessioncreate ()
 
static std::unique_ptr< Sessioncreate (Type type)
 

Additional Inherited Members

- Public Types inherited from KWin::Session
enum class  Type { Noop , ConsoleKit , Logind }
 
enum class  Capability : uint { SwitchTerminal = 0x1 }
 
- Signals inherited from KWin::Session
void awoke ()
 
void activeChanged (bool active)
 
void deviceResumed (dev_t deviceId)
 
void devicePaused (dev_t deviceId)
 
- Protected Member Functions inherited from KWin::Session
 Session ()=default
 

Detailed Description

Definition at line 16 of file session_logind.h.

Constructor & Destructor Documentation

◆ ~LogindSession()

KWin::LogindSession::~LogindSession ( )
override

Definition at line 225 of file session_logind.cpp.

Member Function Documentation

◆ capabilities()

LogindSession::Capabilities KWin::LogindSession::capabilities ( ) const
overridevirtual

Returns the capabilities supported by the session.

Implements KWin::Session.

Definition at line 146 of file session_logind.cpp.

◆ closeRestricted()

void KWin::LogindSession::closeRestricted ( int fileDescriptor)
overridevirtual

Closes a file that has been opened using the openRestricted() function.

Implements KWin::Session.

Definition at line 190 of file session_logind.cpp.

◆ create()

std::unique_ptr< LogindSession > KWin::LogindSession::create ( )
static

Definition at line 109 of file session_logind.cpp.

◆ isActive()

bool KWin::LogindSession::isActive ( ) const
overridevirtual

Returns true if the session is active; otherwise returns false.

Implements KWin::Session.

Definition at line 141 of file session_logind.cpp.

◆ openRestricted()

int KWin::LogindSession::openRestricted ( const QString & fileName)
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.

◆ seat()

QString KWin::LogindSession::seat ( ) const
overridevirtual

Returns the seat name for the Session.

Implements KWin::Session.

Definition at line 151 of file session_logind.cpp.

◆ switchTo()

void KWin::LogindSession::switchTo ( uint terminal)
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.

◆ terminal()

uint KWin::LogindSession::terminal ( ) const
overridevirtual

Returns the terminal controlled by the Session.

Implements KWin::Session.

Definition at line 156 of file session_logind.cpp.


The documentation for this class was generated from the following files: