• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

dndfactory.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 1998 Preston Brown <pbrown@kde.org>
00005   Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
00006   Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007   Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at>
00008 
00009   This library is free software; you can redistribute it and/or
00010   modify it under the terms of the GNU Library General Public
00011   License as published by the Free Software Foundation; either
00012   version 2 of the License, or (at your option) any later version.
00013 
00014   This library is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017   Library General Public License for more details.
00018 
00019   You should have received a copy of the GNU Library General Public License
00020   along with this library; see the file COPYING.LIB.  If not, write to
00021   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022   Boston, MA 02110-1301, USA.
00023 */
00034 #ifndef KCAL_DNDFACTORY_H
00035 #define KCAL_DNDFACTORY_H
00036 
00037 #include "kcal_export.h"
00038 
00039 class QDate;
00040 class QTime;
00041 class QDrag;
00042 class QWidget;
00043 class QDropEvent;
00044 class QMimeData;
00045 
00046 namespace KCal {
00047 
00048 class Event;
00049 class Todo;
00050 class Incidence;
00051 class Calendar;
00052 
00060 class KCAL_EXPORT DndFactory
00061 {
00062   public:
00063     explicit DndFactory( Calendar * );
00064 
00065     ~DndFactory();
00066 
00070     Calendar *createDropCalendar( QDropEvent *de );
00071 
00075     Calendar *createDropCalendar( const QMimeData *md );
00076 
00080     QMimeData *createMimeData();
00081 
00085     QDrag *createDrag( QWidget *owner );
00086 
00090     QMimeData *createMimeData( Incidence *incidence );
00091 
00095     QDrag *createDrag( Incidence *incidence, QWidget *owner );
00096 
00100     Todo *createDropTodo( const QMimeData *md );
00101 
00105     Todo *createDropTodo( QDropEvent *de );
00106 
00110     Event *createDropEvent( const QMimeData *md );
00111 
00115     Event *createDropEvent( QDropEvent *de );
00116 
00120     void cutIncidence( Incidence * );
00121 
00125     bool copyIncidence( Incidence * );
00126 
00130     Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
00131 
00132   private:
00133     //@cond PRIVATE
00134     Q_DISABLE_COPY( DndFactory )
00135     class Private;
00136     Private *const d;
00137     //@endcond
00138 };
00139 
00140 }
00141 
00142 #endif

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal