Na tej strani

Core::SessionManager Class

class Core::SessionManager

Razred SessionManager upravlja s sejami. Več...

Header: #include <SessionManager>
Inherits: QObject

Statični javni člani

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

Podroben opis

TODO: vmesnik tega razreda ni ravno odličen. Izvedba trpi zaradi dejstva, da vse funkcije iz javnega vmesnika zgolj ovijajo funkcije, ki opravljajo dejansko delo. To bi bilo mogoče izboljšati.

Dokumentacija funkcij članov

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

Prikaže pogovorno okno, v katerem se uporabnika zaprosi za potrditev izbrisa navedene povezave sessions.

Vrne, ali je uporabnik potrdil izbris.

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

Ustvari ` session`, vendar datoteke dejansko ne ustvari.

Vrne, ali je bilo ustvarjanje uspešno.

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

Ime » session « izbriše s seznama sej in datoteko z diska.

Vrne, ali je bilo brisanje uspešno.

[static] QString SessionManager::lastSession()

Vrne zadnjo sejo, ki jo je odprl uporabnik.

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

Omogoča drugim vtičnikom, da v datoteki seje shranijo trajne vrednosti, določene na name in value.

[static] QString SessionManager::startupSession()

Vrne sejo, ki je bila aktivna ob zadnjem zaprtju strani Qt Creator, če takšna obstaja.

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.