kmail

KMailICalIfaceImpl Class Reference

The implementation of the interface. More...

#include <kmailicalifaceimpl.h>

Inheritance diagram for KMailICalIfaceImpl:

List of all members.


Public Slots

void readConfig ()
void slotFolderPropertiesChanged (KMFolder *folder)
void slotFolderRemoved (KMFolder *folder)
void slotIncidenceAdded (KMFolder *folder, Q_UINT32 sernum)
void slotIncidenceDeleted (KMFolder *folder, Q_UINT32 sernum)
void slotRefresh (const QString &type)

Public Member Functions

void addFolderChange (KMFolder *folder, FolderChanges changes)
bool addSubresource (const QString &resource, const QString &parent, const QString &contentsType)
QString attachmentMimetype (const QString &resource, Q_UINT32 sernum, const QString &filename)
void cleanup ()
bool deleteIncidenceKolab (const QString &resource, Q_UINT32 sernum)
void deleteMsg (KMMessage *msg)
KMMessagefindMessageByUID (const QString &uid, KMFolder *folder)
void folderContentsTypeChanged (KMFolder *, KMail::FolderContentsType)
void folderDeletedOnServer (const KURL &folderURL)
KMFolderfolderFromType (const QString &type, const QString &folder)
QString folderName (KFolderTreeItem::Type type, int language=-1) const
QString folderPixmap (KFolderTreeItem::Type type) const
void folderSynced (KMFolder *folder, const KURL &folderURL)
KFolderTreeItem::Type folderType (KMFolder *folder) const
KURL getAttachment (const QString &resource, Q_UINT32 sernum, const QString &filename)
bool hideResourceAccountRoot (KMFolder *folder) const
bool hideResourceFolder (KMFolder *folder) const
QString icalFolderType (KMFolder *folder) const
QMap< Q_UINT32, QStringincidencesKolab (const QString &mimetype, const QString &resource, int startIndex, int nbMessages)
int incidencesKolabCount (const QString &mimetype, const QString &resource)
void initFolders ()
bool isEnabled () const
bool isResourceFolder (KMFolder *folder) const
bool isResourceQuiet () const
bool isStandardResourceFolder (KMFolder *folder) const
bool isWritableFolder (const QString &type, const QString &resource)
 KMailICalIfaceImpl ()
QStringList listAttachments (const QString &resource, Q_UINT32 sernum)
void msgRemoved (KMFolder *, KMMessage *)
bool removeSubresource (const QString &)
void setResourceQuiet (bool q)
void setStorageFormat (KMFolder *folder, StorageFormat format)
StorageFormat storageFormat (KMFolder *folder) const
StorageFormat storageFormat (const QString &resource)
QValueList< SubResourcesubresourcesKolab (const QString &contentsType)
bool triggerSync (const QString &contentsType)
Q_UINT32 update (const QString &resource, Q_UINT32 sernum, const QString &subject, const QString &plainTextBody, const QMap< QCString, QString > &customHeaders, const QStringList &attachmentURLs, const QStringList &attachmentMimetypes, const QStringList &attachmentNames, const QStringList &deletedAttachments)

Static Public Member Functions

static const char * annotationForContentsType (KMail::FolderContentsType type)
static KMMessagefindMessageBySerNum (Q_UINT32 serNum, KMFolder *folder)

Detailed Description

The implementation of the interface.

Definition at line 84 of file kmailicalifaceimpl.h.


Constructor & Destructor Documentation

KMailICalIfaceImpl::KMailICalIfaceImpl (  ) 

Definition at line 154 of file kmailicalifaceimpl.cpp.


Member Function Documentation

void KMailICalIfaceImpl::addFolderChange ( KMFolder folder,
FolderChanges  changes 
)

Definition at line 1476 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::addSubresource ( const QString resource,
const QString parent,
const QString contentsType 
) [virtual]

Trigger the creation of a new resource folder with name.

Parameters:
resource under parent
 
Returns:
success or failure

Implements KMailICalIface.

Definition at line 2220 of file kmailicalifaceimpl.cpp.

const char * KMailICalIfaceImpl::annotationForContentsType ( KMail::FolderContentsType  type  )  [static]

Definition at line 126 of file kmailicalifaceimpl.cpp.

QString KMailICalIfaceImpl::attachmentMimetype ( const QString resource,
Q_UINT32  sernum,
const QString filename 
) [virtual]

Implements KMailICalIface.

Definition at line 968 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::cleanup (  ) 

Disconnect all slots and close the dirs.

Definition at line 2059 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::deleteIncidenceKolab ( const QString resource,
Q_UINT32  sernum 
) [virtual]

Implements KMailICalIface.

Definition at line 476 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::deleteMsg ( KMMessage msg  ) 

Convenience function to delete a message.

Definition at line 1359 of file kmailicalifaceimpl.cpp.

KMMessage * KMailICalIfaceImpl::findMessageBySerNum ( Q_UINT32  serNum,
KMFolder folder 
) [static]

Find message matching a given serial number.

Definition at line 1339 of file kmailicalifaceimpl.cpp.

KMMessage * KMailICalIfaceImpl::findMessageByUID ( const QString uid,
KMFolder folder 
)

Find message matching a given UID.

Definition at line 1328 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::folderContentsTypeChanged ( KMFolder folder,
KMail::FolderContentsType  contentsType 
)

Called when a folders contents have changed.

Definition at line 1379 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::folderDeletedOnServer ( const KURL &  folderURL  ) 

Definition at line 1529 of file kmailicalifaceimpl.cpp.

KMFolder * KMailICalIfaceImpl::folderFromType ( const QString type,
const QString folder 
)

Get the folder that holds *type* entries.

Definition at line 1203 of file kmailicalifaceimpl.cpp.

QString KMailICalIfaceImpl::folderName ( KFolderTreeItem::Type  type,
int  language = -1 
) const

Returns the localized name of a folder of given type.

Definition at line 1276 of file kmailicalifaceimpl.cpp.

QString KMailICalIfaceImpl::folderPixmap ( KFolderTreeItem::Type  type  )  const

Returns the name of the standard icon for a folder of given type or QString::null if the type is no groupware type.

Definition at line 2070 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::folderSynced ( KMFolder folder,
const KURL &  folderURL 
)

Definition at line 1505 of file kmailicalifaceimpl.cpp.

KFolderTreeItem::Type KMailICalIfaceImpl::folderType ( KMFolder folder  )  const

Returns the resource folder type.

Other is returned if resource isn't enabled or it isn't a resource folder.

Definition at line 1259 of file kmailicalifaceimpl.cpp.

KURL KMailICalIfaceImpl::getAttachment ( const QString resource,
Q_UINT32  sernum,
const QString filename 
) [virtual]

Implements KMailICalIface.

Definition at line 908 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::hideResourceAccountRoot ( KMFolder folder  )  const

Returns true if the given folder is the root of the groupware account, groupware folders are hidden, and only groupware folders shown in this account.

Definition at line 1249 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::hideResourceFolder ( KMFolder folder  )  const

Returns true if isResourceFolder( folder ) returns true, and imap folders should be hidden.

Definition at line 1244 of file kmailicalifaceimpl.cpp.

QString KMailICalIfaceImpl::icalFolderType ( KMFolder folder  )  const

Return the ical type of a folder.

QMap< Q_UINT32, QString > KMailICalIfaceImpl::incidencesKolab ( const QString mimetype,
const QString resource,
int  startIndex,
int  nbMessages 
) [virtual]

Get the mimetype attachments from this folder. Returns a QMap with serialNumber/attachment pairs. (serial numbers of the mail are provided for easier later update)

Implements KMailICalIface.

Definition at line 530 of file kmailicalifaceimpl.cpp.

int KMailICalIfaceImpl::incidencesKolabCount ( const QString mimetype,
const QString resource 
) [virtual]

Return the number of mails that need to be looked at by incidencesKolab.

This allows to call incidencesKolab in chunks.

Implements KMailICalIface.

Definition at line 508 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::initFolders (  ) 

Initialize all folders.

bool KMailICalIfaceImpl::isEnabled (  )  const [inline]

Definition at line 202 of file kmailicalifaceimpl.h.

bool KMailICalIfaceImpl::isResourceFolder ( KMFolder folder  )  const

Returns true if resource mode is enabled and folder is one of the resource folders.

Definition at line 1232 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::isResourceQuiet (  )  const

Definition at line 2214 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::isStandardResourceFolder ( KMFolder folder  )  const

Definition at line 1238 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::isWritableFolder ( const QString type,
const QString resource 
) [virtual]

Implements KMailICalIface.

Definition at line 753 of file kmailicalifaceimpl.cpp.

QStringList KMailICalIfaceImpl::listAttachments ( const QString resource,
Q_UINT32  sernum 
) [virtual]

Implements KMailICalIface.

Definition at line 998 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::msgRemoved ( KMFolder ,
KMMessage  
)

void KMailICalIfaceImpl::readConfig ( void   )  [slot]

Definition at line 1636 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::removeSubresource ( const QString resource  )  [virtual]

Trigger the deletion of a new resource folder with id.

Parameters:
resource. 
Returns:
success or failure

Implements KMailICalIface.

Definition at line 2249 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::setResourceQuiet ( bool  q  ) 

Definition at line 2209 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::setStorageFormat ( KMFolder folder,
StorageFormat  format 
)

Set the storage format of a given folder. Called when seeing the kolab annotation.

Definition at line 1462 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::slotFolderPropertiesChanged ( KMFolder folder  )  [slot]

Definition at line 1572 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::slotFolderRemoved ( KMFolder folder  )  [slot]

Definition at line 1046 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::slotIncidenceAdded ( KMFolder folder,
Q_UINT32  sernum 
) [slot]

Definition at line 1057 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::slotIncidenceDeleted ( KMFolder folder,
Q_UINT32  sernum 
) [slot]

Definition at line 1127 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::slotRefresh ( const QString type  )  [slot]

Definition at line 1174 of file kmailicalifaceimpl.cpp.

KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat ( KMFolder folder  )  const

Returns:
the storage format of a given folder

Definition at line 1454 of file kmailicalifaceimpl.cpp.

KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat ( const QString resource  )  [virtual]

Implements KMailICalIface.

Definition at line 765 of file kmailicalifaceimpl.cpp.

QValueList< KMailICalIfaceImpl::SubResource > KMailICalIfaceImpl::subresourcesKolab ( const QString contentsType  )  [virtual]

Return list of subresources.

contentsType is Mail, Calendar, Contact, Note, Task or Journal

Implements KMailICalIface.

Definition at line 695 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::triggerSync ( const QString  )  [virtual]

Causes all resource folders of the given type to be synced with the server.

Implements KMailICalIface.

Definition at line 726 of file kmailicalifaceimpl.cpp.

Q_UINT32 KMailICalIfaceImpl::update ( const QString resource,
Q_UINT32  sernum,
const QString subject,
const QString plainTextBody,
const QMap< QCString, QString > &  customHeaders,
const QStringList attachmentURLs,
const QStringList attachmentMimetypes,
const QStringList attachmentNames,
const QStringList deletedAttachments 
) [virtual]

Update a kolab storage entry.

This finds the message with serial number "sernum", sets the xml attachments to hold the contents of "xml", and updates all attachments.

If message is not there, it is added and given the subject as Subject: header. Returns the new mail serial number, or 0 if something went wrong,

The mail can have additional attachments, and these are not touched! They belong to other clients - like Outlook So we delete all the attachments listed in the "deletedAttachments" arg, and then update/add all the attachments given by the urllist attachments.

If the mail does not already exist, id will not be a valid serial number, and the mail is just added instead. In this case the deletedAttachments can be forgotten.

Implements KMailICalIface.

Definition at line 790 of file kmailicalifaceimpl.cpp.


The documentation for this class was generated from the following files: