| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformsessionmanager.cpp |
| Source code | Switch to Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | /**************************************************************************** | - |
| 2 | ** | - |
| 3 | ** Copyright (C) 2013 Samuel Gaist <samuel.gaist@edeltech.ch> | - |
| 4 | ** Copyright (C) 2013 Teo Mrnjavac <teo@kde.org> | - |
| 5 | ** Copyright (C) 2015 The Qt Company Ltd. | - |
| 6 | ** Contact: http://www.qt.io/licensing/ | - |
| 7 | ** | - |
| 8 | ** This file is part of the QtGui module of the Qt Toolkit. | - |
| 9 | ** | - |
| 10 | ** $QT_BEGIN_LICENSE:LGPL21$ | - |
| 11 | ** Commercial License Usage | - |
| 12 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
| 13 | ** accordance with the commercial license agreement provided with the | - |
| 14 | ** Software or, alternatively, in accordance with the terms contained in | - |
| 15 | ** a written agreement between you and The Qt Company. For licensing terms | - |
| 16 | ** and conditions see http://www.qt.io/terms-conditions. For further | - |
| 17 | ** information use the contact form at http://www.qt.io/contact-us. | - |
| 18 | ** | - |
| 19 | ** GNU Lesser General Public License Usage | - |
| 20 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
| 21 | ** General Public License version 2.1 or version 3 as published by the Free | - |
| 22 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and | - |
| 23 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the | - |
| 24 | ** following information to ensure the GNU Lesser General Public License | - |
| 25 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and | - |
| 26 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
| 27 | ** | - |
| 28 | ** As a special exception, The Qt Company gives you certain additional | - |
| 29 | ** rights. These rights are described in The Qt Company LGPL Exception | - |
| 30 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
| 31 | ** | - |
| 32 | ** $QT_END_LICENSE$ | - |
| 33 | ** | - |
| 34 | ****************************************************************************/ | - |
| 35 | - | |
| 36 | #include "qplatformsessionmanager.h" | - |
| 37 | - | |
| 38 | #include "qguiapplication_p.h" | - |
| 39 | - | |
| 40 | #ifndef QT_NO_SESSIONMANAGER | - |
| 41 | - | |
| 42 | QT_BEGIN_NAMESPACE | - |
| 43 | - | |
| 44 | QPlatformSessionManager::QPlatformSessionManager(const QString &id, const QString &key) | - |
| 45 | : m_sessionId(id), | - |
| 46 | m_sessionKey(key), | - |
| 47 | m_restartHint(QSessionManager::RestartIfRunning) | - |
| 48 | { | - |
| 49 | } never executed: end of block | 0 |
| 50 | - | |
| 51 | QPlatformSessionManager::~QPlatformSessionManager() | - |
| 52 | { | - |
| 53 | } | - |
| 54 | - | |
| 55 | QString QPlatformSessionManager::sessionId() const | - |
| 56 | { | - |
| 57 | return m_sessionId; never executed: return m_sessionId; | 0 |
| 58 | } | - |
| 59 | - | |
| 60 | QString QPlatformSessionManager::sessionKey() const | - |
| 61 | { | - |
| 62 | return m_sessionKey; never executed: return m_sessionKey; | 0 |
| 63 | } | - |
| 64 | - | |
| 65 | bool QPlatformSessionManager::allowsInteraction() | - |
| 66 | { | - |
| 67 | return false; never executed: return false; | 0 |
| 68 | } | - |
| 69 | - | |
| 70 | bool QPlatformSessionManager::allowsErrorInteraction() | - |
| 71 | { | - |
| 72 | return false; never executed: return false; | 0 |
| 73 | } | - |
| 74 | - | |
| 75 | void QPlatformSessionManager::release() | - |
| 76 | { | - |
| 77 | } | - |
| 78 | - | |
| 79 | void QPlatformSessionManager::cancel() | - |
| 80 | { | - |
| 81 | } | - |
| 82 | - | |
| 83 | void QPlatformSessionManager::setRestartHint(QSessionManager::RestartHint restartHint) | - |
| 84 | { | - |
| 85 | m_restartHint = restartHint; | - |
| 86 | } never executed: end of block | 0 |
| 87 | - | |
| 88 | QSessionManager::RestartHint QPlatformSessionManager::restartHint() const | - |
| 89 | { | - |
| 90 | return m_restartHint; never executed: return m_restartHint; | 0 |
| 91 | } | - |
| 92 | - | |
| 93 | void QPlatformSessionManager::setRestartCommand(const QStringList &command) | - |
| 94 | { | - |
| 95 | m_restartCommand = command; | - |
| 96 | } never executed: end of block | 0 |
| 97 | - | |
| 98 | QStringList QPlatformSessionManager::restartCommand() const | - |
| 99 | { | - |
| 100 | return m_restartCommand; never executed: return m_restartCommand; | 0 |
| 101 | } | - |
| 102 | - | |
| 103 | void QPlatformSessionManager::setDiscardCommand(const QStringList &command) | - |
| 104 | { | - |
| 105 | m_discardCommand = command; | - |
| 106 | } never executed: end of block | 0 |
| 107 | - | |
| 108 | QStringList QPlatformSessionManager::discardCommand() const | - |
| 109 | { | - |
| 110 | return m_discardCommand; never executed: return m_discardCommand; | 0 |
| 111 | } | - |
| 112 | - | |
| 113 | void QPlatformSessionManager::setManagerProperty(const QString &name, const QString &value) | - |
| 114 | { | - |
| 115 | Q_UNUSED(name) | - |
| 116 | Q_UNUSED(value) | - |
| 117 | } never executed: end of block | 0 |
| 118 | - | |
| 119 | void QPlatformSessionManager::setManagerProperty(const QString &name, const QStringList &value) | - |
| 120 | { | - |
| 121 | Q_UNUSED(name) | - |
| 122 | Q_UNUSED(value) | - |
| 123 | } never executed: end of block | 0 |
| 124 | - | |
| 125 | bool QPlatformSessionManager::isPhase2() const | - |
| 126 | { | - |
| 127 | return false; never executed: return false; | 0 |
| 128 | } | - |
| 129 | - | |
| 130 | void QPlatformSessionManager::requestPhase2() | - |
| 131 | { | - |
| 132 | } | - |
| 133 | - | |
| 134 | void QPlatformSessionManager::appCommitData() | - |
| 135 | { | - |
| 136 | qGuiApp->d_func()->commitData(); | - |
| 137 | } never executed: end of block | 0 |
| 138 | - | |
| 139 | void QPlatformSessionManager::appSaveState() | - |
| 140 | { | - |
| 141 | qGuiApp->d_func()->saveState(); | - |
| 142 | } never executed: end of block | 0 |
| 143 | - | |
| 144 | QT_END_NAMESPACE | - |
| 145 | - | |
| 146 | #endif // QT_NO_SESSIONMANAGER | - |
| Source code | Switch to Preprocessed file |