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

KCal Library

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 
42 class QDate;
43 class QTime;
44 class QDrag;
45 class QWidget;
46 class QDropEvent;
47 class QMimeData;
48 
49 namespace KCal {
50 
51 class Event;
52 class Todo;
53 class Incidence;
54 class Calendar;
55 
63 class 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::Todo
Provides a To-do in the sense of RFC2445.
Definition: todo.h:44
KCal::Calendar
Represents the main calendar class.
Definition: calendar.h:119
KCal::Event
This class provides an Event in the sense of RFC2445.
Definition: event.h:41
KCal::Incidence
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
KCal::ListBase
This class provides a template for lists of pointers.
Definition: listbase.h:44
incidence.h
This file is part of the API for handling calendar data and defines the Incidence class...
KCal::DndFactory
vCalendar/iCalendar Drag-and-Drop object factory.
Definition: dndfactory.h:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:57 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