• Skip to content
  • Skip to link menu
KDE 4.4 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 #include <KDE/KDateTime>
00040 
00041 class QDate;
00042 class QTime;
00043 class QDrag;
00044 class QWidget;
00045 class QDropEvent;
00046 class QMimeData;
00047 
00048 namespace KCal {
00049 
00050 class Event;
00051 class Todo;
00052 class Incidence;
00053 class Calendar;
00054 
00062 class KCAL_EXPORT DndFactory
00063 {
00064   public:
00065     explicit DndFactory( Calendar * );
00066 
00067     ~DndFactory();
00068 
00072     Calendar *createDropCalendar( QDropEvent *de );
00073 
00077     Calendar *createDropCalendar( const QMimeData *md );
00078 
00082     static Calendar *createDropCalendar( const QMimeData *md, const KDateTime::Spec &timeSpec );
00083 
00087     QMimeData *createMimeData();
00088 
00092     QDrag *createDrag( QWidget *owner );
00093 
00097     QMimeData *createMimeData( Incidence *incidence );
00098 
00102     QDrag *createDrag( Incidence *incidence, QWidget *owner );
00103 
00107     Todo *createDropTodo( const QMimeData *md );
00108 
00112     Todo *createDropTodo( QDropEvent *de );
00113 
00117     Event *createDropEvent( const QMimeData *md );
00118 
00122     Event *createDropEvent( QDropEvent *de );
00123 
00127     void cutIncidence( Incidence * );
00128 
00132     bool copyIncidence( Incidence * );
00133 
00137     Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
00138 
00139   private:
00140     //@cond PRIVATE
00141     Q_DISABLE_COPY( DndFactory )
00142     class Private;
00143     Private *const d;
00144     //@endcond
00145 };
00146 
00147 }
00148 
00149 #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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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