• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • DndFactory
Public Member Functions | Static Public Member Functions | List of all members
KCal::DndFactory Class Reference

#include <dndfactory.h>

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.

Definition at line 63 of file dndfactory.h.

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal