KCal::DndFactory Class Reference

vCalendar/iCalendar Drag-and-Drop object factory. More...

#include <dndfactory.h>

List of all members.

Public Member Functions

 DndFactory (Calendar *)
bool copyIncidence (Incidence *)
QDrag * createDrag (Incidence *incidence, QWidget *owner)
QDrag * createDrag (QWidget *owner)
CalendarcreateDropCalendar (const QMimeData *md)
CalendarcreateDropCalendar (QDropEvent *de)
EventcreateDropEvent (QDropEvent *de)
EventcreateDropEvent (const QMimeData *md)
TodocreateDropTodo (QDropEvent *de)
TodocreateDropTodo (const QMimeData *md)
QMimeData * createMimeData (Incidence *incidence)
QMimeData * createMimeData ()
void cutIncidence (Incidence *)
IncidencepasteIncidence (const QDate &, const QTime *newTime=0)

Static Public Member Functions

static CalendarcreateDropCalendar (const QMimeData *md, const KDateTime::Spec &timeSpec)

Detailed Description

vCalendar/iCalendar Drag-and-Drop object factory.

This class implements functions to create Drag and Drop objects used for Drag-and-Drop and Copy-and-Paste.

Definition at line 62 of file dndfactory.h.


Constructor & Destructor Documentation

DndFactory::DndFactory ( Calendar cal  )  [explicit]

Private class that helps to provide binary compatibility between releases.

For internal use only.

Definition at line 71 of file dndfactory.cpp.


Member Function Documentation

bool DndFactory::copyIncidence ( Incidence selectedInc  ) 

Copy the incidence to clipboard/.

Definition at line 223 of file dndfactory.cpp.

QDrag * DndFactory::createDrag ( Incidence incidence,
QWidget *  owner 
)

Create a drag object for a single incidence.

Definition at line 120 of file dndfactory.cpp.

QDrag * DndFactory::createDrag ( QWidget *  owner  ) 

Create a drag object for the whole calendar.

Definition at line 91 of file dndfactory.cpp.

Calendar * DndFactory::createDropCalendar ( const QMimeData *  md,
const KDateTime::Spec &  timeSpec 
) [static]

Create the calendar that is contained in the mime data.

Definition at line 139 of file dndfactory.cpp.

Calendar * DndFactory::createDropCalendar ( const QMimeData *  md  ) 

Create the calendar that is contained in the mime data.

Definition at line 134 of file dndfactory.cpp.

Calendar * DndFactory::createDropCalendar ( QDropEvent *  de  ) 

Create the calendar that is contained in the drop event's data.

Definition at line 151 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( QDropEvent *  de  ) 

Create Event object from drop event.

Definition at line 177 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( const QMimeData *  md  ) 

Create Event object from mime data.

Definition at line 161 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( QDropEvent *  de  ) 

Create Todo object from drop event.

Definition at line 205 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( const QMimeData *  md  ) 

Create Todo object from mime data.

Definition at line 188 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData ( Incidence incidence  ) 

Create the mime data for a single incidence.

Definition at line 99 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData (  ) 

Create the mime data for the whole calendar.

Definition at line 81 of file dndfactory.cpp.

void DndFactory::cutIncidence ( Incidence selectedInc  ) 

Cut the incidence to the clipboard.

Definition at line 216 of file dndfactory.cpp.

Incidence * DndFactory::pasteIncidence ( const QDate &  newDate,
const QTime *  newTime = 0 
)

Paste the event or todo and return a pointer to the new incidence pasted.

Definition at line 244 of file dndfactory.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys