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

KCalCore Library

journal.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcalcore library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00030 #ifndef KCALCORE_JOURNAL_H
00031 #define KCALCORE_JOURNAL_H
00032 
00033 #include "kcalcore_export.h"
00034 #include "incidence.h"
00035 #include "supertrait.h"
00036 
00037 namespace KCalCore {
00038 
00043 class KCALCORE_EXPORT Journal : public Incidence
00044 {
00045   public:
00049     typedef QSharedPointer<Journal> Ptr;
00050 
00054     typedef QVector<Ptr> List;
00055 
00059     Journal();
00060 
00064     ~Journal();
00065 
00070     IncidenceType type() const;
00071 
00076     QByteArray typeStr() const;
00077 
00082     Journal *clone() const;
00083 
00088     KDateTime dateTime( DateTimeRole role ) const;
00089 
00094     void setDateTime( const KDateTime &dateTime, DateTimeRole role );
00095 
00100     QLatin1String mimeType() const;
00101 
00106     QLatin1String iconName( const KDateTime &recurrenceId = KDateTime() ) const;
00107 
00111     static QLatin1String journalMimeType();
00112 
00113   protected:
00119     bool equals( const IncidenceBase &journal ) const;
00120 
00125     virtual IncidenceBase &assign( const IncidenceBase &other );
00126 
00131     virtual void virtual_hook( int id, void *data );
00132 
00133   private:
00138     bool accept( Visitor &v, IncidenceBase::Ptr incidence );
00139 
00146     Journal &operator=( const Journal &other );
00147 
00148     //@cond PRIVATE
00149     class Private;
00150     Private *const d;
00151     //@endcond
00152 };
00153 
00154 } // namespace KCalCore
00155 
00156 Q_DECLARE_TYPEINFO( KCalCore::Journal::Ptr, Q_MOVABLE_TYPE );
00157 
00158 //@cond PRIVATE
00159 namespace KPIMUtils {
00160   // super class trait specialization
00161   template <> struct SuperClass<KCalCore::Journal> : public SuperClassTrait<KCalCore::Incidence>{};
00162 }
00163 //@endcond
00164 
00165 #endif

KCalCore Library

Skip menu "KCalCore Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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