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

akonadi

  • sources
  • kde-4.14
  • kdepimlibs
  • akonadi
  • calendar
itiphandler.h
1 /*
2  Copyright (c) 2002-2004 Klarälvdalens Datakonsult AB
3  <info@klaralvdalens-datakonsult.se>
4 
5  Copyright (C) 2010 Bertjan Broeksema <broeksema@kde.org>
6  Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
7 
8  Copyright (C) 2012 SĂ©rgio Martins <iamsergio@gmail.com>
9 
10  This library is free software; you can redistribute it and/or modify it
11  under the terms of the GNU Library General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or (at your
13  option) any later version.
14 
15  This library is distributed in the hope that it will be useful, but WITHOUT
16  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
18  License for more details.
19 
20  You should have received a copy of the GNU Library General Public License
21  along with this library; see the file COPYING.LIB. If not, write to the
22  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23  02110-1301, USA.
24 */
25 
26 #ifndef _AKONADI_CALENDAR_ITIP_HANDLER_H
27 #define _AKONADI_CALENDAR_ITIP_HANDLER_H
28 
29 #include "akonadi-calendar_export.h"
30 #include "etmcalendar.h"
31 
32 #include <kcalcore/incidence.h>
33 #include <kcalcore/schedulemessage.h>
34 
35 #include <QString>
36 #include <QWidget>
37 
38 namespace Akonadi {
39 
44 class AKONADI_CALENDAR_EXPORT GroupwareUiDelegate
45 {
46 public:
47  virtual ~GroupwareUiDelegate();
48  virtual void requestIncidenceEditor(const Akonadi::Item &item) = 0;
49 
50  virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &calendar) = 0;
51  virtual void createCalendar() = 0;
52 };
53 
58 class AKONADI_CALENDAR_EXPORT ITIPHandler : public QObject
59 {
60  Q_OBJECT
61 public:
62  enum Result {
63  ResultError,
64  ResultSuccess,
65  ResultCancelled
66  };
67 
71  explicit ITIPHandler(QObject *parent = 0);
72 
76  ~ITIPHandler();
77 
87  void processiTIPMessage(const QString &receiver, const QString &iCal, const QString &type);
88 
97  void sendiTIPMessage(KCalCore::iTIPMethod method,
98  const KCalCore::Incidence::Ptr &incidence,
99  QWidget *parentWidget = 0);
100 
106  void publishInformation(const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0);
107 
112  void sendAsICalendar(const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0);
113 
117  void setGroupwareUiDelegate(GroupwareUiDelegate *);
118 
125  void setCalendar(const Akonadi::CalendarBase::Ptr &);
126 
134  void setShowDialogsOnError(bool enable);
135 
139  Akonadi::CalendarBase::Ptr calendar() const;
140 
141 Q_SIGNALS:
149  void iTipMessageProcessed(Akonadi::ITIPHandler::Result result,
150  const QString &errorMessage);
151 
155  void iTipMessageSent(Akonadi::ITIPHandler::Result, const QString &errorMessage);
156 
160  void informationPublished(Akonadi::ITIPHandler::Result, const QString &errorMessage);
161 
165  void sentAsICalendar(Akonadi::ITIPHandler::Result, const QString &errorMessage);
166 
167 private:
168  Q_DISABLE_COPY(ITIPHandler)
169  class Private;
170  Private *const d;
171 };
172 
173 }
174 
175 #endif
QWidget
Akonadi::ITIPHandler::ResultError
An unexpected error occurred.
Definition: itiphandler.h:63
Akonadi::ITIPHandler::ResultSuccess
The invitation was successfuly handled.
Definition: itiphandler.h:64
Akonadi::ITIPHandler
Handles sending of iTip messages aswell as processing incoming ones.
Definition: itiphandler.h:58
QSharedPointer< ETMCalendar >
QObject
QString
Akonadi::ITIPHandler::Result
Result
Definition: itiphandler.h:62
Akonadi::GroupwareUiDelegate
Ui delegate for editing counter proposals.
Definition: itiphandler.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs 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

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