qsessionmanager.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qsessionmanager.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QSessionManagerPrivate::QSessionManagerPrivate(const QString &id,-
7 const QString &key)-
8 : QObjectPrivate()-
9{-
10 platformSessionManager = QGuiApplicationPrivate::platformIntegration()->createPlatformSessionManager(id, key);-
11 ((!(platformSessionManager)) ? qt_assert_x("Platform session management", "No platform session management, should use the default implementation",-
12 __FILE__-
13 ,-
14 128-
15 ) : qt_noop())-
16 ;-
17}
never executed: end of block
0
18-
19QSessionManagerPrivate::~QSessionManagerPrivate()-
20{-
21 delete platformSessionManager;-
22 platformSessionManager = 0;-
23}
never executed: end of block
0
24-
25QSessionManager::QSessionManager(QGuiApplication *app, QString &id, QString &key)-
26 : QObject(*(new QSessionManagerPrivate(id, key)), app)-
27{-
28}
never executed: end of block
0
29-
30QSessionManager::~QSessionManager()-
31{-
32}-
33QString QSessionManager::sessionId() const-
34{-
35 const QSessionManagerPrivate * const d = d_func();-
36 return
never executed: return d->platformSessionManager->sessionId();
d->platformSessionManager->sessionId();
never executed: return d->platformSessionManager->sessionId();
0
37}-
38QString QSessionManager::sessionKey() const-
39{-
40 const QSessionManagerPrivate * const d = d_func();-
41 return
never executed: return d->platformSessionManager->sessionKey();
d->platformSessionManager->sessionKey();
never executed: return d->platformSessionManager->sessionKey();
0
42}-
43bool QSessionManager::allowsInteraction()-
44{-
45 QSessionManagerPrivate * const d = d_func();-
46 return
never executed: return d->platformSessionManager->allowsInteraction();
d->platformSessionManager->allowsInteraction();
never executed: return d->platformSessionManager->allowsInteraction();
0
47}-
48bool QSessionManager::allowsErrorInteraction()-
49{-
50 QSessionManagerPrivate * const d = d_func();-
51 return
never executed: return d->platformSessionManager->allowsErrorInteraction();
d->platformSessionManager->allowsErrorInteraction();
never executed: return d->platformSessionManager->allowsErrorInteraction();
0
52}-
53-
54-
55-
56-
57-
58-
59-
60void QSessionManager::release()-
61{-
62 QSessionManagerPrivate * const d = d_func();-
63 d->platformSessionManager->release();-
64}
never executed: end of block
0
65-
66-
67-
68-
69-
70-
71-
72void QSessionManager::cancel()-
73{-
74 QSessionManagerPrivate * const d = d_func();-
75 d->platformSessionManager->cancel();-
76}
never executed: end of block
0
77void QSessionManager::setRestartHint(QSessionManager::RestartHint hint)-
78{-
79 QSessionManagerPrivate * const d = d_func();-
80 d->platformSessionManager->setRestartHint(hint);-
81}
never executed: end of block
0
82QSessionManager::RestartHint QSessionManager::restartHint() const-
83{-
84 const QSessionManagerPrivate * const d = d_func();-
85 return
never executed: return d->platformSessionManager->restartHint();
d->platformSessionManager->restartHint();
never executed: return d->platformSessionManager->restartHint();
0
86}-
87void QSessionManager::setRestartCommand(const QStringList &command)-
88{-
89 QSessionManagerPrivate * const d = d_func();-
90 d->platformSessionManager->setRestartCommand(command);-
91}
never executed: end of block
0
92QStringList QSessionManager::restartCommand() const-
93{-
94 const QSessionManagerPrivate * const d = d_func();-
95 return
never executed: return d->platformSessionManager->restartCommand();
d->platformSessionManager->restartCommand();
never executed: return d->platformSessionManager->restartCommand();
0
96}-
97-
98-
99-
100-
101-
102-
103void QSessionManager::setDiscardCommand(const QStringList &command)-
104{-
105 QSessionManagerPrivate * const d = d_func();-
106 d->platformSessionManager->setDiscardCommand(command);-
107}
never executed: end of block
0
108QStringList QSessionManager::discardCommand() const-
109{-
110 const QSessionManagerPrivate * const d = d_func();-
111 return
never executed: return d->platformSessionManager->discardCommand();
d->platformSessionManager->discardCommand();
never executed: return d->platformSessionManager->discardCommand();
0
112}-
113void QSessionManager::setManagerProperty(const QString &name,-
114 const QString &value)-
115{-
116 QSessionManagerPrivate * const d = d_func();-
117 d->platformSessionManager->setManagerProperty(name, value);-
118}
never executed: end of block
0
119-
120-
121-
122-
123-
124-
125-
126void QSessionManager::setManagerProperty(const QString &name,-
127 const QStringList &value)-
128{-
129 QSessionManagerPrivate * const d = d_func();-
130 d->platformSessionManager->setManagerProperty(name, value);-
131}
never executed: end of block
0
132-
133-
134-
135-
136-
137-
138-
139bool QSessionManager::isPhase2() const-
140{-
141 const QSessionManagerPrivate * const d = d_func();-
142 return
never executed: return d->platformSessionManager->isPhase2();
d->platformSessionManager->isPhase2();
never executed: return d->platformSessionManager->isPhase2();
0
143}-
144void QSessionManager::requestPhase2()-
145{-
146 QSessionManagerPrivate * const d = d_func();-
147 d->platformSessionManager->requestPhase2();-
148}
never executed: end of block
0
149-
150-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9