• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

KCal::DndFactory

KCal::DndFactory Class Reference

vCalendar/iCalendar Drag-and-Drop object factory. More...

#include <dndfactory.h>

List of all members.


Public Member Functions

bool copyIncidence (Incidence *)
QDrag * createDrag (Incidence *incidence, QWidget *owner)
QDrag * createDrag (QWidget *owner)
Calendar * createDropCalendar (const QMimeData *md)
Calendar * createDropCalendar (QDropEvent *de)
Event * createDropEvent (QDropEvent *de)
Event * createDropEvent (const QMimeData *md)
Todo * createDropTodo (QDropEvent *de)
Todo * createDropTodo (const QMimeData *md)
QMimeData * createMimeData (Incidence *incidence)
QMimeData * createMimeData ()
void cutIncidence (Incidence *)
 DndFactory (Calendar *)
Incidence * pasteIncidence (const QDate &, const QTime *newTime=0)

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.

Definition at line 60 of file dndfactory.h.


Constructor & Destructor Documentation

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

Private class that helps to provide binary compatibility between releases.

For internal use only.

Definition at line 71 of file dndfactory.cpp.


Member Function Documentation

bool DndFactory::copyIncidence ( Incidence *  selectedInc  ) 

Copy the incidence to clipboard/.

Definition at line 217 of file dndfactory.cpp.

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

Create a drag object for a single incidence.

Definition at line 120 of file dndfactory.cpp.

QDrag * DndFactory::createDrag ( QWidget *  owner  ) 

Create a drag object for the whole calendar.

Definition at line 91 of file dndfactory.cpp.

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

Create the calendar that is contained in the mime data.

Definition at line 134 of file dndfactory.cpp.

Calendar * DndFactory::createDropCalendar ( QDropEvent *  de  ) 

Create the calendar that is contained in the drop event's data.

Definition at line 145 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( QDropEvent *  de  ) 

Create Event object from drop event.

Definition at line 171 of file dndfactory.cpp.

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

Create Event object from mime data.

Definition at line 155 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( QDropEvent *  de  ) 

Create Todo object from drop event.

Definition at line 199 of file dndfactory.cpp.

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

Create Todo object from mime data.

Definition at line 182 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData ( Incidence *  incidence  ) 

Create the mime data for a single incidence.

Definition at line 99 of file dndfactory.cpp.

QMimeData * DndFactory::createMimeData (  ) 

Create the mime data for the whole calendar.

Definition at line 81 of file dndfactory.cpp.

void DndFactory::cutIncidence ( Incidence *  selectedInc  ) 

Cut the incidence to the clipboard.

Definition at line 210 of file dndfactory.cpp.

Incidence * DndFactory::pasteIncidence ( const QDate &  newDate,
const QTime *  newTime = 0 
)

Paste the event or todo and return a pointer to the new incidence pasted.

Definition at line 238 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
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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