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 *)
ICalDrag * createDrag (Incidence *incidence, QWidget *owner)
Todo * createDropTodo (QDropEvent *de)
Event * createDrop (QDropEvent *de)
void cutEvent (Event *)
void cutTodo (Todo *)
bool copyEvent (Event *)
bool copyTodo (Todo *)
Incidence * pasteIncidence (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::Calendar::addIncidence(), 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(), KCal::Calendar::timeZoneId(), and KCal::Calendar::todos().

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(), KCal::Calendar::events(), 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::CalendarLocal::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::CalendarLocal::addTodo(), and 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::addTodo(), KCal::VCalDrag::decode(), KCal::ICalDrag::decode(), KCal::Todo::dtDue(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Calendar::events(), KCal::Incidence::recreate(), KCal::Todo::setDtDue(), KCal::Event::setDtEnd(), KCal::Incidence::setDtStart(), KCal::Calendar::timeZoneId(), and KCal::Calendar::todos().


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 Mon Apr 4 06:41:18 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003