KCal Library
dndfactory.cpp
Go to the documentation of this file.
197 Calendar *DndFactory::createDropCalendar( const QMimeData *md, const KDateTime::Spec &timeSpec )
Incidence * pasteIncidence(const QDate &, const QTime *newTime=0)
Pastes the event or todo and return a pointer to the new incidence pasted.
Definition: dndfactory.cpp:370
This file is part of the API for handling calendar data and defines the CalendarLocal class...
QString relatedToUid() const
Returns a UID string for the incidence that is related to this one.
Definition: incidence.cpp:492
Incidence::List 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.
Definition: dndfactory.cpp:326
Event * createDropEvent(const QMimeData *md)
Create Event object from mime data.
Definition: dndfactory.cpp:219
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition: incidencebase.cpp:248
QMimeData * createMimeData()
Create the mime data for the whole calendar.
Definition: dndfactory.cpp:139
QString uid() const
Returns the unique id (uid) for the incidence.
Definition: incidencebase.cpp:184
bool copyIncidences(const Incidence::List &incidences)
Copies a list of incidences to the clipboard.
Definition: dndfactory.cpp:294
This class provides a calendar stored as a local file.
Definition: calendarlocal.h:43
bool cutIncidences(const Incidence::List &incidences)
Cuts a list of incidences to the clipboard.
Definition: dndfactory.cpp:281
void setRelatedToUid(const QString &uid)
Relates another incidence to this one, by UID.
Definition: incidence.cpp:483
DndFactory(Calendar *)
Private class that helps to provide binary compatibility between releases.
Definition: dndfactory.cpp:129
virtual QByteArray type() const =0
Prints the type of Incidence as a string.
KCAL_DEPRECATED_EXPORT bool fromMimeData(const QMimeData *e, Calendar *cal)
Decode drag&drop object to iCalendar component cal.
Definition: icaldrag.cpp:55
This file is part of the API for handling calendar data and defines the Calendar class.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
KCAL_DEPRECATED_EXPORT bool fromMimeData(const QMimeData *e, Calendar *cal)
Decode drag&drop object to vCalendar component vcal.
Definition: vcaldrag.cpp:50
void setRelatedTo(Incidence *incidence)
Relates another incidence to this one.
Definition: incidence.cpp:497
This file is part of the API for handling calendar data and defines the DndFactory class...
virtual bool addIncidence(Incidence *incidence)
Inserts an Incidence into the calendar.
Definition: calendar.cpp:573
virtual Todo::List todos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Returns a sorted, filtered list of all Todos for this Calendar.
Definition: calendar.cpp:856
Calendar * createDropCalendar(QDropEvent *de)
Create the calendar that is contained in the drop event's data.
Definition: dndfactory.cpp:209
virtual Event::List events(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Returns a sorted, filtered list of all Events for this Calendar.
Definition: calendar.cpp:565
Todo * createDropTodo(const QMimeData *md)
Create Todo object from mime data.
Definition: dndfactory.cpp:246
KCAL_DEPRECATED_EXPORT bool populateMimeData(QMimeData *e, Calendar *cal)
Sets the iCalendar representation as data of the drag object.
Definition: icaldrag.cpp:39
virtual Incidence::List incidences()
Returns a filtered list of all Incidences for this Calendar.
Definition: calendar.cpp:282
KCAL_DEPRECATED_EXPORT bool populateMimeData(QMimeData *e, Calendar *cal)
Sets the vCalendar representation as data of the drag object.
Definition: vcaldrag.cpp:35
QDrag * createDrag(QWidget *owner)
Create a drag object for the whole calendar.
Definition: dndfactory.cpp:149
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition: incidence.cpp:349
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.