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

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
util.h
Go to the documentation of this file.
1 /*******************************************************************************
2 **
3 ** Filename : util
4 ** Created on : 03 April, 2005
5 ** Copyright : (c) 2005 Till Adam
6 ** Email : <adam@kde.org>
7 **
8 *******************************************************************************/
9 
10 /*******************************************************************************
11 **
12 ** This program is free software; you can redistribute it and/or modify
13 ** it under the terms of the GNU General Public License as published by
14 ** the Free Software Foundation; either version 2 of the License, or
15 ** (at your option) any later version.
16 **
17 ** It is distributed in the hope that it will be useful, but
18 ** WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ** General Public License for more details.
21 **
22 ** You should have received a copy of the GNU General Public License
23 ** along with this program; if not, write to the Free Software
24 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 **
26 ** In addition, as a special exception, the copyright holders give
27 ** permission to link the code of this program with any edition of
28 ** the Qt library by Trolltech AS, Norway (or with modified versions
29 ** of Qt that use the same license as Qt), and distribute linked
30 ** combinations including the two. You must obey the GNU General
31 ** Public License in all respects for all of the code used other than
32 ** Qt. If you modify this file, you may extend this exception to
33 ** your version of the file, but you are not obligated to do so. If
34 ** you do not wish to do so, delete this exception statement from
35 ** your version.
36 **
37 *******************************************************************************/
38 #ifndef KMAILUTIL_H
39 #define KMAILUTIL_H
40 
41 #include <QWidget>
42 #include <akonadi/item.h>
43 #include <Akonadi/Collection>
44 #include "mailcommon/folder/foldercollection.h"
45 class KUrl;
46 
47 namespace KMail
48 {
53 namespace Util {
54 
58 bool checkTransport( QWidget *w );
59 
68 size_t crlf2lf( char* str, const size_t strLen );
69 
74 KMime::Types::Mailbox::List mailingListsFromMessage( const Akonadi::Item& item );
75 
80 Akonadi::Item::Id putRepliesInSameFolder( const Akonadi::Item& item );
81 
82 void launchAccountWizard( QWidget * );
83 
88 bool handleClickedURL( const KUrl &url, const QSharedPointer<MailCommon::FolderCollection> &folder = QSharedPointer<MailCommon::FolderCollection>() );
89 
90 
91 bool mailingListsHandleURL( const KUrl::List& lst,const QSharedPointer<MailCommon::FolderCollection> &folder );
92 
93 bool mailingListPost( const QSharedPointer<MailCommon::FolderCollection> &fd );
94 bool mailingListSubscribe( const QSharedPointer<MailCommon::FolderCollection> &fd );
95 bool mailingListUnsubscribe( const QSharedPointer<MailCommon::FolderCollection> &fd );
96 bool mailingListArchives( const QSharedPointer<MailCommon::FolderCollection> &fd );
97 bool mailingListHelp( const QSharedPointer<MailCommon::FolderCollection> &fd );
98 
99 void lastEncryptAndSignState(bool &lastEncrypt, bool &lastSign, const KMime::Message::Ptr& msg);
100 
101 QColor misspelledColor();
102 QColor quoteL1Color();
103 QColor quoteL2Color();
104 QColor quoteL3Color();
105 void reduceQuery(QString &query);
106 void migrateFromKMail1();
107 }
108 }
109 
110 #endif
KMail::Util::mailingListSubscribe
bool mailingListSubscribe(const QSharedPointer< MailCommon::FolderCollection > &fd)
Definition: util.cpp:172
KMail::Util::migrateFromKMail1
void migrateFromKMail1()
Definition: util.cpp:237
QSharedPointer< MailCommon::FolderCollection >
KMail::Util::mailingListPost
bool mailingListPost(const QSharedPointer< MailCommon::FolderCollection > &fd)
Definition: util.cpp:165
KMail::Util::mailingListUnsubscribe
bool mailingListUnsubscribe(const QSharedPointer< MailCommon::FolderCollection > &fd)
Definition: util.cpp:179
KMail::Util::putRepliesInSameFolder
Akonadi::Item::Id putRepliesInSameFolder(const Akonadi::Item &item)
Whether or not the mail item has the keep-reply-in-folder attribute set.
Definition: util.cpp:77
KMail::Util::launchAccountWizard
void launchAccountWizard(QWidget *)
Definition: util.cpp:89
QWidget
KMail::Util::handleClickedURL
bool 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.
Definition: util.cpp:103
KMail::Util::mailingListsHandleURL
bool mailingListsHandleURL(const KUrl::List &lst, const QSharedPointer< MailCommon::FolderCollection > &folder)
Definition: util.cpp:140
KMail::Util::mailingListsFromMessage
KMime::Types::Mailbox::List mailingListsFromMessage(const Akonadi::Item &item)
Returns any mailing list post addresses set on the parent collection (the mail folder) of the item...
Definition: util.cpp:62
KMail::Util::crlf2lf
size_t 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...
KMail::Util::reduceQuery
void reduceQuery(QString &query)
Definition: util.cpp:227
KMail::Util::quoteL3Color
QColor quoteL3Color()
Definition: util.cpp:221
KMail::Util::quoteL1Color
QColor quoteL1Color()
Definition: util.cpp:211
KMail::Util::mailingListArchives
bool mailingListArchives(const QSharedPointer< MailCommon::FolderCollection > &fd)
Definition: util.cpp:186
KMail::Util::misspelledColor
QColor misspelledColor()
Definition: util.cpp:206
KMail::Util::checkTransport
bool checkTransport(QWidget *w)
Test if all required settings are set.
KMail::Util::mailingListHelp
bool mailingListHelp(const QSharedPointer< MailCommon::FolderCollection > &fd)
Definition: util.cpp:193
KMail::Util::lastEncryptAndSignState
void lastEncryptAndSignState(bool &lastEncrypt, bool &lastSign, const KMime::Message::Ptr &msg)
Definition: util.cpp:200
KMail::Util::quoteL2Color
QColor quoteL2Color()
Definition: util.cpp:216
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