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

akonadi

  • 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  };
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 
130  Akonadi::CalendarBase::Ptr calendar() const;
131 
132 Q_SIGNALS:
140  void iTipMessageProcessed( Akonadi::ITIPHandler::Result result,
141  const QString &errorMessage );
142 
146  void iTipMessageSent( Akonadi::ITIPHandler::Result, const QString &errorMessage );
147 
151  void informationPublished( Akonadi::ITIPHandler::Result, const QString &errorMessage );
152 
156  void sentAsICalendar( Akonadi::ITIPHandler::Result, const QString &errorMessage );
157 
158 private:
159  Q_DISABLE_COPY( ITIPHandler )
160  class Private;
161  Private *const d;
162 };
163 
164 }
165 
166 #endif
Akonadi::ITIPHandler::ResultError
An unexpected error occurred.
Definition: itiphandler.h:64
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-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