Core::SessionManager Class
class Core::SessionManagerSessionManager クラスはセッションを管理します。詳細...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
静的パブリックメンバー
| bool | confirmSessionDelete(const QStringList &sessions) |
| bool | createSession(const QString &session) |
| bool | deleteSession(const QString &session) |
| QString | lastSession() |
| void | setValue(const Utils::Key &name, const QVariant &value) |
| QString | startupSession() |
詳細な説明
TODO このクラスのインターフェースはあまり良くありません。パブリックインターフェースの関数はすべて、実際の処理を行う関数を単にラップしているだけであるため、実装に支障をきたしています。これは改善の余地があります。
メンバ関数のドキュメント
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
指定されたsessions の削除を確認するダイアログを表示します。
ユーザーが削除を確認したかどうかを返します。
[static] bool SessionManager::createSession(const QString &session)
session を作成しますが、実際にはファイルは作成されません。
作成が成功したかどうかを返します。
[static] bool SessionManager::deleteSession(const QString &session)
セッション一覧からsession の名前を削除し、ディスク上のファイルも削除します。
削除が成功したかどうかを返します。
[static] QString SessionManager::lastSession()
ユーザーが最後に開いたセッションを返します。
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
name およびvalue で指定された永続的な値を、他のプラグインがセッションファイル内に保存できるようにします。
[static] QString SessionManager::startupSession()
Qt Creator が最後に閉じられた時点でアクティブだったセッション(存在する場合)を返します。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.