KWin
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | List of all members
KWin::SessionManager Class Reference

#include <sm.h>

Inheritance diagram for KWin::SessionManager:

Public Types

enum  SMSavePhase { SMSavePhase0 , SMSavePhase2 , SMSavePhase2Full }
 

Public Slots

void setState (uint state)
 
void loadSession (const QString &name)
 
void aboutToSaveSession (const QString &name)
 
void finishSaveSession (const QString &name)
 
bool closeWaylandWindows ()
 
void quit ()
 

Signals

void stateChanged ()
 
void loadSessionRequested (const QString &name)
 
void prepareSessionSaveRequested (const QString &name)
 
void finishSessionSaveRequested (const QString &name)
 

Public Member Functions

 SessionManager (QObject *parent)
 
 ~SessionManager () override
 
SessionState state () const
 
void loadSubSessionInfo (const QString &name)
 
void storeSubSession (const QString &name, QSet< QByteArray > sessionIds)
 
SessionInfotakeSessionInfo (X11Window *)
 

Detailed Description

Definition at line 31 of file sm.h.

Member Enumeration Documentation

◆ SMSavePhase

Enumerator
SMSavePhase0 
SMSavePhase2 
SMSavePhase2Full 

Definition at line 35 of file sm.h.

Constructor & Destructor Documentation

◆ SessionManager()

KWin::SessionManager::SessionManager ( QObject * parent)

Definition at line 349 of file sm.cpp.

◆ ~SessionManager()

KWin::SessionManager::~SessionManager ( )
override

Definition at line 356 of file sm.cpp.

Member Function Documentation

◆ aboutToSaveSession

void KWin::SessionManager::aboutToSaveSession ( const QString & name)
slot

Definition at line 402 of file sm.cpp.

◆ closeWaylandWindows

bool KWin::SessionManager::closeWaylandWindows ( )
slot

Definition at line 414 of file sm.cpp.

◆ finishSaveSession

void KWin::SessionManager::finishSaveSession ( const QString & name)
slot

Definition at line 408 of file sm.cpp.

◆ finishSessionSaveRequested

void KWin::SessionManager::finishSessionSaveRequested ( const QString & name)
signal

◆ loadSession

void KWin::SessionManager::loadSession ( const QString & sessionName)
slot

Loads the session information from the config file.

See also
storeSession

Definition at line 228 of file sm.cpp.

◆ loadSessionRequested

void KWin::SessionManager::loadSessionRequested ( const QString & name)
signal

◆ loadSubSessionInfo()

void KWin::SessionManager::loadSubSessionInfo ( const QString & name)

Definition at line 274 of file sm.cpp.

◆ prepareSessionSaveRequested

void KWin::SessionManager::prepareSessionSaveRequested ( const QString & name)
signal

◆ quit

void KWin::SessionManager::quit ( )
slot

Definition at line 493 of file sm.cpp.

◆ setState

void KWin::SessionManager::setState ( uint state)
slot

Definition at line 366 of file sm.cpp.

◆ state()

SessionState KWin::SessionManager::state ( ) const

Definition at line 361 of file sm.cpp.

◆ stateChanged

void KWin::SessionManager::stateChanged ( )
signal

◆ storeSubSession()

void KWin::SessionManager::storeSubSession ( const QString & name,
QSet< QByteArray > sessionIds )

Definition at line 182 of file sm.cpp.

◆ takeSessionInfo()

SessionInfo * KWin::SessionManager::takeSessionInfo ( X11Window * c)

Returns a SessionInfo for client c. The returned session info is removed from the storage. It's up to the caller to delete it.

This function is called when a new window is mapped and must be managed. We try to find a matching entry in the session.

May return 0 if there's no session info for the client.

Definition at line 298 of file sm.cpp.


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