kmail

KMailICalIfaceImpl Class Reference

#include <kmailicalifaceimpl.h>

Inherits QObject, and KMailICalIface.

List of all members.


Detailed Description

The implementation of the interface.

Definition at line 88 of file kmailicalifaceimpl.h.


Public Slots

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

Public Member Functions

bool isWritableFolder (const QString &type, const QString &resource)
StorageFormat storageFormat (const QString &resource)
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)
Answer messageReadyForUpdate (const QString &resource, Q_UINT32 sernum)
bool deleteIncidenceKolab (const QString &resource, Q_UINT32 sernum)
int incidencesKolabCount (const QString &mimetype, const QString &resource)
QMap< Q_UINT32, QString > incidencesKolab (const QString &mimetype, const QString &resource, int startIndex, int nbMessages)
int dimapAccounts ()
QString dimapFolderAccountName (const QString &folderPath)
QValueList< SubResource > subresourcesKolab (const QString &contentsType)
bool triggerSync (const QString &contentsType)
KURL getAttachment (const QString &resource, Q_UINT32 sernum, const QString &filename)
QString attachmentMimetype (const QString &resource, Q_UINT32 sernum, const QString &filename)
QStringList listAttachments (const QString &resource, Q_UINT32 sernum)
bool removeSubresource (const QString &)
bool addSubresource (const QString &resource, const QString &parent, const QString &contentsType)
void msgRemoved (KMFolder *, KMMessage *)
void initFolders ()
void cleanup ()
bool isResourceFolder (KMFolder *folder) const
bool isStandardResourceFolder (KMFolder *folder) const
bool hideResourceFolder (KMFolder *folder) const
bool hideResourceAccountRoot (KMFolder *folder) const
KFolderTreeItem::Type folderType (KMFolder *folder) const
QString folderPixmap (KFolderTreeItem::Type type) const
QString folderName (KFolderTreeItem::Type type, int language=-1) const
KMFolderfolderFromType (const QString &type, const QString &folder)
QString icalFolderType (KMFolder *folder) const
KMMessagefindMessageByUID (const QString &uid, KMFolder *folder)
void deleteMsg (KMMessage *msg)
bool isEnabled () const
void folderContentsTypeChanged (KMFolder *, KMail::FolderContentsType)
StorageFormat storageFormat (KMFolder *folder) const
void setStorageFormat (KMFolder *folder, StorageFormat format)
void folderSynced (KMFolder *folder, const KURL &folderURL)
void folderDeletedOnServer (const KURL &folderURL)
void addFolderChange (KMFolder *folder, FolderChanges changes)
void markFolderForReindexing (KMFolder *folder)
bool isResourceQuiet () const
void setResourceQuiet (bool q)

Static Public Member Functions

static KMMessagefindMessageBySerNum (Q_UINT32 serNum, KMFolder *folder, const QString &subject=QString::null)
static const char * annotationForContentsType (KMail::FolderContentsType type)
static QMap< QString, QString > * getResourceMap ()

Member Function Documentation

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 
)

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.

Definition at line 817 of file kmailicalifaceimpl.cpp.

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

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)

Definition at line 533 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::initFolders (  ) 

Initialize all folders.

void KMailICalIfaceImpl::cleanup (  ) 

Disconnect all slots and close the dirs.

Definition at line 2204 of file kmailicalifaceimpl.cpp.

bool KMailICalIfaceImpl::isResourceFolder ( KMFolder folder  )  const

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

Definition at line 1271 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 1283 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 1288 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 1298 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 2215 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 1315 of file kmailicalifaceimpl.cpp.

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

Get the folder that holds *type* entries.

Definition at line 1242 of file kmailicalifaceimpl.cpp.

QString KMailICalIfaceImpl::icalFolderType ( KMFolder folder  )  const

Return the ical type of a folder.

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

Find message matching a given UID.

Definition at line 1367 of file kmailicalifaceimpl.cpp.

KMMessage * KMailICalIfaceImpl::findMessageBySerNum ( Q_UINT32  serNum,
KMFolder folder,
const QString &  subject = QString::null 
) [static]

Find message matching a given serial number.

If a subject is passed the found message is checked for the subject and the user is alerted if it does not match.

Definition at line 1378 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::deleteMsg ( KMMessage msg  ) 

Convenience function to delete a message.

Definition at line 1436 of file kmailicalifaceimpl.cpp.

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

Called when a folders contents have changed.

Definition at line 1456 of file kmailicalifaceimpl.cpp.

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

Returns:
the storage format of a given folder

Definition at line 1531 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 1539 of file kmailicalifaceimpl.cpp.

void KMailICalIfaceImpl::markFolderForReindexing ( KMFolder folder  ) 

Marks a Folder for reindexing on the next startup of Kontact this should be called if a corruption was detected in a folder.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys