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;
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:43 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:43 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.