In questa pagina

Core::SessionManager Class

class Core::SessionManager

La classe SessionManager gestisce le sessioni. Per saperne di più...

Header: #include <SessionManager>
Inherits: QObject

Membri pubblici statici

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()

Descrizione dettagliata

DA FARE: l'interfaccia di questa classe non è proprio ottimale. L'implementazione risente del fatto che tutte le funzioni dell'interfaccia pubblica si limitano a incapsulare le funzioni che svolgono il lavoro effettivo. Questo aspetto potrebbe essere migliorato.

Documentazione delle funzioni membro

[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)

Visualizza una finestra di dialogo in cui si chiede all'utente di confermare l'eliminazione dell'sessions e specificato.

Restituisce se l'utente ha confermato l'eliminazione.

[static] bool SessionManager::createSession(const QString &session)

Crea un file denominato “ session ”, ma non lo crea effettivamente.

Restituisce se la creazione è andata a buon fine.

[static] bool SessionManager::deleteSession(const QString &session)

Elimina il nome “ session ” dall’elenco delle sessioni e il file dal disco.

Restituisce se l'eliminazione è andata a buon fine.

[static] QString SessionManager::lastSession()

Restituisce l'ultima sessione aperta dall'utente.

[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)

Consente ad altri plugin di memorizzare nel file di sessione i valori persistenti specificati in name e value.

[static] QString SessionManager::startupSession()

Restituisce la sessione che era attiva all'ultima chiusura di Qt Creator, se presente.

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.