KCalUtils Library
dndfactory.cpp
Go to the documentation of this file.
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalCore::MemoryCalendar::Ptr &cal)
Decode drag&drop object to vCalendar component vcal.
Definition: vcaldrag.cpp:54
const QMimeData * mimeData() const
const QMimeData * mimeData(Mode mode) const
void setMimeData(QMimeData *data)
KCalCore::Todo::Ptr createDropTodo(const QMimeData *md)
Create Todo object from mime data.
Definition: dndfactory.cpp:250
void cutIncidence(const KCalCore::Incidence::Ptr &)
Cut the incidence to the clipboard.
Definition: dndfactory.cpp:277
void setPixmap(const QPixmap &pixmap)
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalCore::MemoryCalendar::Ptr &cal)
Decode drag&drop object to iCalendar component cal.
Definition: icaldrag.cpp:54
T & first()
KCalCore::MemoryCalendar::Ptr createDropCalendar(QDropEvent *de)
Create the calendar that is contained in the drop event's data.
Definition: dndfactory.cpp:214
KCalCore::Event::Ptr createDropEvent(const QMimeData *md)
Create Event object from mime data.
Definition: dndfactory.cpp:224
QClipboard * clipboard()
void setMimeData(QMimeData *src, Mode mode)
KCALUTILS_EXPORT bool populateMimeData(QMimeData *e, const KCalCore::MemoryCalendar::Ptr &cal)
Sets the iCalendar representation as data of the drag object.
Definition: icaldrag.cpp:38
This file is part of the API for handling calendar data and defines the DndFactory class...
bool setDate(int year, int month, int day)
QDrag * createDrag(QWidget *owner)
Create a drag object for the whole calendar.
Definition: dndfactory.cpp:156
bool isEmpty() const
bool copyIncidence(const KCalCore::Incidence::Ptr &)
Copy the incidence to clipboard/.
Definition: dndfactory.cpp:323
KCalCore::Incidence::Ptr pasteIncidence(const KDateTime &newDateTime=KDateTime(), const QFlags< PasteFlag > &pasteOptions=QFlags< PasteFlag >())
This function clones the incidence that's in the clipboard and sets the clone's date/time to the spec...
Definition: dndfactory.cpp:373
QMimeData * createMimeData()
Create the mime data for the whole calendar.
Definition: dndfactory.cpp:146
bool contains(const Key &key) const
KCALUTILS_EXPORT bool populateMimeData(QMimeData *e, const KCalCore::MemoryCalendar::Ptr &cal)
Sets the vCalendar representation as data of the drag object.
Definition: vcaldrag.cpp:38
bool cutIncidences(const KCalCore::Incidence::List &incidences)
Cuts a list of incidences to the clipboard.
Definition: dndfactory.cpp:284
bool copyIncidences(const KCalCore::Incidence::List &incidences)
Copies a list of incidences to the clipboard.
Definition: dndfactory.cpp:297
void accept(bool accept)
KCalCore::Incidence::List pasteIncidences(const KDateTime &newDateTime=KDateTime(), const QFlags< PasteFlag > &pasteOptions=QFlags< PasteFlag >())
This function clones the incidences that are in the clipboard and sets the clone's date/time to the s...
Definition: dndfactory.cpp:330
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.