Core::SessionManager Class
class Core::SessionManagerKlasa SessionManager upravlja sesijama. Više...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
Statični javni članovi
| 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() |
Detaljan opis
TODO sučelje ove klase nije baš sjajno. Implementacija pati od toga što sve funkcije iz javnog sučelja samo omotavaju funkcije koje obavljaju stvarni posao. To bi se moglo poboljšati.
Dokumentacija funkcija člana
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
Prikazuje dijalog koji korisnika traži da potvrdi brisanje navedenog sessions a.
Vraća je li korisnik potvrdio brisanje.
[static] bool SessionManager::createSession(const QString &session)
Stvara f session, ali zapravo ne stvara datoteku.
Vraća je li stvaranje bilo uspješno.
[static] bool SessionManager::deleteSession(const QString &session)
Brisi ime session a iz popisa sesija i datoteku s diska.
Vraća informaciju o tome je li brisanje bilo uspješno.
[static] QString SessionManager::lastSession()
Vraća posljednju sesiju koju je korisnik otvorio.
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
Omogućuje drugim dodatcima pohranu trajnih vrijednosti navedenih u name i value unutar sesijske datoteke.
[static] QString SessionManager::startupSession()
Vraća sesiju koja je bila aktivna kada je Qt Creator zadnji put zatvoren, ako postoji.
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.