• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

mailcommon

  • MailCommon
  • Util
Enumerations | Functions
MailCommon::Util Namespace Reference

Enumerations

enum  SearchDirection { ForwardSearch, BackwardSearch }
 

Functions

MAILCOMMON_EXPORT
Akonadi::AgentInstance::List 
agentInstances (bool excludeMailTransport=true)
 
MAILCOMMON_EXPORT
Akonadi::Collection::Id 
convertFolderPathToCollectionId (const QString &folder)
 
MAILCOMMON_EXPORT QString convertFolderPathToCollectionStr (const QString &folder)
 
MAILCOMMON_EXPORT bool createEventFromMail (const Akonadi::Item &mailItem)
 
MAILCOMMON_EXPORT
OrgKdeAkonadiPOP3SettingsInterface * 
createPop3SettingsInterface (const QString &ident)
 
MAILCOMMON_EXPORT bool createTodoFromMail (const Akonadi::Item &mailItem)
 
MAILCOMMON_EXPORT QColor defaultQuotaColor ()
 
MAILCOMMON_EXPORT bool ensureKorganizerRunning (bool switchTo)
 
MAILCOMMON_EXPORT void expireOldMessages (const Akonadi::Collection &collection, bool immediate)
 
MAILCOMMON_EXPORT uint folderIdentity (const Akonadi::Item &item)
 
MAILCOMMON_EXPORT bool foundMailer ()
 
MAILCOMMON_EXPORT QString fullCollectionPath (const Akonadi::Collection &collection)
 
MAILCOMMON_EXPORT bool ignoreNewMailInFolder (const Akonadi::Collection &collection)
 
MAILCOMMON_EXPORT bool isLocalCollection (const QString &resource)
 
MAILCOMMON_EXPORT bool isVirtualCollection (const Akonadi::Collection &col)
 
MAILCOMMON_EXPORT bool isVirtualCollection (const QString &resource)
 
MAILCOMMON_EXPORT QModelIndex nextUnreadCollection (QAbstractItemModel *model, const QModelIndex &current, SearchDirection direction, bool(*ignoreCollectionCallback)(const Akonadi::Collection &collection)=0)
 
MAILCOMMON_EXPORT
Akonadi::Collection 
parentCollectionFromItem (const Akonadi::Item &item)
 
MAILCOMMON_EXPORT QString realFolderPath (const QString &path)
 
MAILCOMMON_EXPORT bool showJobErrorMessage (KJob *job)
 
MAILCOMMON_EXPORT
Akonadi::Collection 
updatedCollection (const Akonadi::Collection &col)
 

Detailed Description

The Util namespace contains a collection of helper functions use in various places.

Enumeration Type Documentation

enum MailCommon::Util::SearchDirection

Describes the direction for searching next unread collection.

Enumerator
ForwardSearch 
BackwardSearch 

Definition at line 96 of file mailutil.h.

Function Documentation

Akonadi::AgentInstance::List MailCommon::Util::agentInstances ( bool  excludeMailTransport = true)

Definition at line 149 of file mailutil.cpp.

Akonadi::Collection::Id MailCommon::Util::convertFolderPathToCollectionId ( const QString &  folder)

Definition at line 616 of file mailutil.cpp.

QString MailCommon::Util::convertFolderPathToCollectionStr ( const QString &  folder)

Definition at line 633 of file mailutil.cpp.

bool MailCommon::Util::createEventFromMail ( const Akonadi::Item &  mailItem)

Definition at line 441 of file mailutil.cpp.

OrgKdeAkonadiPOP3SettingsInterface * MailCommon::Util::createPop3SettingsInterface ( const QString &  ident)

Definition at line 88 of file mailutil.cpp.

bool MailCommon::Util::createTodoFromMail ( const Akonadi::Item &  mailItem)

Definition at line 436 of file mailutil.cpp.

QColor MailCommon::Util::defaultQuotaColor ( )

Definition at line 597 of file mailutil.cpp.

bool MailCommon::Util::ensureKorganizerRunning ( bool  switchTo)

Definition at line 170 of file mailutil.cpp.

void MailCommon::Util::expireOldMessages ( const Akonadi::Collection &  collection,
bool  immediate 
)

Definition at line 603 of file mailutil.cpp.

uint MailCommon::Util::folderIdentity ( const Akonadi::Item &  item)

Returns the identity of the folder that contains the given Akonadi::Item.

Definition at line 446 of file mailutil.cpp.

bool MailCommon::Util::foundMailer ( )

Definition at line 641 of file mailutil.cpp.

QString MailCommon::Util::fullCollectionPath ( const Akonadi::Collection &  collection)

Definition at line 117 of file mailutil.cpp.

bool MailCommon::Util::ignoreNewMailInFolder ( const Akonadi::Collection &  collection)

Definition at line 571 of file mailutil.cpp.

bool MailCommon::Util::isLocalCollection ( const QString &  resource)

Definition at line 109 of file mailutil.cpp.

bool MailCommon::Util::isVirtualCollection ( const Akonadi::Collection &  col)

Definition at line 96 of file mailutil.cpp.

bool MailCommon::Util::isVirtualCollection ( const QString &  resource)

Definition at line 101 of file mailutil.cpp.

QModelIndex MailCommon::Util::nextUnreadCollection ( QAbstractItemModel *  model,
const QModelIndex &  current,
SearchDirection  direction,
bool(*)(const Akonadi::Collection &collection)  ignoreCollectionCallback = 0 
)

Returns the index of the next unread collection following a given index.

Parameters
modelThe item model to search in.
currentThe index of the collection where the search will start.
directionThe direction of search.
ignoreCollectionCallbackA callback method to ignore certain collections by returning true.

Definition at line 533 of file mailutil.cpp.

Akonadi::Collection MailCommon::Util::parentCollectionFromItem ( const Akonadi::Item &  item)

Definition at line 581 of file mailutil.cpp.

QString MailCommon::Util::realFolderPath ( const QString &  path)

Definition at line 586 of file mailutil.cpp.

bool MailCommon::Util::showJobErrorMessage ( KJob *  job)

Definition at line 136 of file mailutil.cpp.

Akonadi::Collection MailCommon::Util::updatedCollection ( const Akonadi::Collection &  col)

Definition at line 609 of file mailutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal