• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

vcs

vcsannotationmodel.h

00001 /***************************************************************************
00002  *   This file is part of KDevelop                                         *
00003  *   Copyright 2007 Andreas Pakulat <apaku@gmx.de>                         *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU Library General Public     *
00016  *   License along with this program; if not, write to the                 *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
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

vcs

Skip menu "vcs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
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