akonadi
Akonadi::Session Class Reference
A communication session with the Akonadi storage. More...
#include <session.h>
Inherits QObject.
Public Member Functions | |
void | clear () |
Session (const QByteArray &sessionId=QByteArray(), QObject *parent=0) | |
QByteArray | sessionId () const |
~Session () | |
Static Public Member Functions | |
static Session * | defaultSession () |
Detailed Description
A communication session with the Akonadi storage.Every Job object has to be associated with a Session. The session is responsible of scheduling its jobs. For now only a simple serial execution is impleneted (the IMAP-like protocol to communicate with the storage backend is capable of parallel execution on a single session though).
using namespace Akonadi; Session *session = new Session( "mySession" ); CollectionFetchJob *job = new CollectionFetchJob( Collection::root(), CollectionFetchJob::Recursive, session ); connect( job, SIGNAL( result( KJob* ) ), this, SLOT( slotResult( KJob* ) ) );
Definition at line 58 of file session.h.
Constructor & Destructor Documentation
Session::Session | ( | const QByteArray & | sessionId = QByteArray() , |
|
QObject * | parent = 0 | |||
) | [explicit] |
Creates a new session.
- Parameters:
-
sessionId The identifier for this session, will be a random value if empty. parent The parent object.
- See also:
- defaultSession()
Definition at line 221 of file session.cpp.
Session::~Session | ( | ) |
Member Function Documentation
void Session::clear | ( | ) |
Session * Session::defaultSession | ( | ) | [static] |
QByteArray Session::sessionId | ( | ) | const |
The documentation for this class was generated from the following files: