• Skip to content
  • Skip to link menu
KDE 4.4 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

 DndFactory (Calendar *)
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 *)
Incidence * pasteIncidence (const 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.

Definition at line 62 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 223 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,
const KDateTime::Spec &  timeSpec 
) [static]

Create the calendar that is contained in the mime data.

Definition at line 139 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 151 of file dndfactory.cpp.

Event * DndFactory::createDropEvent ( QDropEvent *  de  ) 

Create Event object from drop event.

Definition at line 177 of file dndfactory.cpp.

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

Create Event object from mime data.

Definition at line 161 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( QDropEvent *  de  ) 

Create Todo object from drop event.

Definition at line 205 of file dndfactory.cpp.

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

Create Todo object from mime data.

Definition at line 188 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 216 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 244 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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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