libkcal
dndfactory.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KCAL_DNDFACTORY_H
00025 #define KCAL_DNDFACTORY_H
00026
00027 #include "libkcal_export.h"
00028
00029 namespace KCal {
00030
00031 class ICalDrag;
00032 class Event;
00033 class Todo;
00034 class Calendar;
00035
00042 class LIBKCAL_EXPORT DndFactory
00043 {
00044 public:
00045 DndFactory( Calendar * );
00046 ~DndFactory();
00047
00051 ICalDrag *createDrag( Incidence *incidence, QWidget *owner );
00052
00054 Todo *createDropTodo(QDropEvent *de);
00056 Event *createDrop(QDropEvent *de);
00057
00061 KCal::Incidence::List createDropIncidences(QDropEvent *de);
00062
00064 void cutIncidence( Incidence * );
00066 bool copyIncidence( Incidence * );
00067
00069 bool cutIncidences( const Incidence::List &incidences );
00070
00072 bool copyIncidences( const Incidence::List &incidences );
00073
00075 Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
00076
00079 Incidence::List pasteIncidences( const QDate &newDate = QDate(), const QTime *newTime = 0 );
00080
00081 private:
00082 Calendar *mCalendar;
00083
00084 class Private;
00085 Private *d;
00086 };
00087
00088 }
00089
00090 #endif
|