KCal Library
dndfactory.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00033 #ifndef KCAL_DNDFACTORY_H
00034 #define KCAL_DNDFACTORY_H
00035
00036 #include "kcal_export.h"
00037
00038 class QDate;
00039 class QTime;
00040 class QDrag;
00041 class QWidget;
00042 class QDropEvent;
00043 class QMimeData;
00044
00045 namespace KCal {
00046
00047 class Event;
00048 class Todo;
00049 class Incidence;
00050 class Calendar;
00051
00059 class KCAL_EXPORT DndFactory
00060 {
00061 public:
00062 explicit DndFactory( Calendar * );
00063
00064 ~DndFactory();
00065
00069 Calendar *createDropCalendar( QDropEvent *de );
00070
00074 Calendar *createDropCalendar( const QMimeData *md );
00075
00079 QDrag *createDrag( QWidget *owner );
00080
00084 QDrag *createDrag( Incidence *incidence, QWidget *owner );
00085
00087 Todo *createDropTodo( QDropEvent *de );
00088
00090 Event *createDropEvent( QDropEvent *de );
00091
00093 void cutIncidence( Incidence * );
00094
00096 bool copyIncidence( Incidence * );
00097
00099 Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
00100
00101 private:
00102
00103 Q_DISABLE_COPY( DndFactory )
00104 class Private;
00105 Private *const d;
00106
00107 };
00108
00109 }
00110
00111 #endif