33 #ifndef KCALUTILS_DNDFACTORY_H
34 #define KCALUTILS_DNDFACTORY_H
36 #include "kcalutils_export.h"
43 #include <KDE/KDateTime>
63 FlagTodosPasteAtDtStart = 1,
66 FlagPasteAtOriginalTime = 2
70 Q_DECLARE_FLAGS(PasteFlags, PasteFlag)
72 explicit
DndFactory(const KCalCore::MemoryCalendar::Ptr &cal);
79 KCalCore::MemoryCalendar::Ptr createDropCalendar(
QDropEvent *de);
84 KCalCore::MemoryCalendar::Ptr createDropCalendar(const
QMimeData *md);
89 static KCalCore::MemoryCalendar::Ptr createDropCalendar(const
QMimeData *md,
90 const KDateTime::Spec &timeSpec);
105 QMimeData *createMimeData(const KCalCore::Incidence::Ptr &incidence);
110 QDrag *createDrag(const KCalCore::Incidence::Ptr &incidence,
QWidget *owner);
115 KCalCore::Todo::Ptr createDropTodo(const
QMimeData *md);
120 KCalCore::Todo::Ptr createDropTodo(
QDropEvent *de);
125 KCalCore::Event::Ptr createDropEvent(const
QMimeData *md);
130 KCalCore::Event::Ptr createDropEvent(
QDropEvent *de);
135 void cutIncidence(const KCalCore::Incidence::Ptr &);
140 bool copyIncidence(const KCalCore::Incidence::Ptr &);
145 bool cutIncidences(const KCalCore::Incidence::List &incidences);
150 bool copyIncidences(const KCalCore::Incidence::List &incidences);
158 KCalCore::Incidence::List pasteIncidences(
159 const KDateTime &newDateTime = KDateTime(),
160 const
QFlags<PasteFlag> &pasteOptions =
QFlags<PasteFlag>());
176 KCalCore::Incidence::Ptr pasteIncidence(
177 const KDateTime &newDateTime = KDateTime(),
178 const
QFlags<PasteFlag> &pasteOptions =
QFlags<PasteFlag>());
vCalendar/iCalendar Drag-and-Drop object factory.