Core::SessionManager Class
class Core::SessionManagerA SessionManager osztály kezeli a munkameneteket. További információk...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
Statikus nyilvános tagok
| 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() |
Részletes leírás
TODO: ennek az osztálynak az interfésze nem igazán jó. A megvalósítás hátránya, hogy a nyilvános interfész összes függvénye csupán olyan függvényeket burkol, amelyek elvégzik a tényleges munkát. Ez javítható lenne.
Tagfüggvények dokumentációja
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
Megjelenít egy párbeszédablakot, amelyben a rendszer megkérdezi a felhasználót, hogy megerősíti-e a megadott sessions törlését.
Visszaadja, hogy a felhasználó megerősítette-e a törlést.
[static] bool SessionManager::createSession(const QString &session)
Létrehozza a ` session` fájlt, de a fájlt valójában nem hozza létre.
Visszaadja, hogy a létrehozás sikeres volt-e.
[static] bool SessionManager::deleteSession(const QString &session)
Törli a „ session ” nevet a munkamenetlistából, valamint a fájlt a lemezről.
Visszaadja, hogy a törlés sikeres volt-e.
[static] QString SessionManager::lastSession()
Visszaadja a felhasználó által legutóbb megnyitott munkamenetet.
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
Lehetővé teszi más bővítmények számára, hogy a name és a value oldalakon megadott állandó értékeket a munkamenetfájlban tárolják.
[static] QString SessionManager::startupSession()
Visszaadja azt a munkamenetet, amely az „ Qt Creator ” legutóbbi bezárásakor aktív volt, amennyiben volt ilyen.
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.