Core::SessionManager Class
class Core::SessionManagerTřída SessionManager spravuje relace. Více...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
Statické veřejné členy
| 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() |
Podrobný popis
TODO: Rozhraní této třídy není zrovna nejlepší. Implementace trpí tím, že všechny funkce z veřejného rozhraní pouze obalují funkce, které vykonávají skutečnou práci. To by se dalo vylepšit.
Dokumentace členských funkcí
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
Zobrazí dialogové okno s výzvou k potvrzení smazání zadaného sessions.
Vrátí, zda uživatel odstranění potvrdil.
[static] bool SessionManager::createSession(const QString &session)
Vytvoří soubor ` session`, ale soubor ve skutečnosti nevytvoří.
Vrací, zda bylo vytvoření úspěšné.
[static] bool SessionManager::deleteSession(const QString &session)
Odstraní název souboru „ session “ ze seznamu relací a soubor z disku.
Vrátí, zda bylo odstranění úspěšné.
[static] QString SessionManager::lastSession()
Vrátí poslední relaci, kterou uživatel otevřel.
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
Umožňuje ostatním pluginům ukládat trvalé hodnoty určené v souborech name a value do souboru relace.
[static] QString SessionManager::startupSession()
Vrátí relaci, která byla aktivní v okamžiku posledního zavření stránky Qt Creator, pokud taková existuje.
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.