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

akonadi

  • akonadi
  • calendar
calendarclipboard_p.h
1 /*
2  Copyright (C) 2012 Sérgio Martins <iamsergio@gmail.com>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef _AKONADI_CALENDAR_CLIPBOARD_P_H
21 #define _AKONADI_CALENDAR_CLIPBOARD_P_H
22 
23 #include "calendarclipboard.h"
24 #include "incidencechanger.h"
25 #include "calendarbase.h"
26 #include <kcalcore/incidence.h>
27 #include <QVector>
28 #include <QSet>
29 
30 namespace KCalUtils {
31  class DndFactory;
32 }
33 
34 namespace Akonadi {
35 
36 class IncidenceChanger;
37 
38 class CalendarClipboard::Private : public QObject {
39  Q_OBJECT
40 public:
41  Private( const Akonadi::CalendarBase::Ptr &,
42  Akonadi::IncidenceChanger *changer,
43  CalendarClipboard *qq );
44 
45  ~Private();
46 
51  void getIncidenceHierarchy( const KCalCore::Incidence::Ptr &incidence, QStringList &uids );
52 
53 
58  void cut( const KCalCore::Incidence::List &incidences );
59 
63  void cut( const KCalCore::Incidence::Ptr &incidence );
64 
71  void makeChildsIndependent( const KCalCore::Incidence::Ptr &incidence );
72 
73 public Q_SLOTS:
74  void slotModifyFinished( int changeId, const Akonadi::Item &item,
75  Akonadi::IncidenceChanger::ResultCode resultCode,
76  const QString &errorMessage );
77 
78  void slotDeleteFinished( int changeId, const QVector<Akonadi::Item::Id> &ids,
79  Akonadi::IncidenceChanger::ResultCode result,
80  const QString &errorMessage );
81 
82 public:
83 
84  Akonadi::CalendarBase::Ptr m_calendar;
85  Akonadi::IncidenceChanger *m_changer;
86  KCalUtils::DndFactory *m_dndfactory;
87  int m_numChildsToDelete;
88  bool m_abortCurrentOperation;
89  QSet<int> m_pendingChangeIds;
90  CalendarClipboard *const q;
91 };
92 }
93 
94 #endif
Akonadi::CalendarClipboard::CalendarClipboard
CalendarClipboard(const Akonadi::CalendarBase::Ptr &calendar, Akonadi::IncidenceChanger *changer=0, QObject *parent=0)
Constructs a new CalendarClipboard.
Definition: calendarclipboard.cpp:182
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:16 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