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>

List of all members.

Public Methods

 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::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 QDropEvent::accept(), KCal::Calendar::timeZoneId(), and KCal::CalendarLocal::todos().

Event * DndFactory::createDrop QDropEvent   de
 

Create Event object from drop event.

Definition at line 61 of file dndfactory.cpp.

References QDropEvent::accept(), 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(), QApplication::clipboard(), QClipboard::setData(), 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(), QApplication::clipboard(), QClipboard::setData(), 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 QDate::addDays(), KCal::Calendar::addEvent(), QDateTime::addSecs(), KCal::Calendar::addTodo(), QApplication::clipboard(), QClipboard::data(), QDateTime::date(), KCal::Todo::dtDue(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Calendar::events(), KCal::Incidence::recreate(), KCal::Todo::setDtDue(), KCal::Event::setDtEnd(), KCal::Incidence::setDtStart(), QDateTime::time(), KCal::Calendar::timeZoneId(), and KCal::CalendarLocal::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.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:24 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003