Akonadi
control.cpp
81 if ((mStarting && (state == ServerManager::Starting || state == ServerManager::Upgrading)) || (mStopping && state == ServerManager::Stopping)) {
85 mSuccess = (mStarting && state == ServerManager::Running) || (mStopping && state == ServerManager::NotRunning);
92 connect(ServerManager::self(), &ServerManager::stateChanged, this, [this](Akonadi::ServerManager::State state) {
static bool start()
Starts the Akonadi server synchronously if it is not already running.
Definition control.cpp:106
static bool stop()
Stops the Akonadi server synchronously if it is currently running.
Definition control.cpp:128
static QString brokenReason()
Returns the reason why the Server is broken, if known.
Definition servermanager.cpp:309
@ Upgrading
Server is performing a database upgrade as part of a new startup.
Definition servermanager.h:42
@ NotRunning
Server is not running, could be no one started it yet or it failed to start.
Definition servermanager.h:37
void stateChanged(Akonadi::ServerManager::State state)
Emitted whenever the server state changes.
static ServerManager * self()
Returns the singleton instance of this class, for connecting to its signals.
Definition servermanager.cpp:178
Helper integration between Akonadi and Qt.
void aboutToQuit()
QCoreApplication * instance()
int exec(ProcessEventsFlags flags)
bool isRunning() const const
void quit()
Q_OBJECTQ_OBJECT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.