vcs
vcsannotationmodel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef VCSANNOTATIONMODEL_H
00022 #define VCSANNOTATIONMODEL_H
00023
00024 #include <QAbstractTableModel>
00025 #include "../vcsexport.h"
00026
00027 class QModelIndex;
00028 template<typename T> class QList;
00029 class KUrl;
00030
00031 namespace KDevelop
00032 {
00033
00034 class VcsAnnotation;
00035 class VcsAnnotationLine;
00036
00037 class KDEVPLATFORMVCS_EXPORT VcsAnnotationModel : public QAbstractTableModel
00038 {
00039 Q_OBJECT
00040 public:
00041 VcsAnnotationModel( const KUrl& );
00042 virtual ~VcsAnnotationModel();
00043
00044 void addLines( const QList<KDevelop::VcsAnnotationLine>& );
00045 KDevelop::VcsAnnotation annotation() const;
00046
00047 int rowCount( const QModelIndex& = QModelIndex() ) const;
00048 int columnCount( const QModelIndex& parent = QModelIndex() ) const;
00049 QVariant data( const QModelIndex&, int role = Qt::DisplayRole ) const;
00050 QVariant headerData( int, Qt::Orientation, int role = Qt::DisplayRole ) const;
00051
00052
00053 private:
00054 class VcsAnnotationModelPrivate* const d;
00055 };
00056
00057 }
00058
00059 #endif