libkcal Library API Documentation

KCal::DndFactory Class Reference

This class implements functions to create Drag and Drop objects used for Drag-and-Drop and Copy-and-Paste. vCalendar/iCalendar Drag-and-Drop object factory. More...

#include <dndfactory.h>

Collaboration diagram for KCal::DndFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DndFactory (Calendar *)
ICalDragcreateDrag (Incidence *incidence, QWidget *owner)
TodocreateDropTodo (QDropEvent *de)
EventcreateDrop (QDropEvent *de)
void cutEvent (Event *)
void cutTodo (Todo *)
bool copyEvent (Event *)
bool copyTodo (Todo *)
IncidencepasteIncidence (const QDate &, const QTime *newTime=0)

Detailed Description

This class implements functions to create Drag and Drop objects used for Drag-and-Drop and Copy-and-Paste. vCalendar/iCalendar Drag-and-Drop object factory.

Definition at line 39 of file dndfactory.h.


Member Function Documentation

ICalDrag * DndFactory::createDrag Incidence incidence,
QWidget owner
 

Create a drag object.

Definition at line 46 of file dndfactory.cpp.

References KCal::Incidence::clone(), KCal::Calendar::timeZoneId(), and KCal::IncidenceBase::type().

Todo * DndFactory::createDropTodo QDropEvent de  ) 
 

Create Todo object from drop event.

Definition at line 80 of file dndfactory.cpp.

References KCal::VCalDrag::decode(), KCal::ICalDrag::decode(), and KCal::Calendar::timeZoneId().

Event * DndFactory::createDrop QDropEvent de  ) 
 

Create Event object from drop event.

Definition at line 61 of file dndfactory.cpp.

References KCal::VCalDrag::decode(), KCal::ICalDrag::decode(), and KCal::Calendar::timeZoneId().

void DndFactory::cutEvent Event  ) 
 

cut event to clipboard

Definition at line 100 of file dndfactory.cpp.

References copyEvent(), and KCal::Calendar::deleteEvent().

void DndFactory::cutTodo Todo  ) 
 

cut todo to clipboard

Definition at line 107 of file dndfactory.cpp.

References copyTodo(), and KCal::Calendar::deleteTodo().

bool DndFactory::copyEvent Event  ) 
 

copy event to clipboard

Definition at line 114 of file dndfactory.cpp.

References KCal::Calendar::addEvent(), and KCal::Calendar::timeZoneId().

Referenced by cutEvent().

bool DndFactory::copyTodo Todo  ) 
 

copy todo to clipboard

Definition at line 126 of file dndfactory.cpp.

References KCal::Calendar::timeZoneId().

Referenced by cutTodo().

Incidence * DndFactory::pasteIncidence const QDate ,
const QTime newTime = 0
 

pastes the event or todo and returns a pointer to the new incidence pasted.

Definition at line 138 of file dndfactory.cpp.

References KCal::Calendar::addEvent(), KCal::Calendar::addTodo(), KCal::VCalDrag::decode(), KCal::ICalDrag::decode(), KCal::Todo::dtDue(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Incidence::recreate(), KCal::Todo::setDtDue(), KCal::Event::setDtEnd(), KCal::Incidence::setDtStart(), and KCal::Calendar::timeZoneId().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkcal Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:38:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003