kmail

#include <kmailicalifaceimpl.h>

Inherits TQObject, and KMailICalIface.

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.

Member Function Documentation

◆ cleanup()

void KMailICalIfaceImpl::cleanup ( )

Disconnect all slots and close the dirs.

Definition at line 2125 of file kmailicalifaceimpl.cpp.

◆ deleteMsg()

void KMailICalIfaceImpl::deleteMsg ( KMMessage msg)

Convenience function to delete a message.

Definition at line 1384 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.

◆ 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.

◆ 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.

◆ 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.

◆ initFolders()

void KMailICalIfaceImpl::initFolders ( )

Initialize all folders.

◆ 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.

◆ 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.

◆ storageFormat()

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

Definition at line 1479 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: