• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

incidencemimetypevisitor.h
00001 /*
00002   Copyright (c) 2008-2009 Kevin Krammer <kevin.krammer@gmx.at>
00003 
00004   This library is free software; you can redistribute it and/or modify it
00005   under the terms of the GNU Library General Public License as published by
00006   the Free Software Foundation; either version 2 of the License, or (at your
00007   option) any later version.
00008 
00009   This library is distributed in the hope that it will be useful, but WITHOUT
00010   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012   License for more details.
00013 
00014   You should have received a copy of the GNU Library General Public License
00015   along with this library; see the file COPYING.LIB.  If not, write to the
00016   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017   02110-1301, USA.
00018 */
00019 
00020 #ifndef AKONADI_KCAL_INCIDENCEMIMETYPEVISITOR_H
00021 #define AKONADI_KCAL_INCIDENCEMIMETYPEVISITOR_H
00022 
00023 #include "akonadi-kcal_export.h"
00024 
00025 #include <kcal/incidencebase.h>
00026 
00027 namespace Akonadi {
00028 
00052 class AKONADI_KCAL_EXPORT IncidenceMimeTypeVisitor : public KCal::IncidenceBase::Visitor
00053 {
00054   public:
00060     IncidenceMimeTypeVisitor();
00061 
00065     virtual ~IncidenceMimeTypeVisitor();
00066 
00075     virtual bool visit( KCal::Event *event );
00076 
00085     virtual bool visit( KCal::Todo *todo );
00086 
00095     virtual bool visit( KCal::Journal *journal );
00096 
00105     virtual bool visit( KCal::FreeBusy *freebusy );
00106 
00114     QString mimeType() const;
00115 
00119     QStringList allMimeTypes() const;
00120 
00131     QString mimeType( KCal::IncidenceBase *incidence );
00132 
00136     static QString eventMimeType();
00137 
00141     static QString todoMimeType();
00142 
00146     static QString journalMimeType();
00147 
00151     static QString freeBusyMimeType();
00152 
00153   private:
00154     //@cond PRIVATE
00155     class Private;
00156     Private *const d;
00157     //@endcond
00158 
00159     Q_DISABLE_COPY( IncidenceMimeTypeVisitor )
00160 };
00161 
00162 }
00163 
00164 #endif
00165 
00166 // kate: space-indent on; indent-width 2; replace-tabs on;

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.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