• 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
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 
57  void cut(const KCalCore::Incidence::List &incidences);
58 
62  void cut(const KCalCore::Incidence::Ptr &incidence);
63 
70  void makeChildsIndependent(const KCalCore::Incidence::Ptr &incidence);
71 
72 public Q_SLOTS:
73  void slotModifyFinished(int changeId, const Akonadi::Item &item,
74  Akonadi::IncidenceChanger::ResultCode resultCode,
75  const QString &errorMessage);
76 
77  void slotDeleteFinished(int changeId, const QVector<Akonadi::Item::Id> &ids,
78  Akonadi::IncidenceChanger::ResultCode result,
79  const QString &errorMessage);
80 
81 public:
82 
83  Akonadi::CalendarBase::Ptr m_calendar;
84  Akonadi::IncidenceChanger *m_changer;
85  KCalUtils::DndFactory *m_dndfactory;
86  int m_numChildsToDelete;
87  bool m_abortCurrentOperation;
88  QSet<int> m_pendingChangeIds;
89  CalendarClipboard *const q;
90 };
91 }
92 
93 #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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 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