Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPlatformSessionManager Class Reference

#include <qplatformsessionmanager.h>

+ Inheritance diagram for QPlatformSessionManager:
+ Collaboration diagram for QPlatformSessionManager:

Public Member Functions

 QPlatformSessionManager (const QString &id, const QString &key)
 
virtual ~QPlatformSessionManager ()
 
virtual QString sessionId () const
 
virtual QString sessionKey () const
 
virtual bool allowsInteraction ()
 
virtual bool allowsErrorInteraction ()
 
virtual void release ()
 
virtual void cancel ()
 
virtual void setRestartHint (QSessionManager::RestartHint restartHint)
 
virtual QSessionManager::RestartHint restartHint () const
 
virtual void setRestartCommand (const QStringList &command)
 
virtual QStringList restartCommand () const
 
virtual void setDiscardCommand (const QStringList &command)
 
virtual QStringList discardCommand () const
 
virtual void setManagerProperty (const QString &name, const QString &value)
 
virtual void setManagerProperty (const QString &name, const QStringList &value)
 
virtual bool isPhase2 () const
 
virtual void requestPhase2 ()
 
void appCommitData ()
 
void appSaveState ()
 

Protected Attributes

QString m_sessionId
 
QString m_sessionKey
 

Detailed Description

Definition at line 28 of file qplatformsessionmanager.h.

Constructor & Destructor Documentation

◆ QPlatformSessionManager()

QT_BEGIN_NAMESPACE QPlatformSessionManager::QPlatformSessionManager ( const QString id,
const QString key 
)
explicit

Definition at line 14 of file qplatformsessionmanager.cpp.

◆ ~QPlatformSessionManager()

QPlatformSessionManager::~QPlatformSessionManager ( )
virtual

Definition at line 21 of file qplatformsessionmanager.cpp.

Member Function Documentation

◆ allowsErrorInteraction()

bool QPlatformSessionManager::allowsErrorInteraction ( )
virtual

Reimplemented in QWindowsSessionManager, and QXcbSessionManager.

Definition at line 40 of file qplatformsessionmanager.cpp.

◆ allowsInteraction()

bool QPlatformSessionManager::allowsInteraction ( )
virtual

◆ appCommitData()

void QPlatformSessionManager::appCommitData ( )

Definition at line 104 of file qplatformsessionmanager.cpp.

References qGuiApp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ appSaveState()

void QPlatformSessionManager::appSaveState ( )

Definition at line 109 of file qplatformsessionmanager.cpp.

References qGuiApp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ cancel()

void QPlatformSessionManager::cancel ( )
virtual

◆ discardCommand()

QStringList QPlatformSessionManager::discardCommand ( ) const
virtual

Definition at line 78 of file qplatformsessionmanager.cpp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ isPhase2()

bool QPlatformSessionManager::isPhase2 ( ) const
virtual

Reimplemented in QXcbSessionManager.

Definition at line 95 of file qplatformsessionmanager.cpp.

◆ release()

void QPlatformSessionManager::release ( )
virtual

Reimplemented in QWindowsSessionManager, and QXcbSessionManager.

Definition at line 45 of file qplatformsessionmanager.cpp.

◆ requestPhase2()

void QPlatformSessionManager::requestPhase2 ( )
virtual

Reimplemented in QXcbSessionManager.

Definition at line 100 of file qplatformsessionmanager.cpp.

◆ restartCommand()

QStringList QPlatformSessionManager::restartCommand ( ) const
virtual

Definition at line 68 of file qplatformsessionmanager.cpp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ restartHint()

QSessionManager::RestartHint QPlatformSessionManager::restartHint ( ) const
virtual

Definition at line 58 of file qplatformsessionmanager.cpp.

Referenced by setRestartHint(), and sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ sessionId()

QString QPlatformSessionManager::sessionId ( ) const
virtual

Definition at line 25 of file qplatformsessionmanager.cpp.

References m_sessionId.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ sessionKey()

QString QPlatformSessionManager::sessionKey ( ) const
virtual

Definition at line 30 of file qplatformsessionmanager.cpp.

References m_sessionKey.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ setDiscardCommand()

void QPlatformSessionManager::setDiscardCommand ( const QStringList command)
virtual

Definition at line 73 of file qplatformsessionmanager.cpp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ setManagerProperty() [1/2]

void QPlatformSessionManager::setManagerProperty ( const QString name,
const QString value 
)
virtual

Reimplemented in QXcbSessionManager.

Definition at line 83 of file qplatformsessionmanager.cpp.

References Q_UNUSED.

◆ setManagerProperty() [2/2]

void QPlatformSessionManager::setManagerProperty ( const QString name,
const QStringList value 
)
virtual

Reimplemented in QXcbSessionManager.

Definition at line 89 of file qplatformsessionmanager.cpp.

References Q_UNUSED.

◆ setRestartCommand()

void QPlatformSessionManager::setRestartCommand ( const QStringList command)
virtual

Definition at line 63 of file qplatformsessionmanager.cpp.

Referenced by sm_performSaveYourself().

+ Here is the caller graph for this function:

◆ setRestartHint()

void QPlatformSessionManager::setRestartHint ( QSessionManager::RestartHint  restartHint)
virtual

Definition at line 53 of file qplatformsessionmanager.cpp.

References restartHint().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_sessionId

QString QPlatformSessionManager::m_sessionId
protected

Definition at line 63 of file qplatformsessionmanager.h.

Referenced by sessionId(), and QXcbSessionManager::setSessionId().

◆ m_sessionKey

QString QPlatformSessionManager::m_sessionKey
protected

Definition at line 64 of file qplatformsessionmanager.h.

Referenced by sessionKey(), and QXcbSessionManager::setSessionKey().


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