kmail

#include <kmailicalifaceimpl.h>

Public Slots

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

Public Member Functions

bool isWritableFolder (const TQString &type, const TQString &resource)
StorageFormat storageFormat (const TQString &resource)
TQ_UINT32 update (const TQString &resource, TQ_UINT32 sernum, const TQString &subject, const TQString &plainTextBody, const TQMap< TQCString, TQString > &customHeaders, const TQStringList &attachmentURLs, const TQStringList &attachmentMimetypes, const TQStringList &attachmentNames, const TQStringList &deletedAttachments)
bool deleteIncidenceKolab (const TQString &resource, TQ_UINT32 sernum)
int incidencesKolabCount (const TQString &mimetype, const TQString &resource)
TQMap< TQ_UINT32, TQString > incidencesKolab (const TQString &mimetype, const TQString &resource, int startIndex, int nbMessages)
int dimapAccounts ()
TQValueList< SubResource > subresourcesKolab (const TQString &contentsType)
bool triggerSync (const TQString &contentsType)
KURL getAttachment (const TQString &resource, TQ_UINT32 sernum, const TQString &filename)
TQString attachmentMimetype (const TQString &resource, TQ_UINT32 sernum, const TQString &filename)
TQStringList listAttachments (const TQString &resource, TQ_UINT32 sernum)
bool removeSubresource (const TQString &)
bool addSubresource (const TQString &resource, const TQString &parent, const TQString &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
TQString folderPixmap (KFolderTreeItem::Type type) const
TQString folderName (KFolderTreeItem::Type type, int language=-1) const
KMFolderfolderFromType (const TQString &type, const TQString &folder)
TQString icalFolderType (KMFolder *folder) const
KMMessagefindMessageByUID (const TQString &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)
bool isResourceQuiet () const
void setResourceQuiet (bool q)

Static Public Member Functions

static KMMessagefindMessageBySerNum (TQ_UINT32 serNum, KMFolder *folder)
static const char * annotationForContentsType (KMail::FolderContentsType type)
static TQMap< TQString, TQString > * getResourceMap ()

Detailed Description

The implementation of the interface.

Definition at line 84 of file kmailicalifaceimpl.h.

Constructor & Destructor Documentation

◆ KMailICalIfaceImpl()

KMailICalIfaceImpl::KMailICalIfaceImpl ( )

Definition at line 157 of file kmailicalifaceimpl.cpp.

Member Function Documentation

◆ addFolderChange()

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

Definition at line 1501 of file kmailicalifaceimpl.cpp.

◆ addSubresource()

bool KMailICalIfaceImpl::addSubresource ( const TQString & resource,
const TQString & parent,
const TQString & contentsType )

Definition at line 2289 of file kmailicalifaceimpl.cpp.

◆ annotationForContentsType()

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

Definition at line 129 of file kmailicalifaceimpl.cpp.

◆ attachmentMimetype()

TQString KMailICalIfaceImpl::attachmentMimetype ( const TQString & resource,
TQ_UINT32 sernum,
const TQString & filename )

Definition at line 993 of file kmailicalifaceimpl.cpp.

◆ changeResourceUIName

void KMailICalIfaceImpl::changeResourceUIName ( const TQString & folderPath,
const TQString & newName )
slot

Definition at line 1656 of file kmailicalifaceimpl.cpp.

◆ cleanup()

void KMailICalIfaceImpl::cleanup ( )

Disconnect all slots and close the dirs.

Definition at line 2125 of file kmailicalifaceimpl.cpp.

◆ deleteIncidenceKolab()

bool KMailICalIfaceImpl::deleteIncidenceKolab ( const TQString & resource,
TQ_UINT32 sernum )

Definition at line 479 of file kmailicalifaceimpl.cpp.

◆ deleteMsg()

void KMailICalIfaceImpl::deleteMsg ( KMMessage * msg)

Convenience function to delete a message.

Definition at line 1384 of file kmailicalifaceimpl.cpp.

◆ dimapAccounts()

int KMailICalIfaceImpl::dimapAccounts ( )

Definition at line 662 of file kmailicalifaceimpl.cpp.

◆ findMessageBySerNum()

KMMessage * KMailICalIfaceImpl::findMessageBySerNum ( TQ_UINT32 serNum,
KMFolder * folder )
static

Find message matching a given serial number.

Definition at line 1364 of file kmailicalifaceimpl.cpp.

◆ findMessageByUID()

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

Find message matching a given UID.

Definition at line 1353 of file kmailicalifaceimpl.cpp.

◆ folderContentsTypeChanged()

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

Called when a folders contents have changed.

Definition at line 1404 of file kmailicalifaceimpl.cpp.

◆ folderDeletedOnServer()

void KMailICalIfaceImpl::folderDeletedOnServer ( const KURL & folderURL)

Definition at line 1554 of file kmailicalifaceimpl.cpp.

◆ folderFromType()

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

Get the folder that holds type entries.

Definition at line 1228 of file kmailicalifaceimpl.cpp.

◆ folderName()

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

Returns the localized name of a folder of given type.

Definition at line 1301 of file kmailicalifaceimpl.cpp.

◆ folderPixmap()

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

Returns the name of the standard icon for a folder of given type or TQString() if the type is no groupware type.

Definition at line 2136 of file kmailicalifaceimpl.cpp.

◆ folderSynced()

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

Definition at line 1530 of file kmailicalifaceimpl.cpp.

◆ folderType()

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 1284 of file kmailicalifaceimpl.cpp.

◆ getAttachment()

KURL KMailICalIfaceImpl::getAttachment ( const TQString & resource,
TQ_UINT32 sernum,
const TQString & filename )

Definition at line 933 of file kmailicalifaceimpl.cpp.

◆ getResourceMap()

TQMap< TQString, TQString > * KMailICalIfaceImpl::getResourceMap ( )
inlinestatic

Definition at line 228 of file kmailicalifaceimpl.h.

◆ hideResourceAccountRoot()

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 1274 of file kmailicalifaceimpl.cpp.

◆ hideResourceFolder()

bool KMailICalIfaceImpl::hideResourceFolder ( KMFolder * folder) const

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

Definition at line 1269 of file kmailicalifaceimpl.cpp.

◆ icalFolderType()

TQString KMailICalIfaceImpl::icalFolderType ( KMFolder * folder) const

Return the ical type of a folder.

◆ incidencesKolab()

TQMap< TQ_UINT32, TQString > KMailICalIfaceImpl::incidencesKolab ( const TQString & mimetype,
const TQString & resource,
int startIndex,
int nbMessages )

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

Definition at line 533 of file kmailicalifaceimpl.cpp.

◆ incidencesKolabCount()

int KMailICalIfaceImpl::incidencesKolabCount ( const TQString & mimetype,
const TQString & resource )

Definition at line 511 of file kmailicalifaceimpl.cpp.

◆ initFolders()

void KMailICalIfaceImpl::initFolders ( )

Initialize all folders.

◆ isEnabled()

bool KMailICalIfaceImpl::isEnabled ( ) const
inline

Definition at line 204 of file kmailicalifaceimpl.h.

◆ isResourceFolder()

bool KMailICalIfaceImpl::isResourceFolder ( KMFolder * folder) const

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

Definition at line 1257 of file kmailicalifaceimpl.cpp.

◆ isResourceQuiet()

bool KMailICalIfaceImpl::isResourceQuiet ( ) const

Definition at line 2283 of file kmailicalifaceimpl.cpp.

◆ isStandardResourceFolder()

bool KMailICalIfaceImpl::isStandardResourceFolder ( KMFolder * folder) const

Definition at line 1263 of file kmailicalifaceimpl.cpp.

◆ isWritableFolder()

bool KMailICalIfaceImpl::isWritableFolder ( const TQString & type,
const TQString & resource )

Definition at line 778 of file kmailicalifaceimpl.cpp.

◆ listAttachments()

TQStringList KMailICalIfaceImpl::listAttachments ( const TQString & resource,
TQ_UINT32 sernum )

Definition at line 1023 of file kmailicalifaceimpl.cpp.

◆ readConfig

void KMailICalIfaceImpl::readConfig ( )
slot

Definition at line 1687 of file kmailicalifaceimpl.cpp.

◆ removeSubresource()

bool KMailICalIfaceImpl::removeSubresource ( const TQString & location)

Definition at line 2324 of file kmailicalifaceimpl.cpp.

◆ setResourceQuiet()

void KMailICalIfaceImpl::setResourceQuiet ( bool q)

Definition at line 2278 of file kmailicalifaceimpl.cpp.

◆ setStorageFormat()

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

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

Definition at line 1487 of file kmailicalifaceimpl.cpp.

◆ slotFolderPropertiesChanged

void KMailICalIfaceImpl::slotFolderPropertiesChanged ( KMFolder * folder)
slot

Definition at line 1597 of file kmailicalifaceimpl.cpp.

◆ slotFolderRemoved

void KMailICalIfaceImpl::slotFolderRemoved ( KMFolder * folder)
slot

Definition at line 1071 of file kmailicalifaceimpl.cpp.

◆ slotIncidenceAdded

void KMailICalIfaceImpl::slotIncidenceAdded ( KMFolder * folder,
TQ_UINT32 sernum )
slot

Definition at line 1082 of file kmailicalifaceimpl.cpp.

◆ slotIncidenceDeleted

void KMailICalIfaceImpl::slotIncidenceDeleted ( KMFolder * folder,
TQ_UINT32 sernum )
slot

Definition at line 1152 of file kmailicalifaceimpl.cpp.

◆ slotRefresh

void KMailICalIfaceImpl::slotRefresh ( const TQString & type)
slot

Definition at line 1199 of file kmailicalifaceimpl.cpp.

◆ storageFormat() [1/2]

KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat ( const TQString & resource)

Definition at line 790 of file kmailicalifaceimpl.cpp.

◆ storageFormat() [2/2]

KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat ( KMFolder * folder) const
Returns
the storage format of a given folder

Definition at line 1479 of file kmailicalifaceimpl.cpp.

◆ subresourcesKolab()

TQValueList< KMailICalIfaceImpl::SubResource > KMailICalIfaceImpl::subresourcesKolab ( const TQString & contentsType)

Definition at line 718 of file kmailicalifaceimpl.cpp.

◆ triggerSync()

bool KMailICalIfaceImpl::triggerSync ( const TQString & contentsType)

Definition at line 749 of file kmailicalifaceimpl.cpp.

◆ update()

TQ_UINT32 KMailICalIfaceImpl::update ( const TQString & resource,
TQ_UINT32 sernum,
const TQString & subject,
const TQString & plainTextBody,
const TQMap< TQCString, TQString > & customHeaders,
const TQStringList & attachmentURLs,
const TQStringList & attachmentMimetypes,
const TQStringList & attachmentNames,
const TQStringList & 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 815 of file kmailicalifaceimpl.cpp.


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