• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • Session
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Akonadi::Session Class Reference

#include <session.h>

Inherits QObject.

Signals

void reconnected ()
 

Public Member Functions

 Session (const QByteArray &sessionId=QByteArray(), QObject *parent=0)
 
 ~Session ()
 
void clear ()
 
QByteArray sessionId () const
 

Static Public Member Functions

static Session * defaultSession ()
 

Protected Member Functions

 Session (SessionPrivate *d, const QByteArray &sessionId=QByteArray(), QObject *parent=0)
 

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 implemented (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* ) ) );
Author
Volker Krause vkrau.nosp@m.se@k.nosp@m.de.or.nosp@m.g

Definition at line 59 of file session.h.

Constructor & Destructor Documentation

Session::Session ( const QByteArray &  sessionId = QByteArray(),
QObject *  parent = 0 
)
explicit

Creates a new session.

Parameters
sessionIdThe identifier for this session, will be a random value if empty.
parentThe parent object.
See also
defaultSession()

Definition at line 402 of file session.cpp.

Session::~Session ( )

Destroys the session.

Definition at line 416 of file session.cpp.

Session::Session ( SessionPrivate *  d,
const QByteArray &  sessionId = QByteArray(),
QObject *  parent = 0 
)
explicitprotected

Creates a new session with shared private object.

Parameters
dThe private object.
sessionIdThe identifier for this session, will be a random value if empty.
parentThe parent object.
Note
This constructor is needed for unit testing only.

Definition at line 409 of file session.cpp.

Member Function Documentation

void Session::clear ( )

Stops all jobs queued for execution.

Definition at line 451 of file session.cpp.

Session * Session::defaultSession ( )
static

Returns the default session for this thread.

Definition at line 444 of file session.cpp.

void Akonadi::Session::reconnected ( )
signal

This signal is emitted whenever the session has been reconnected to the server (e.g.

after a server crash).

Since
4.6
QByteArray Session::sessionId ( ) const

Returns the session identifier.

Definition at line 422 of file session.cpp.


The documentation for this class was generated from the following files:
  • session.h
  • session.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal