• 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
eventarchiver.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
3  Copyright (c) 2004 David Faure <faure@kde.org>
4  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 #ifndef CALENDARSUPPORT_EVENTARCHIVER_H
25 #define CALENDARSUPPORT_EVENTARCHIVER_H
26 
27 #include "calendarsupport_export.h"
28 
29 #include <Akonadi/Item>
30 #include <Akonadi/Calendar/ETMCalendar>
31 #include <KCalCore/Event>
32 #include <KCalCore/Todo>
33 
34 #include <QObject>
35 
36 class QDate;
37 
38 namespace Akonadi {
39  class IncidenceChanger;
40 }
41 
42 namespace CalendarSupport {
43 
53 class CALENDARSUPPORT_EXPORT EventArchiver : public QObject
54 {
55  Q_OBJECT
56  public:
57  explicit EventArchiver( QObject *parent = 0 );
58  virtual ~EventArchiver();
59 
67  void runOnce( const Akonadi::ETMCalendar::Ptr &calendar, Akonadi::IncidenceChanger *changer,
68  const QDate &limitDate, QWidget *widget );
69 
79  void runAuto( const Akonadi::ETMCalendar::Ptr &calendar, Akonadi::IncidenceChanger *changer,
80  QWidget *widget, bool withGUI );
81 
82  signals:
83  void eventsDeleted();
84 
85  private:
86  void run( const Akonadi::ETMCalendar::Ptr &calendar, Akonadi::IncidenceChanger *changer,
87  const QDate &limitDate, QWidget *widget, bool withGUI, bool errorIfNone );
88 
89  void deleteIncidences( Akonadi::IncidenceChanger *changer,
90  const QDate &limitDate,
91  QWidget *widget,
92  const Akonadi::Item::List &items,
93  bool withGUI );
94 
95  void archiveIncidences( const Akonadi::ETMCalendar::Ptr &calendar,
96  Akonadi::IncidenceChanger *changer,
97  const QDate &limitDate,
98  QWidget *widget,
99  const KCalCore::Incidence::List &incidences,
100  bool withGUI );
101 
109  bool isSubTreeComplete( const Akonadi::ETMCalendar::Ptr &calendar,
110  const KCalCore::Todo::Ptr &todo,
111  const QDate &limitDate, QStringList checkedUids = QStringList() ) const;
112 };
113 
114 }
115 
116 #endif // EVENTARCHIVER_H
QWidget
QObject
calendarsupport_export.h
CalendarSupport::todo
CALENDARSUPPORT_EXPORT KCalCore::Todo::Ptr todo(const Akonadi::Item &item)
returns the todo from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:121
CalendarSupport::EventArchiver
This class handles expiring and archiving of events.
Definition: eventarchiver.h:53
CalendarSupport::incidences
CALENDARSUPPORT_EXPORT KCalCore::Incidence::List incidences(const QMimeData *mimeData, const KDateTime::Spec &timeSpec)
Definition: utils.cpp:374
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