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

korganizer

eventarchiver.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2004 David Faure <faure@kde.org>
00006   Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007 
00008   This program is free software; you can redistribute it and/or modify
00009   it under the terms of the GNU General Public License as published by
00010   the Free Software Foundation; either version 2 of the License, or
00011   (at your option) any later version.
00012 
00013   This program is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016   GNU General Public License for more details.
00017 
00018   You should have received a copy of the GNU General Public License along
00019   with this program; if not, write to the Free Software Foundation, Inc.,
00020   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00021 
00022   As a special exception, permission is given to link this program
00023   with any edition of Qt, and distribute the resulting executable,
00024   without including the source code for Qt in the source distribution.
00025 */
00026 #ifndef EVENTARCHIVER_H
00027 #define EVENTARCHIVER_H
00028 
00029 #include <kcal/event.h>
00030 
00031 #include <QObject>
00032 
00033 class QDate;
00034 
00035 namespace KCal {
00036   class Calendar;
00037   class Event;
00038 }
00039 using namespace KCal;
00040 
00050 class EventArchiver : public QObject
00051 {
00052   Q_OBJECT
00053   public:
00054     explicit EventArchiver( QObject *parent = 0 );
00055     virtual ~EventArchiver();
00056 
00064     void runOnce( Calendar *calendar, const QDate &limitDate, QWidget *widget );
00065 
00075     void runAuto( Calendar *calendar, QWidget *widget, bool withGUI );
00076 
00077   signals:
00078     void eventsDeleted();
00079 
00080   private:
00081     void run( Calendar *calendar, const QDate &limitDate, QWidget *widget,
00082               bool withGUI, bool errorIfNone );
00083 
00084     void deleteIncidences( Calendar *calendar, const QDate &limitDate, QWidget *widget,
00085                            const Incidence::List &incidences, bool withGUI );
00086     void archiveIncidences( Calendar *calendar, const QDate &limitDate, QWidget *widget,
00087                             const Incidence::List &incidences, bool withGUI );
00088 };
00089 
00090 #endif /* EVENTARCHIVER_H */

korganizer

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal