libkcal

dndfactory.h
1/*
2 This file is part of libkcal.
3
4 Copyright (c) 1998 Preston Brown <pbrown@kde.org>
5 Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
6 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22*/
23
24#ifndef KCAL_DNDFACTORY_H
25#define KCAL_DNDFACTORY_H
26
27#include "libkcal_export.h"
28
29namespace KCal {
30
31class ICalDrag;
32class Event;
33class Todo;
34class Calendar;
35
42class LIBKCAL_EXPORT DndFactory
43{
44 public:
47
51 ICalDrag *createDrag( Incidence *incidence, TQWidget *owner );
52
54 Todo *createDropTodo(TQDropEvent *de);
56 Event *createDrop(TQDropEvent *de);
57
59 void cutIncidence( Incidence * );
61 bool copyIncidence( Incidence * );
62
64 bool cutIncidences( const Incidence::List &incidences );
65
67 bool copyIncidences( const Incidence::List &incidences );
68
70 Incidence *pasteIncidence( const TQDate &, const TQTime *newTime = 0 );
71
74 Incidence::List pasteIncidences( const TQDate &newDate = TQDate(), const TQTime *newTime = 0 );
75
76 private:
77 Calendar *mCalendar;
78
79 class Private;
80 Private *d;
81};
82
83}
84
85#endif
This is the main "calendar" object class.
Definition: calendar.h:171
This class implements functions to create Drag and Drop objects used for Drag-and-Drop and Copy-and-P...
Definition: dndfactory.h:43
This class provides an Event in the sense of RFC2445.
Definition: event.h:33
iCalendar drag&drop class.
Definition: icaldrag.h:36
This class provides the base class common to all calendar components.
Definition: incidence.h:48
This class provides a Todo in the sense of RFC2445.
Definition: todo.h:32
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38