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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
calendarutils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Bertjan Broeksema <broeksema@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  As a special exception, permission is given to link this program
19  with any edition of Qt, and distribute the resulting executable,
20  without including the source code for Qt in the source distribution.
21 */
22 #ifndef CALENDARSUPPORT_CALENDARUTILS_H
23 #define CALENDARSUPPORT_CALENDARUTILS_H
24 
25 #include "calendarsupport_export.h"
26 
27 #include <Akonadi/Collection>
28 #include <Akonadi/Calendar/ETMCalendar>
29 
30 #include <QtCore/QObject>
31 
32 namespace Akonadi {
33  class Item;
34 }
35 
36 namespace CalendarSupport {
37 
38 class CalendarUtilsPrivate;
39 
45 class CALENDARSUPPORT_EXPORT CalendarUtils : public QObject
46 {
47  Q_OBJECT
48  public:
53  explicit CalendarUtils( const Akonadi::ETMCalendar::Ptr &calendar, QObject *parent = 0 );
54 
55  ~CalendarUtils();
56 
60  Akonadi::ETMCalendar::Ptr calendar() const;
61 
68  bool makeIndependent( const Akonadi::Item &item );
69 
75  bool makeChildrenIndependent( const Akonadi::Item &item );
76 
82  void purgeCompletedTodos();
83 
84  Q_SIGNALS:
85  void actionFailed( const Akonadi::Item &item, const QString &msg );
86  void actionFinished( const Akonadi::Item &item );
87 
88  private:
89  CalendarUtilsPrivate *const d_ptr;
90  Q_DECLARE_PRIVATE( CalendarUtils )
91 
92  Q_PRIVATE_SLOT( d_ptr,
93  void handleChangeFinish( int changeId,
94  const Akonadi::Item &item,
95  Akonadi::IncidenceChanger::ResultCode resultCode,
96  const QString &errorString ) )
97 };
98 
99 }
100 
101 #endif // CALENDARUTILS_H
QObject
calendarsupport_export.h
CalendarSupport::CalendarUtils
Some calendar/Incidence related utilitly methods.
Definition: calendarutils.h:45
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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