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

akonadi

  • akonadi
  • calendar
invitationhandler.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_INVITATION_HANDLER_H
27 #define _AKONADI_CALENDAR_INVITATION_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 //TODO rename this class to reflect it's functionality
40 
41 namespace Akonadi {
42 
43 class AKONADI_CALENDAR_EXPORT GroupwareUiDelegate
44 {
45  public:
46  virtual ~GroupwareUiDelegate();
47  virtual void requestIncidenceEditor( const Akonadi::Item &item ) = 0;
48 
49  virtual void setCalendar( const Akonadi::ETMCalendar::Ptr &calendar ) = 0;
50  virtual void createCalendar() = 0;
51 };
52 
53 class AKONADI_CALENDAR_EXPORT InvitationHandler : public QObject
54 {
55  Q_OBJECT
56 public:
57  enum Result {
58  ResultError,
59  ResultSuccess
60  };
61 
62  explicit InvitationHandler( QObject *parent = 0 );
63  ~InvitationHandler();
64 
72  void processiTIPMessage( const QString &receiver, const QString &iCal, const QString &type );
73 
82  void sendiTIPMessage( KCalCore::iTIPMethod method,
83  const KCalCore::Incidence::Ptr &incidence,
84  QWidget *parentWidget = 0 );
85 
86  void publishInformation( const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0 );
87 
88  void sendAsICalendar( const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget = 0 );
89 
90  void setGroupwareUiDelegate( GroupwareUiDelegate * );
91 
92 Q_SIGNALS:
93  void iTipMessageProcessed( Akonadi::InvitationHandler::Result result,
94  const QString &errorMessage );
95 
96 
100  void iTipMessageSent( Akonadi::InvitationHandler::Result, const QString &errorMessage );
101 
102  void informationPublished( Akonadi::InvitationHandler::Result, const QString &errorMessage );
103 
104  void sentAsICalendar( Akonadi::InvitationHandler::Result, const QString &errorMessage );
105 
106 private:
107  Q_DISABLE_COPY( InvitationHandler )
108  class Private;
109  Private *const d;
110 };
111 
112 }
113 
114 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:37 by doxygen 1.8.3.1 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.10.5 API Reference

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