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

akonadi

  • sources
  • kde-4.12
  • 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 "fetchjobcalendar.h"
31 #include "etmcalendar.h"
32 
33 #include <kcalcore/incidence.h>
34 #include <kcalcore/schedulemessage.h>
35 
36 #include <QString>
37 #include <QWidget>
38 
39 namespace Akonadi {
40 
45 class AKONADI_CALENDAR_EXPORT GroupwareUiDelegate
46 {
47 public:
48  virtual ~GroupwareUiDelegate();
49  virtual void requestIncidenceEditor(const Akonadi::Item &item) = 0;
50 
51  virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &calendar) = 0;
52  virtual void createCalendar() = 0;
53 };
54 
59 class AKONADI_CALENDAR_EXPORT ITIPHandler : public QObject
60 {
61  Q_OBJECT
62 public:
63  enum Result {
64  ResultError,
65  ResultSuccess,
66  ResultCancelled
67  };
68 
72  explicit ITIPHandler(QObject *parent = 0);
73 
77  ~ITIPHandler();
78 
88  void processiTIPMessage(const QString &receiver, const QString &iCal, const QString &type);
89 
98  void sendiTIPMessage(KCalCore::iTIPMethod method,
99  const KCalCore::Incidence::Ptr &incidence,
100  QWidget *parentWidget = 0);
101 
107  void publishInformation(const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0);
108 
113  void sendAsICalendar(const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0);
114 
118  void setGroupwareUiDelegate(GroupwareUiDelegate *);
119 
126  void setCalendar(const Akonadi::CalendarBase::Ptr &);
127 
135  void setShowDialogsOnError(bool enable);
136 
140  Akonadi::CalendarBase::Ptr calendar() const;
141 
142 Q_SIGNALS:
150  void iTipMessageProcessed(Akonadi::ITIPHandler::Result result,
151  const QString &errorMessage);
152 
156  void iTipMessageSent(Akonadi::ITIPHandler::Result, const QString &errorMessage);
157 
161  void informationPublished(Akonadi::ITIPHandler::Result, const QString &errorMessage);
162 
166  void sentAsICalendar(Akonadi::ITIPHandler::Result, const QString &errorMessage);
167 
168 private:
169  Q_DISABLE_COPY(ITIPHandler)
170  class Private;
171  Private *const d;
172 };
173 
174 }
175 
176 #endif
Akonadi::ITIPHandler::ResultError
An unexpected error occurred.
Definition: itiphandler.h:64
Akonadi::ITIPHandler::ResultSuccess
The invitation was successfuly handled.
Definition: itiphandler.h:65
Akonadi::ITIPHandler
Handles sending of iTip messages aswell as processing incoming ones.
Definition: itiphandler.h:59
Akonadi::ITIPHandler::Result
Result
Definition: itiphandler.h:63
Akonadi::GroupwareUiDelegate
Ui delegate for editing counter proposals.
Definition: itiphandler.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 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
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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