Core::SessionManager Class
class Core::SessionManagerA classe SessionManager gerencia sessões. Mais...
| Header: | #include <SessionManager> |
| Inherits: | QObject |
Membros públicos estáticos
| 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() |
Descrição detalhada
A fazer: a interface desta classe não é muito boa. A implementação é prejudicada pelo fato de todas as funções da interface pública serem apenas um invólucro para as funções que realizam o trabalho de fato. Isso poderia ser melhorado.
Documentação das funções de membro
[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)
Exibe uma caixa de diálogo solicitando que o usuário confirme a exclusão do sessions especificado.
Retorna se o usuário confirmou a exclusão.
[static] bool SessionManager::createSession(const QString &session)
Cria ` session`, mas não cria o arquivo de fato.
Retorna se a criação foi bem-sucedida.
[static] bool SessionManager::deleteSession(const QString &session)
Exclui um nome d session o da lista de sessões e o arquivo do disco.
Retorna se a exclusão foi bem-sucedida.
[static] QString SessionManager::lastSession()
Retorna a última sessão aberta pelo usuário.
[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)
Permite que outros plug-ins armazenem valores persistentes especificados em name e value no arquivo de sessão.
[static] QString SessionManager::startupSession()
Retorna a sessão que estava ativa quando o ` Qt Creator ` foi fechado pela última vez, se houver.
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.