Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qsessionmanager.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | QSessionManagerPrivate::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 | - | |
19 | QSessionManagerPrivate::~QSessionManagerPrivate() | - |
20 | { | - |
21 | delete platformSessionManager; | - |
22 | platformSessionManager = 0; | - |
23 | } never executed: end of block | 0 |
24 | - | |
25 | QSessionManager::QSessionManager(QGuiApplication *app, QString &id, QString &key) | - |
26 | : QObject(*(new QSessionManagerPrivate(id, key)), app) | - |
27 | { | - |
28 | } never executed: end of block | 0 |
29 | - | |
30 | QSessionManager::~QSessionManager() | - |
31 | { | - |
32 | } | - |
33 | QString QSessionManager::sessionId() const | - |
34 | { | - |
35 | const QSessionManagerPrivate * const d = d_func(); | - |
36 | return never executed: d->platformSessionManager->sessionId();return d->platformSessionManager->sessionId(); never executed: return d->platformSessionManager->sessionId(); | 0 |
37 | } | - |
38 | QString QSessionManager::sessionKey() const | - |
39 | { | - |
40 | const QSessionManagerPrivate * const d = d_func(); | - |
41 | return never executed: d->platformSessionManager->sessionKey();return d->platformSessionManager->sessionKey(); never executed: return d->platformSessionManager->sessionKey(); | 0 |
42 | } | - |
43 | bool QSessionManager::allowsInteraction() | - |
44 | { | - |
45 | QSessionManagerPrivate * const d = d_func(); | - |
46 | return never executed: d->platformSessionManager->allowsInteraction();return d->platformSessionManager->allowsInteraction(); never executed: return d->platformSessionManager->allowsInteraction(); | 0 |
47 | } | - |
48 | bool QSessionManager::allowsErrorInteraction() | - |
49 | { | - |
50 | QSessionManagerPrivate * const d = d_func(); | - |
51 | return never executed: d->platformSessionManager->allowsErrorInteraction();return d->platformSessionManager->allowsErrorInteraction(); never executed: return d->platformSessionManager->allowsErrorInteraction(); | 0 |
52 | } | - |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | - | |
58 | - | |
59 | - | |
60 | void 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 | - | |
72 | void QSessionManager::cancel() | - |
73 | { | - |
74 | QSessionManagerPrivate * const d = d_func(); | - |
75 | d->platformSessionManager->cancel(); | - |
76 | } never executed: end of block | 0 |
77 | void QSessionManager::setRestartHint(QSessionManager::RestartHint hint) | - |
78 | { | - |
79 | QSessionManagerPrivate * const d = d_func(); | - |
80 | d->platformSessionManager->setRestartHint(hint); | - |
81 | } never executed: end of block | 0 |
82 | QSessionManager::RestartHint QSessionManager::restartHint() const | - |
83 | { | - |
84 | const QSessionManagerPrivate * const d = d_func(); | - |
85 | return never executed: d->platformSessionManager->restartHint();return d->platformSessionManager->restartHint(); never executed: return d->platformSessionManager->restartHint(); | 0 |
86 | } | - |
87 | void QSessionManager::setRestartCommand(const QStringList &command) | - |
88 | { | - |
89 | QSessionManagerPrivate * const d = d_func(); | - |
90 | d->platformSessionManager->setRestartCommand(command); | - |
91 | } never executed: end of block | 0 |
92 | QStringList QSessionManager::restartCommand() const | - |
93 | { | - |
94 | const QSessionManagerPrivate * const d = d_func(); | - |
95 | return never executed: d->platformSessionManager->restartCommand();return d->platformSessionManager->restartCommand(); never executed: return d->platformSessionManager->restartCommand(); | 0 |
96 | } | - |
97 | - | |
98 | - | |
99 | - | |
100 | - | |
101 | - | |
102 | - | |
103 | void QSessionManager::setDiscardCommand(const QStringList &command) | - |
104 | { | - |
105 | QSessionManagerPrivate * const d = d_func(); | - |
106 | d->platformSessionManager->setDiscardCommand(command); | - |
107 | } never executed: end of block | 0 |
108 | QStringList QSessionManager::discardCommand() const | - |
109 | { | - |
110 | const QSessionManagerPrivate * const d = d_func(); | - |
111 | return never executed: d->platformSessionManager->discardCommand();return d->platformSessionManager->discardCommand(); never executed: return d->platformSessionManager->discardCommand(); | 0 |
112 | } | - |
113 | void 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 | - | |
126 | void 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 | - | |
139 | bool QSessionManager::isPhase2() const | - |
140 | { | - |
141 | const QSessionManagerPrivate * const d = d_func(); | - |
142 | return never executed: d->platformSessionManager->isPhase2();return d->platformSessionManager->isPhase2(); never executed: return d->platformSessionManager->isPhase2(); | 0 |
143 | } | - |
144 | void 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 code | Preprocessed file |