• Skip to content
  • Skip to link menu
KDE 4.0 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 
00008   This library is free software; you can redistribute it and/or
00009   modify it under the terms of the GNU Library General Public
00010   License as published by the Free Software Foundation; either
00011   version 2 of the License, or (at your option) any later version.
00012 
00013   This library is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016   Library General Public License for more details.
00017 
00018   You should have received a copy of the GNU Library General Public License
00019   along with this library; see the file COPYING.LIB.  If not, write to
00020   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021   Boston, MA 02110-1301, USA.
00022 */
00033 #ifndef KCAL_DNDFACTORY_H
00034 #define KCAL_DNDFACTORY_H
00035 
00036 #include "kcal_export.h"
00037 
00038 class QDate;
00039 class QTime;
00040 class QDrag;
00041 class QWidget;
00042 class QDropEvent;
00043 class QMimeData;
00044 
00045 namespace KCal {
00046 
00047 class Event;
00048 class Todo;
00049 class Incidence;
00050 class Calendar;
00051 
00059 class KCAL_EXPORT DndFactory
00060 {
00061   public:
00062     explicit DndFactory( Calendar * );
00063 
00064     ~DndFactory();
00065 
00069     Calendar *createDropCalendar( QDropEvent *de );
00070 
00074     Calendar *createDropCalendar( const QMimeData *md );
00075 
00079     QDrag *createDrag( QWidget *owner );
00080 
00084     QDrag *createDrag( Incidence *incidence, QWidget *owner );
00085 
00087     Todo *createDropTodo( QDropEvent *de );
00088 
00090     Event *createDropEvent( QDropEvent *de );
00091 
00093     void cutIncidence( Incidence * );
00094 
00096     bool copyIncidence( Incidence * );
00097 
00099     Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 );
00100 
00101   private:
00102     //@cond PRIVATE
00103     Q_DISABLE_COPY( DndFactory )
00104     class Private;
00105     Private *const d;
00106     //@endcond
00107 };
00108 
00109 }
00110 
00111 #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"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.5
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