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

akonadi

  • Akonadi
  • SessionPrivate
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Akonadi::SessionPrivate Class Reference

#include <session_p.h>

Public Member Functions

 SessionPrivate (Session *parent)
 
virtual void addJob (Job *job)
 
bool canPipelineNext ()
 
void dataReceived ()
 
void doStartNext ()
 
void endJob (Job *job)
 
void forceReconnect ()
 
virtual void init (const QByteArray &sessionId)
 
void itemRevisionChanged (Akonadi::Item::Id itemId, int oldRevision, int newRevision)
 
void jobDestroyed (QObject *job)
 
void jobDone (KJob *job)
 
void jobWriteFinished (Akonadi::Job *job)
 
int nextTag ()
 
virtual void reconnect ()
 
void serverStateChanged (ServerManager::State)
 
void socketDisconnected ()
 
void socketError (QLocalSocket::LocalSocketError error)
 
void socketError (QAbstractSocket::SocketError error)
 
void startJob (Job *job)
 
void startNext ()
 
void writeData (const QByteArray &data)
 

Static Public Member Functions

static QString connectionFile ()
 
static void createDefaultSession (const QByteArray &sessionId)
 
static int minimumProtocolVersion ()
 
static void setDefaultSession (Session *session)
 

Public Attributes

bool connected
 
Job * currentJob
 
bool jobRunning
 
Session * mParent
 
ImapParser * parser
 
QQueue< Job * > pipeline
 
int protocolVersion
 
QQueue< Job * > queue
 
QByteArray sessionId
 
QIODevice * socket
 
int theNextTag
 

Detailed Description

Definition at line 41 of file session_p.h.

Member Function Documentation

virtual void Akonadi::SessionPrivate::addJob ( Job *  job)
virtual

Associates the given Job object with this session.

static QString Akonadi::SessionPrivate::connectionFile ( )
static

Default location for akonadiconnectionrc.

void SessionPrivate::createDefaultSession ( const QByteArray &  sessionId)
static

Creates a new default session for this thread with the given sessionId.

The session can be accessed later by defaultSession().

You only need to call this method if you want that the default session has a special custom id, otherwise a random unique id is used automatically.

Parameters
sessionIdthe id of new default session

Definition at line 429 of file session.cpp.

void Akonadi::SessionPrivate::endJob ( Job *  job)

For testing purposes only. See FakeSesson.

Parameters
jobthe job to end
void SessionPrivate::forceReconnect ( )

Disconnects a previously existing connection and tries to reconnect.

Definition at line 390 of file session.cpp.

void Akonadi::SessionPrivate::itemRevisionChanged ( Akonadi::Item::Id  itemId,
int  oldRevision,
int  newRevision 
)

Propagate item revision changes to following jobs.

int Akonadi::SessionPrivate::nextTag ( )

Returns the next IMAP tag.

virtual void Akonadi::SessionPrivate::reconnect ( )
virtual

Attemps to establish a connections to the Akonadi server.

void SessionPrivate::setDefaultSession ( Session *  session)
static

Sets the default session.

Only for unit tests.

Definition at line 439 of file session.cpp.

void Akonadi::SessionPrivate::writeData ( const QByteArray &  data)

Sends the given raw data.


The documentation for this class was generated from the following files:
  • session_p.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