KCal Library
KCal::DndFactory Class Reference
vCalendar/iCalendar Drag-and-Drop object factory. More...
#include <dndfactory.h>
Public Member Functions | |
| DndFactory (Calendar *) | |
| bool | copyIncidence (Incidence *) |
| QDrag * | createDrag (Incidence *incidence, QWidget *owner) |
| QDrag * | createDrag (QWidget *owner) |
| Calendar * | createDropCalendar (const QMimeData *md) |
| Calendar * | createDropCalendar (QDropEvent *de) |
| Event * | createDropEvent (QDropEvent *de) |
| Event * | createDropEvent (const QMimeData *md) |
| Todo * | createDropTodo (QDropEvent *de) |
| Todo * | createDropTodo (const QMimeData *md) |
| QMimeData * | createMimeData (Incidence *incidence) |
| QMimeData * | createMimeData () |
| void | cutIncidence (Incidence *) |
| Incidence * | pasteIncidence (const QDate &, const QTime *newTime=0) |
Static Public Member Functions | |
| static Calendar * | createDropCalendar (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.
Create a drag object for a single incidence.
Definition at line 120 of file dndfactory.cpp.
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.
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.
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.
Create Todo object from mime data.
Definition at line 188 of file dndfactory.cpp.
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.
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 4.4 API Reference