kmail
KMailICalIfaceImpl Class Reference
The implementation of the interface. More...
#include <kmailicalifaceimpl.h>
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.
void KMailICalIfaceImpl::cleanup | ( | ) |
bool KMailICalIfaceImpl::deleteIncidenceKolab | ( | const QString & | resource, | |
Q_UINT32 | sernum | |||
) | [virtual] |
void KMailICalIfaceImpl::deleteMsg | ( | KMMessage * | msg | ) |
Find message matching a given serial number.
Definition at line 1339 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.
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.
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.
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.
QStringList KMailICalIfaceImpl::listAttachments | ( | const QString & | resource, | |
Q_UINT32 | sernum | |||
) | [virtual] |
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] |
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: