akonadi
Akonadi::Control Class Reference
Provides methods to control the Akonadi server process. More...
#include <control.h>
Inherits QObject.
Inherited by StaticControl.
Public Member Functions | |
~Control () | |
Static Public Member Functions | |
static bool | start () |
Protected Member Functions | |
Control () |
Detailed Description
Provides methods to control the Akonadi server process.This class provides a method to start the Akonadi server process synchronously.
Normally the Akonadi server is started by the KDE session manager, however for unit tests or special needs one can use this class to start it explicitly.
Example:
if ( !Akonadi::Control::start() ) { qDebug() << "Unable to start server, exit application"; return 1; } else { ... }
Definition at line 54 of file control.h.
Constructor & Destructor Documentation
Control::~Control | ( | ) |
Control::Control | ( | ) | [protected] |
Member Function Documentation
bool Control::start | ( | ) | [static] |
Starts the Akonadi server synchronously if it is not already running.
Definition at line 120 of file control.cpp.
The documentation for this class was generated from the following files: