KCalUtils
dndfactory.cpp
Go to the documentation of this file.
74 Incidence::Ptr pasteIncidence(const Incidence::Ptr &incidence, QDateTime newDateTime, DndFactory::PasteFlags pasteOptions)
324 Incidence::List DndFactory::pasteIncidences(const QDateTime &newDateTime, PasteFlags pasteOptions)
367 Incidence::Ptr DndFactory::pasteIncidence(const QDateTime &newDateTime, PasteFlags pasteOptions)
void append(const T &value)
QDateTime addSecs(qint64 s) const const
bool isEmpty() const const
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
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to vCalendar component vcal.
Definition: vcaldrag.cpp:34
QDateTime toOffsetFromUtc(int offsetSeconds) const const
QTimeZone timeZone() const const
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
TimeZone
KCOREADDONS_EXPORT void setMetaData(const MetaDataMap &metaData, QMimeData *mimeData)
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to iCalendar component cal.
Definition: icaldrag.cpp:45
QDateTime addDays(qint64 ndays) const const
QIcon fromTheme(const QString &name)
void cutIncidence(const KCalendarCore::Incidence::Ptr &)
Cut the incidence to the clipboard.
Definition: dndfactory.cpp:270
KCalendarCore::Event::Ptr createDropEvent(const QMimeData *md)
Create Event object from mime data.
Definition: dndfactory.cpp:217
QVector::const_iterator constEnd() const const
QList::const_iterator constBegin() const const
const QMimeData * mimeData() const const
T & first()
SizeSmallMedium
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence(const Akonadi::Item &item)
QDrag * createDrag(QObject *owner)
Create a drag object for the whole calendar.
Definition: dndfactory.cpp:154
void setDate(const QDate &date)
bool isValid() const const
QDateTime toTimeZone(const QTimeZone &timeZone) const const
QClipboard * clipboard()
QSharedPointer< Incidence > Ptr
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
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
bool copyIncidences(const KCalendarCore::Incidence::List &incidences)
Copies a list of incidences to the clipboard.
Definition: dndfactory.cpp:291
const QMimeData * mimeData(QClipboard::Mode mode) const const
QList::const_iterator constEnd() const const
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) const const
int offsetFromUtc() const const
Qt::TimeSpec timeSpec() const const
QTimeZone systemTimeZone()
QDate date() const const
QMimeData * createMimeData()
Create the mime data for the whole calendar.
Definition: dndfactory.cpp:145
bool copyIncidence(const KCalendarCore::Incidence::Ptr &)
Copy the incidence to clipboard/.
Definition: dndfactory.cpp:317
bool isValid() const const
void setMimeData(QMimeData *src, QClipboard::Mode mode)
TypeJournal
bool cutIncidences(const KCalendarCore::Incidence::List &incidences)
Cuts a list of incidences to the clipboard.
Definition: dndfactory.cpp:277
QVector::const_iterator constBegin() const const
bool contains(const Key &key) const const
KCalendarCore::Calendar::Ptr createDropCalendar(QDropEvent *de)
Create the calendar that is contained in the drop event's data.
Definition: dndfactory.cpp:207
QDateTime toTimeSpec(Qt::TimeSpec spec) const const
KCalendarCore::Todo::Ptr createDropTodo(const QMimeData *md)
Create Todo object from mime data.
Definition: dndfactory.cpp:243
void accept()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:05:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:05:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.