KCal Library
#include <dndfactory.h>
Public Member Functions | |
DndFactory (Calendar *) | |
bool | copyIncidence (Incidence *) |
bool | copyIncidences (const Incidence::List &incidences) |
QDrag * | createDrag (Incidence *incidence, QWidget *owner) |
QDrag * | createDrag (QWidget *owner) |
Calendar * | createDropCalendar (const QMimeData *md) |
Calendar * | createDropCalendar (QDropEvent *de) |
Event * | createDropEvent (const QMimeData *md) |
Event * | createDropEvent (QDropEvent *de) |
Todo * | createDropTodo (const QMimeData *md) |
Todo * | createDropTodo (QDropEvent *de) |
QMimeData * | createMimeData () |
QMimeData * | createMimeData (Incidence *incidence) |
void | cutIncidence (Incidence *) |
bool | cutIncidences (const Incidence::List &incidences) |
Incidence * | pasteIncidence (const QDate &, const QTime *newTime=0) |
Incidence::List | pasteIncidences (const QDate &newDate=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 63 of file dndfactory.h.
Constructor & Destructor Documentation
◆ DndFactory()
|
explicit |
Private class that helps to provide binary compatibility between releases.
Definition at line 129 of file dndfactory.cpp.
◆ ~DndFactory()
DndFactory::~DndFactory | ( | ) |
Definition at line 134 of file dndfactory.cpp.
Member Function Documentation
◆ copyIncidence()
bool DndFactory::copyIncidence | ( | Incidence * | selectedInc | ) |
Copy the incidence to clipboard/.
Definition at line 319 of file dndfactory.cpp.
◆ copyIncidences()
bool DndFactory::copyIncidences | ( | const Incidence::List & | incidences | ) |
Copies a list of incidences
to the clipboard.
- Since
- 4.5
Definition at line 294 of file dndfactory.cpp.
◆ createDrag() [1/2]
QDrag * DndFactory::createDrag | ( | Incidence * | incidence, |
QWidget * | owner ) |
Create a drag object for a single incidence.
Definition at line 178 of file dndfactory.cpp.
◆ createDrag() [2/2]
QDrag * DndFactory::createDrag | ( | QWidget * | owner | ) |
Create a drag object for the whole calendar.
Definition at line 149 of file dndfactory.cpp.
◆ createDropCalendar() [1/3]
Calendar * DndFactory::createDropCalendar | ( | const QMimeData * | md | ) |
Create the calendar that is contained in the mime data.
Definition at line 192 of file dndfactory.cpp.
◆ createDropCalendar() [2/3]
|
static |
Create the calendar that is contained in the mime data.
Definition at line 197 of file dndfactory.cpp.
◆ createDropCalendar() [3/3]
Calendar * DndFactory::createDropCalendar | ( | QDropEvent * | de | ) |
Create the calendar that is contained in the drop event's data.
Definition at line 209 of file dndfactory.cpp.
◆ createDropEvent() [1/2]
Event * DndFactory::createDropEvent | ( | const QMimeData * | md | ) |
Create Event object from mime data.
Definition at line 219 of file dndfactory.cpp.
◆ createDropEvent() [2/2]
Event * DndFactory::createDropEvent | ( | QDropEvent * | de | ) |
Create Event object from drop event.
Definition at line 235 of file dndfactory.cpp.
◆ createDropTodo() [1/2]
Todo * DndFactory::createDropTodo | ( | const QMimeData * | md | ) |
Create Todo object from mime data.
Definition at line 246 of file dndfactory.cpp.
◆ createDropTodo() [2/2]
Todo * DndFactory::createDropTodo | ( | QDropEvent * | de | ) |
Create Todo object from drop event.
Definition at line 263 of file dndfactory.cpp.
◆ createMimeData() [1/2]
QMimeData * DndFactory::createMimeData | ( | ) |
Create the mime data for the whole calendar.
Definition at line 139 of file dndfactory.cpp.
◆ createMimeData() [2/2]
QMimeData * DndFactory::createMimeData | ( | Incidence * | incidence | ) |
Create the mime data for a single incidence.
Definition at line 157 of file dndfactory.cpp.
◆ cutIncidence()
void DndFactory::cutIncidence | ( | Incidence * | selectedInc | ) |
Cut the incidence to the clipboard.
Definition at line 274 of file dndfactory.cpp.
◆ cutIncidences()
bool DndFactory::cutIncidences | ( | const Incidence::List & | incidences | ) |
◆ pasteIncidence()
Incidence * DndFactory::pasteIncidence | ( | const QDate & | newDate, |
const QTime * | newTime = 0 ) |
Pastes the event or todo and return a pointer to the new incidence pasted.
Definition at line 370 of file dndfactory.cpp.
◆ pasteIncidences()
Incidence::List DndFactory::pasteIncidences | ( | const QDate & | newDate = QDate(), |
const QTime * | newTime = 0 ) |
Pastes and returns the incidences from the clipboard If no date and time are given, the incidences will be pasted at their original date/time.
- Parameters
-
newDate The new date where the incidences shall be pasted. newTime The new time where the incidences shall be pasted.
- Since
- 4.5
Definition at line 326 of file dndfactory.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.