akonadi/kcal
kcalmodel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KCALMODEL_H
00021 #define KCALMODEL_H
00022
00023 #include "akonadi-kcal_export.h"
00024 #include <akonadi/itemmodel.h>
00025
00026 namespace Akonadi {
00027
00028 class AKONADI_KCAL_EXPORT KCalModel : public ItemModel
00029 {
00030 public:
00031 enum Column {
00032 Summary,
00033 DateTimeStart,
00034 DateTimeEnd,
00035 Type
00036 };
00037
00038 KCalModel( QObject *parent = 0 );
00039
00040 virtual ~KCalModel();
00041
00042 virtual int columnCount( const QModelIndex & parent = QModelIndex() ) const;
00043 virtual QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const;
00044 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
00045
00046 private:
00047 class Private;
00048 Private* const d;
00049 };
00050
00051 }
00052
00053 #endif
00054