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

KCal Library

  • kcal
dndfactory.h
Go to the documentation of this file.
1/*
2 This file is part of the kcal library.
3
4 Copyright (c) 1998 Preston Brown <pbrown@kde.org>
5 Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
6 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7 Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at>
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public
11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with this library; see the file COPYING.LIB. If not, write to
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA.
23*/
34#ifndef KCAL_DNDFACTORY_H
35#define KCAL_DNDFACTORY_H
36
37#include "kcal_export.h"
38#include "incidence.h"
39
40#include <KDE/KDateTime>
41
42class QDate;
43class QTime;
44class QDrag;
45class QWidget;
46class QDropEvent;
47class QMimeData;
48
49namespace KCal {
50
51class Event;
52class Todo;
53class Incidence;
54class Calendar;
55
63class KCAL_DEPRECATED_EXPORT DndFactory
64{
65 public:
66 explicit DndFactory( Calendar * );
67
68 ~DndFactory();
69
73 Calendar *createDropCalendar( QDropEvent *de );
74
78 Calendar *createDropCalendar( const QMimeData *md );
79
83 static Calendar *createDropCalendar( const QMimeData *md, const KDateTime::Spec &timeSpec );
84
88 QMimeData *createMimeData();
89
93 QDrag *createDrag( QWidget *owner );
94
98 QMimeData *createMimeData( Incidence *incidence );
99
103 QDrag *createDrag( Incidence *incidence, QWidget *owner );
104
108 Todo *createDropTodo( const QMimeData *md );
109
113 Todo *createDropTodo( QDropEvent *de );
114
118 Event *createDropEvent( const QMimeData *md );
119
123 Event *createDropEvent( QDropEvent *de );
124
128 void cutIncidence( Incidence * );
129
133 bool copyIncidence( Incidence * );
134
140 bool cutIncidences( const Incidence::List &incidences );
141
147 bool copyIncidences( const Incidence::List &incidences );
148
159 Incidence::List pasteIncidences( const QDate &newDate = QDate(),
160 const QTime *newTime = 0 );
161
165 Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
166
167 private:
168 //@cond PRIVATE
169 Q_DISABLE_COPY( DndFactory )
170 class Private;
171 Private *const d;
172 //@endcond
173};
174
175}
176
177#endif
KCal::Calendar
Represents the main calendar class.
Definition: calendar.h:121
KCal::DndFactory
vCalendar/iCalendar Drag-and-Drop object factory.
Definition: dndfactory.h:64
KCal::Event
This class provides an Event in the sense of RFC2445.
Definition: event.h:42
KCal::Incidence
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:70
KCal::ListBase
This class provides a template for lists of pointers.
Definition: listbase.h:45
KCal::Todo
Provides a To-do in the sense of RFC2445.
Definition: todo.h:45
incidence.h
This file is part of the API for handling calendar data and defines the Incidence class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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