Core::SessionManager Class
class Core::SessionManagerKlasa `SessionManager` zarządza sesjami. Więcej...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
Statyczne elementy publiczne
| 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() |
Szczegółowy opis
Do zrobienia: interfejs tej klasy nie jest zbyt dobry. Implementacja cierpi na to, że wszystkie funkcje z interfejsu publicznego po prostu owijają funkcje, które wykonują rzeczywistą pracę. Można to poprawić.
Dokumentacja funkcji składowych
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
Wyświetla okno dialogowe z prośbą o potwierdzenie usunięcia określonego elementu sessions.
Zwraca informację, czy użytkownik potwierdził usunięcie.
[static] bool SessionManager::createSession(const QString &session)
Tworzy plik ` session`, ale nie tworzy go faktycznie.
Zwraca informację, czy utworzenie pliku zakończyło się powodzeniem.
[static] bool SessionManager::deleteSession(const QString &session)
Usuwa nazwę pliku „ session ” z listy sesji oraz sam plik z dysku.
Zwraca informację, czy usunięcie zakończyło się powodzeniem.
[static] QString SessionManager::lastSession()
Zwraca ostatnią sesję otwartą przez użytkownika.
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
Umożliwia innym wtyczkom zapisywanie trwałych wartości określonych w plikach name oraz value w pliku sesji.
[static] QString SessionManager::startupSession()
Zwraca sesję, która była aktywna w momencie ostatniego zamknięcia strony Qt Creator, o ile taka istnieje.
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.