vcs
vcseventmodel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef VCSEVENTMODEL_H
00022 #define VCSEVENTMODEL_H
00023
00024 #include <QAbstractTableModel>
00025
00026 #include "../vcsexport.h"
00027
00028 namespace KDevelop
00029 {
00030
00031 class VcsEvent;
00032
00033 class KDEVPLATFORMVCS_EXPORT VcsEventModel : public QAbstractTableModel
00034 {
00035 Q_OBJECT
00036 public:
00037 VcsEventModel( QObject* parent );
00038 ~VcsEventModel();
00039 int rowCount( const QModelIndex& = QModelIndex() ) const;
00040 int columnCount( const QModelIndex& parent = QModelIndex() ) const;
00041 QVariant data( const QModelIndex&, int role = Qt::DisplayRole ) const;
00042 QVariant headerData( int, Qt::Orientation, int role = Qt::DisplayRole ) const;
00043 void addEvents( const QList<KDevelop::VcsEvent>& );
00044 KDevelop::VcsEvent eventForIndex( const QModelIndex& ) const;
00045 void clear();
00046 private:
00047 class VcsEventModelPrivate* const d;
00048 };
00049
00050 }
00051
00052 #endif