![]() |
Qt 6.x
The Qt SDK
|
#include "qxcbsessionmanager.h"#include <QtCore/qvarlengtharray.h>#include <qpa/qwindowsysteminterface.h>#include <qguiapplication.h>#include <qdatetime.h>#include <qfileinfo.h>#include <qplatformdefs.h>#include <qsocketnotifier.h>#include <X11/SM/SMlib.h>#include <errno.h>#include <cerrno>#include "qxcbsessionmanager.moc"
Include dependency graph for qxcbsessionmanager.cpp:Go to the source code of this file.
Classes | |
| class | QSmSocketReceiver |
| struct | QT_smcConn |
Functions | |
| static void | resetSmState () |
| static void | sm_setProperty (const char *name, const char *type, int num_vals, SmPropValue *vals) |
| static void | sm_saveYourselfCallback (SmcConn smcConn, SmPointer clientData, int saveType, Bool shutdown, int interactStyle, Bool fast) |
| static void | sm_saveYourselfPhase2Callback (SmcConn smcConn, SmPointer clientData) |
| static void | sm_dieCallback (SmcConn smcConn, SmPointer clientData) |
| static void | sm_shutdownCancelledCallback (SmcConn smcConn, SmPointer clientData) |
| static void | sm_saveCompleteCallback (SmcConn smcConn, SmPointer clientData) |
| static void | sm_interactCallback (SmcConn smcConn, SmPointer clientData) |
| static void | sm_performSaveYourself (QXcbSessionManager *) |
| static void | sm_setProperty (const QString &name, const QString &value) |
| static void | sm_setProperty (const QString &name, const QStringList &value) |
Variables | |
| static SmcConn | smcConnection = nullptr |
| static bool | sm_interactionActive |
| static bool | sm_smActive |
| static int | sm_interactStyle |
| static int | sm_saveType |
| static bool | sm_cancel |
| static bool | sm_waitingForInteraction |
| static bool | sm_isshutdown |
| static bool | sm_phase2 |
| static bool | sm_in_phase2 |
| bool | qt_sm_blockUserInput = false |
| static QSmSocketReceiver * | sm_receiver = nullptr |
|
static |
Definition at line 65 of file qxcbsessionmanager.cpp.
References qt_sm_blockUserInput, sm_in_phase2, sm_interactionActive, sm_interactStyle, sm_isshutdown, sm_phase2, sm_smActive, and sm_waitingForInteraction.
Referenced by QXcbSessionManager::QXcbSessionManager(), sm_dieCallback(), sm_saveCompleteCallback(), sm_saveYourselfCallback(), and sm_shutdownCancelledCallback().
Here is the caller graph for this function:
|
static |
Definition at line 255 of file qxcbsessionmanager.cpp.
References resetSmState(), and smcConnection.
Referenced by QXcbSessionManager::QXcbSessionManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 279 of file qxcbsessionmanager.cpp.
References sm_waitingForInteraction, and smcConnection.
Referenced by QXcbSessionManager::allowsErrorInteraction(), and QXcbSessionManager::allowsInteraction().
Here is the caller graph for this function:
|
static |
Definition at line 154 of file qxcbsessionmanager.cpp.
References QXcbSessionManager::allowsErrorInteraction(), QPlatformSessionManager::appCommitData(), QCoreApplication::applicationFilePath(), QPlatformSessionManager::appSaveState(), QCoreApplication::arguments(), arguments, QList< T >::at(), Qt::CaseInsensitive, compare(), QPlatformSessionManager::discardCommand(), fi, QFileInfo::fileName(), QString::fromLatin1(), QString::fromLocal8Bit(), QList< T >::isEmpty(), QString::number(), Q_FALLTHROUGH, qAppName(), qt_sm_blockUserInput, QPlatformSessionManager::restartCommand(), QPlatformSessionManager::restartHint(), QPlatformSessionManager::sessionId(), QPlatformSessionManager::sessionKey(), QPlatformSessionManager::setDiscardCommand(), QPlatformSessionManager::setRestartCommand(), QXcbSessionManager::setSessionKey(), sm_cancel, sm_in_phase2, sm_interactionActive, sm_isshutdown, sm_phase2, sm_saveType, sm_saveYourselfPhase2Callback(), sm_setProperty(), smcConnection, and True.
Referenced by sm_saveYourselfCallback(), and sm_saveYourselfPhase2Callback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 272 of file qxcbsessionmanager.cpp.
References resetSmState(), and smcConnection.
Referenced by QXcbSessionManager::QXcbSessionManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 132 of file qxcbsessionmanager.cpp.
References resetSmState(), sm_cancel, sm_interactStyle, sm_isshutdown, sm_performSaveYourself(), sm_saveType, sm_smActive, and smcConnection.
Referenced by QXcbSessionManager::QXcbSessionManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 287 of file qxcbsessionmanager.cpp.
References sm_in_phase2, sm_performSaveYourself(), and smcConnection.
Referenced by sm_performSaveYourself().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 80 of file qxcbsessionmanager.cpp.
References smcConnection.
Referenced by QXcbSessionManager::setManagerProperty(), QXcbSessionManager::setManagerProperty(), sm_performSaveYourself(), sm_setProperty(), and sm_setProperty().
Here is the caller graph for this function:Definition at line 100 of file qxcbsessionmanager.cpp.
References QByteArray::length(), and sm_setProperty().
Here is the call graph for this function:
|
static |
Definition at line 109 of file qxcbsessionmanager.cpp.
References QList< T >::append(), QSet< T >::begin(), QList< T >::constLast(), QSet< T >::end(), it, QList< T >::reserve(), and sm_setProperty().
Here is the call graph for this function:
|
static |
Definition at line 263 of file qxcbsessionmanager.cpp.
References resetSmState(), sm_waitingForInteraction, and smcConnection.
Referenced by QXcbSessionManager::QXcbSessionManager().
Here is the call graph for this function:
Here is the caller graph for this function:| bool qt_sm_blockUserInput = false |
Definition at line 49 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), QXcbSessionManager::release(), resetSmState(), and sm_performSaveYourself().
|
static |
Definition at line 44 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::cancel(), sm_performSaveYourself(), and sm_saveYourselfCallback().
|
static |
Definition at line 48 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::isPhase2(), resetSmState(), sm_performSaveYourself(), and sm_saveYourselfPhase2Callback().
|
static |
Definition at line 40 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), QXcbSessionManager::release(), resetSmState(), and sm_performSaveYourself().
|
static |
Definition at line 42 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), resetSmState(), and sm_saveYourselfCallback().
|
static |
Definition at line 46 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::release(), resetSmState(), sm_performSaveYourself(), and sm_saveYourselfCallback().
|
static |
Definition at line 47 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::requestPhase2(), resetSmState(), and sm_performSaveYourself().
|
static |
Definition at line 51 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::QXcbSessionManager(), and QXcbSessionManager::~QXcbSessionManager().
|
static |
Definition at line 43 of file qxcbsessionmanager.cpp.
Referenced by sm_performSaveYourself(), and sm_saveYourselfCallback().
|
static |
Definition at line 41 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), QXcbSessionManager::release(), resetSmState(), and sm_saveYourselfCallback().
|
static |
Definition at line 45 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), resetSmState(), sm_interactCallback(), and sm_shutdownCancelledCallback().
|
static |
Definition at line 39 of file qxcbsessionmanager.cpp.
Referenced by QXcbSessionManager::QXcbSessionManager(), QXcbSessionManager::~QXcbSessionManager(), QXcbSessionManager::allowsErrorInteraction(), QXcbSessionManager::allowsInteraction(), QXcbSessionManager::handle(), QXcbSessionManager::release(), sm_dieCallback(), sm_interactCallback(), sm_performSaveYourself(), sm_saveCompleteCallback(), sm_saveYourselfCallback(), sm_saveYourselfPhase2Callback(), sm_setProperty(), sm_shutdownCancelledCallback(), and QSmSocketReceiver::socketActivated().