• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • DndFactory
Public Member Functions | Static Public Member Functions
KCal::DndFactory Class Reference

#include <dndfactory.h>

List of all members.

Public Member Functions

 DndFactory (Calendar *)
bool copyIncidence (Incidence *)
bool copyIncidences (const Incidence::List &incidences)
QDrag * createDrag (QWidget *owner)
QDrag * createDrag (Incidence *incidence, QWidget *owner)
Calendar * createDropCalendar (QDropEvent *de)
Calendar * createDropCalendar (const QMimeData *md)
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.


Constructor & Destructor Documentation

DndFactory::DndFactory ( Calendar *  cal) [explicit]

Private class that helps to provide binary compatibility between releases.

Definition at line 129 of file dndfactory.cpp.


Member Function Documentation

bool DndFactory::copyIncidence ( Incidence *  selectedInc)

Copy the incidence to clipboard/.

Definition at line 319 of file dndfactory.cpp.

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.

QDrag * DndFactory::createDrag ( QWidget *  owner)

Create a drag object for the whole calendar.

Definition at line 149 of file dndfactory.cpp.

QDrag * DndFactory::createDrag ( Incidence *  incidence,
QWidget *  owner 
)

Create a drag object for a single incidence.

Definition at line 178 of file dndfactory.cpp.

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.

Calendar * DndFactory::createDropCalendar ( const QMimeData *  md)

Create the calendar that is contained in the mime data.

Definition at line 192 of file dndfactory.cpp.

Calendar * DndFactory::createDropCalendar ( const QMimeData *  md,
const KDateTime::Spec &  timeSpec 
) [static]

Create the calendar that is contained in the mime data.

Definition at line 197 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( const QMimeData *  md)

Create Event object from mime data.

Definition at line 219 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( QDropEvent *  de)

Create Event object from drop event.

Definition at line 235 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( const QMimeData *  md)

Create Todo object from mime data.

Definition at line 246 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( QDropEvent *  de)

Create Todo object from drop event.

Definition at line 263 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData ( )

Create the mime data for the whole calendar.

Definition at line 139 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData ( Incidence *  incidence)

Create the mime data for a single incidence.

Definition at line 157 of file dndfactory.cpp.

void DndFactory::cutIncidence ( Incidence *  selectedInc)

Cut the incidence to the clipboard.

Definition at line 274 of file dndfactory.cpp.

bool DndFactory::cutIncidences ( const Incidence::List &  incidences)

Cuts a list of incidences to the clipboard.

Since:
4.5

Definition at line 281 of file dndfactory.cpp.

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.

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:
newDateThe new date where the incidences shall be pasted.
newTimeThe 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:
  • dndfactory.h
  • dndfactory.cpp

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal