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

kmail

  • KMail
  • Util
Functions
KMail::Util Namespace Reference

Functions

bool checkTransport (QWidget *w)
 
size_t crlf2lf (char *str, const size_t strLen)
 
bool handleClickedURL (const KUrl &url, const QSharedPointer< MailCommon::FolderCollection > &folder=QSharedPointer< MailCommon::FolderCollection >())
 
void lastEncryptAndSignState (bool &lastEncrypt, bool &lastSign, const KMime::Message::Ptr &msg)
 
void launchAccountWizard (QWidget *)
 
bool mailingListArchives (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListHelp (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListPost (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
KMime::Types::Mailbox::List mailingListsFromMessage (const Akonadi::Item &item)
 
bool mailingListsHandleURL (const KUrl::List &lst, const QSharedPointer< MailCommon::FolderCollection > &folder)
 
bool mailingListSubscribe (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListUnsubscribe (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
void migrateFromKMail1 ()
 
QColor misspelledColor ()
 
Akonadi::Item::Id putRepliesInSameFolder (const Akonadi::Item &item)
 
QColor quoteL1Color ()
 
QColor quoteL2Color ()
 
QColor quoteL3Color ()
 
void reduceQuery (QString &query)
 

Detailed Description

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

Function Documentation

bool KMail::Util::checkTransport ( QWidget *  w)

Test if all required settings are set.

Reports problems to user via dialogs and returns false. Returns true if everything is Ok.

size_t KMail::Util::crlf2lf ( char *  str,
const size_t  strLen 
)

Convert all sequences of "\r\n" (carriage return followed by a line feed) to a single "\n" (line feed).

The conversion happens in place. Returns the length of the resulting string.

Parameters
strThe string to convert.
strLenThe length of the string to convert.
Returns
The new length of the converted string.
bool KMail::Util::handleClickedURL ( const KUrl &  url,
const QSharedPointer< MailCommon::FolderCollection > &  folder = QSharedPointer<MailCommon::FolderCollection>() 
)

Handles a clicked URL, but only in case the viewer didn't handle it.

Currently only support mailto.

Definition at line 103 of file util.cpp.

void KMail::Util::lastEncryptAndSignState ( bool &  lastEncrypt,
bool &  lastSign,
const KMime::Message::Ptr &  msg 
)

Definition at line 200 of file util.cpp.

void KMail::Util::launchAccountWizard ( QWidget *  w)

Definition at line 89 of file util.cpp.

bool KMail::Util::mailingListArchives ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 186 of file util.cpp.

bool KMail::Util::mailingListHelp ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 193 of file util.cpp.

bool KMail::Util::mailingListPost ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 165 of file util.cpp.

KMime::Types::Mailbox::List KMail::Util::mailingListsFromMessage ( const Akonadi::Item &  item)

Returns any mailing list post addresses set on the parent collection (the mail folder) of the item.

Definition at line 62 of file util.cpp.

bool KMail::Util::mailingListsHandleURL ( const KUrl::List &  lst,
const QSharedPointer< MailCommon::FolderCollection > &  folder 
)

Definition at line 140 of file util.cpp.

bool KMail::Util::mailingListSubscribe ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 172 of file util.cpp.

bool KMail::Util::mailingListUnsubscribe ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 179 of file util.cpp.

void KMail::Util::migrateFromKMail1 ( )

Definition at line 237 of file util.cpp.

QColor KMail::Util::misspelledColor ( )

Definition at line 206 of file util.cpp.

Akonadi::Item::Id KMail::Util::putRepliesInSameFolder ( const Akonadi::Item &  item)

Whether or not the mail item has the keep-reply-in-folder attribute set.

Definition at line 77 of file util.cpp.

QColor KMail::Util::quoteL1Color ( )

Definition at line 211 of file util.cpp.

QColor KMail::Util::quoteL2Color ( )

Definition at line 216 of file util.cpp.

QColor KMail::Util::quoteL3Color ( )

Definition at line 221 of file util.cpp.

void KMail::Util::reduceQuery ( QString &  query)

Definition at line 227 of file util.cpp.

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

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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