// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include #include using namespace Utils; namespace ProjectExplorer { class SessionManagerPrivate { public: void restoreStartupSession(); void restoreValues(const PersistentSettingsReader &reader); void restoreSessionValues(const PersistentSettingsReader &reader); void restoreEditors(); bool isStartupSessionRestored(); void saveSettings(); void restoreSettings(); bool isAutoRestoreLastSession(); void setAutoRestoreLastSession(bool restore); static QString windowTitleAddition(const FilePath &filePath); static QString sessionTitle(const FilePath &filePath); QString m_sessionName = "default"; bool m_isStartupSessionRestored = false; bool m_isAutoRestoreLastSession = false; bool m_virginSession = true; bool m_loadingSession = false; mutable QStringList m_sessions; mutable QHash m_sessionDateTimes; QHash m_lastActiveTimes; QMap m_values; QMap m_sessionValues; QFutureInterface m_future; PersistentSettingsWriter *m_writer = nullptr; }; extern SessionManagerPrivate *sb_d; } // namespace ProjectExplorer