KCalUtils
dndfactory.cpp
Go to the documentation of this file.
74 Incidence::Ptr pasteIncidence(const Incidence::Ptr &incidence, QDateTime newDateTime, DndFactory::PasteFlags pasteOptions)
324Incidence::List DndFactory::pasteIncidences(const QDateTime &newDateTime, PasteFlags pasteOptions)
QDrag * createDrag(QObject *owner)
Create a drag object for the whole calendar.
Definition dndfactory.cpp:154
bool cutIncidences(const KCalendarCore::Incidence::List &incidences)
Cuts a list of incidences to the clipboard.
Definition dndfactory.cpp:277
KCalendarCore::Incidence::Ptr pasteIncidence(const QDateTime &newDateTime=QDateTime(), PasteFlags pasteOptions=PasteFlags())
This function clones the incidence that's in the clipboard and sets the clone's date/time to the spec...
Definition dndfactory.cpp:367
QMimeData * createMimeData()
Create the mime data for the whole calendar.
Definition dndfactory.cpp:145
KCalendarCore::Event::Ptr createDropEvent(const QMimeData *md)
Create Event object from mime data.
Definition dndfactory.cpp:217
KCalendarCore::Todo::Ptr createDropTodo(const QMimeData *md)
Create Todo object from mime data.
Definition dndfactory.cpp:243
bool copyIncidence(const KCalendarCore::Incidence::Ptr &)
Copy the incidence to clipboard/.
Definition dndfactory.cpp:317
void cutIncidence(const KCalendarCore::Incidence::Ptr &)
Cut the incidence to the clipboard.
Definition dndfactory.cpp:270
bool copyIncidences(const KCalendarCore::Incidence::List &incidences)
Copies a list of incidences to the clipboard.
Definition dndfactory.cpp:291
KCalendarCore::Calendar::Ptr createDropCalendar(QDropEvent *de)
Create the calendar that is contained in the drop event's data.
Definition dndfactory.cpp:207
KCalendarCore::Incidence::List pasteIncidences(const QDateTime &newDateTime=QDateTime(), PasteFlags pasteOptions=PasteFlags())
This function clones the incidences that are in the clipboard and sets the clone's date/time to the s...
Definition dndfactory.cpp:324
@ FlagPasteAtOriginalTime
If set, incidences will be pasted at the specified date but will preserve their original time.
Definition dndfactory.h:53
@ FlagTodosPasteAtDtStart
If the cloned incidence is a to-do, the date/time passed to DndFactory::pasteIncidence() will change ...
Definition dndfactory.h:50
DndFactory(const KCalendarCore::Calendar::Ptr &cal)
DndFactoryPrivate class that helps to provide binary compatibility between releases.
Definition dndfactory.cpp:138
QSharedPointer< Calendar > Ptr
QSharedPointer< Event > Ptr
virtual QDateTime dtStart() const
QSharedPointer< Incidence > Ptr
QSharedPointer< MemoryCalendar > Ptr
QSharedPointer< Todo > Ptr
SizeSmallMedium
This file is part of the API for handling calendar data and defines the DndFactory class.
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence(const Akonadi::Item &item)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to iCalendar component cal.
Definition icaldrag.cpp:45
KCALUTILS_EXPORT bool populateMimeData(QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Sets the iCalendar representation as data of the drag object.
Definition icaldrag.cpp:25
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to vCalendar component vcal.
Definition vcaldrag.cpp:34
KCOREADDONS_EXPORT void setMetaData(const MetaDataMap &metaData, QMimeData *mimeData)
const QMimeData * mimeData(Mode mode) const const
void setMimeData(QMimeData *src, Mode mode)
QDateTime toTimeSpec(Qt::TimeSpec spec) const const
QDateTime addDays(qint64 ndays) const const
QDateTime addSecs(qint64 s) const const
QDate date() const const
bool isValid() const const
int offsetFromUtc() const const
qint64 secsTo(const QDateTime &other) const const
void setDate(QDate date)
Qt::TimeSpec timeSpec() const const
QTimeZone timeZone() const const
QDateTime toOffsetFromUtc(int offsetSeconds) const const
QDateTime toTimeZone(const QTimeZone &timeZone) const const
const QMimeData * mimeData() const const
void accept()
QClipboard * clipboard()
bool contains(const Key &key) const const
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
ConstIterator
void append(QList< T > &&value)
const_iterator constBegin() const const
const_iterator constEnd() const const
T & first()
bool isEmpty() const const
TimeZone
QTimeZone systemTimeZone()
bool isValid() const const
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.