• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.11.3 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
  • calendar
mailclient_p.h
1 /*
2  Copyright (c) 1998 Barry D Benowitz <b.benowitz@telesciences.com>
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (c) 2009 Allen Winter <winter@kde.org>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef AKONADI_MAILCLIENT_P_H
23 #define AKONADI_MAILCLIENT_P_H
24 
25 #include <kcalcore/incidencebase.h>
26 
27 #include <QObject>
28 
29 #ifdef MAILCLIENTTEST_UNITTEST
30 #include <kmime/kmime_message.h>
31  struct UnitTestResult {
32  QString from;
33  QStringList to;
34  QStringList cc;
35  QStringList bcc;
36  int transportId;
37  KMime::Message::Ptr message;
38  };
39 #endif
40 
41 namespace KPIMIdentities {
42  class Identity;
43 }
44 
45 class KJob;
46 
47 namespace Akonadi {
48 
49 class MailClient : public QObject
50 {
51  Q_OBJECT
52  public:
53 
54  enum Result {
55  ResultSuccess,
56  ResultNoAttendees,
57  ResultReallyNoAttendees,
58  ResultErrorCreatingTransport,
59  ResultErrorFetchingTransport,
60  ResultQueueJobError
61  };
62 
63  explicit MailClient( QObject *parent = 0 );
64  ~MailClient();
65 
66  void mailAttendees( const KCalCore::IncidenceBase::Ptr &,
67  const KPIMIdentities::Identity &identity,
68  bool bccMe, const QString &attachment=QString(),
69  const QString &mailTransport = QString() );
70 
71  void mailOrganizer( const KCalCore::IncidenceBase::Ptr &,
72  const KPIMIdentities::Identity &identity,
73  const QString &from, bool bccMe,
74  const QString &attachment=QString(),
75  const QString &sub=QString(),
76  const QString &mailTransport = QString() );
77 
78  void mailTo( const KCalCore::IncidenceBase::Ptr &, const KPIMIdentities::Identity &identity,
79  const QString &from, bool bccMe, const QString &recipients,
80  const QString &attachment=QString(), const QString &mailTransport = QString() );
81 
99  void send( const KPIMIdentities::Identity &identity, const QString &from, const QString &to,
100  const QString &cc, const QString &subject, const QString &body,
101  bool hidden=false, bool bccMe=false, const QString &attachment=QString(),
102  const QString &mailTransport = QString() );
103 
104  private Q_SLOTS:
105  void handleQueueJobFinished( KJob* job );
106 
107  Q_SIGNALS:
108  void finished( Akonadi::MailClient::Result result, const QString &errorString );
109 
110  #ifdef MAILCLIENTTEST_UNITTEST
111  public:
112  UnitTestResult mUnitTestResult; // So unit-tests can check the result without having to check the mail the transport sent
113  #endif
114 };
115 
116 }
117 
118 Q_DECLARE_METATYPE( Akonadi::MailClient::Result )
119 
120 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:18 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.11.3 API Reference

Skip menu "kdepimlibs-4.11.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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