Changeset View
Changeset View
Standalone View
Standalone View
outputview/outputmodel.h
Show All 18 Lines | |||||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * | 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * | ||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ | ||
21 | 21 | | |||
22 | #ifndef KDEVPLATFORM_OUTPUTMODEL_H | 22 | #ifndef KDEVPLATFORM_OUTPUTMODEL_H | ||
23 | #define KDEVPLATFORM_OUTPUTMODEL_H | 23 | #define KDEVPLATFORM_OUTPUTMODEL_H | ||
24 | 24 | | |||
25 | #include "outputviewexport.h" | 25 | #include "outputviewexport.h" | ||
26 | #include "ioutputviewmodel.h" | 26 | #include "ioutputviewmodel.h" | ||
27 | #include "ifilterstrategy.h" | ||||
27 | 28 | | |||
28 | #include <QtCore/QAbstractListModel> | 29 | #include <QtCore/QAbstractListModel> | ||
29 | #include <QUrl> | 30 | #include <QUrl> | ||
30 | 31 | | |||
31 | 32 | | |||
32 | namespace KDevelop | 33 | namespace KDevelop | ||
33 | { | 34 | { | ||
34 | 35 | | |||
Show All 28 Lines | 42 | public: | |||
63 | QModelIndex previousHighlightIndex( const QModelIndex ¤t ) override; | 64 | QModelIndex previousHighlightIndex( const QModelIndex ¤t ) override; | ||
64 | 65 | | |||
65 | /// QAbstractItemModel interfaces | 66 | /// QAbstractItemModel interfaces | ||
66 | QVariant data( const QModelIndex&, int = Qt::DisplayRole ) const override; | 67 | QVariant data( const QModelIndex&, int = Qt::DisplayRole ) const override; | ||
67 | int rowCount( const QModelIndex& = QModelIndex() ) const override; | 68 | int rowCount( const QModelIndex& = QModelIndex() ) const override; | ||
68 | QVariant headerData( int, Qt::Orientation, int = Qt::DisplayRole ) const override; | 69 | QVariant headerData( int, Qt::Orientation, int = Qt::DisplayRole ) const override; | ||
69 | 70 | | |||
70 | void setFilteringStrategy(const OutputFilterStrategy& currentStrategy); | 71 | void setFilteringStrategy(const OutputFilterStrategy& currentStrategy); | ||
72 | void setFilteringStrategy(IFilterStrategy* filterStrategy); | ||||
71 | 73 | | |||
72 | public Q_SLOTS: | 74 | public Q_SLOTS: | ||
73 | void appendLine( const QString& ); | 75 | void appendLine( const QString& ); | ||
74 | void appendLines( const QStringList& ); | 76 | void appendLines( const QStringList& ); | ||
75 | void ensureAllDone(); | 77 | void ensureAllDone(); | ||
76 | 78 | | |||
77 | signals: | 79 | signals: | ||
80 | /// If the current filter strategy supports it, reports progress information | ||||
81 | void progress(const KDevelop::IFilterStrategy::Progress& progress); | ||||
mwolff: cref | |||||
78 | void allDone(); | 82 | void allDone(); | ||
79 | 83 | | |||
80 | private: | 84 | private: | ||
81 | OutputModelPrivate* const d; | 85 | OutputModelPrivate* const d; | ||
82 | friend struct OutputModelPrivate; | 86 | friend struct OutputModelPrivate; | ||
83 | }; | 87 | }; | ||
84 | 88 | | |||
85 | } | 89 | } | ||
86 | 90 | | |||
87 | Q_DECLARE_METATYPE( KDevelop::OutputModel::OutputFilterStrategy ) | 91 | Q_DECLARE_METATYPE( KDevelop::OutputModel::OutputFilterStrategy ) | ||
88 | 92 | | |||
89 | #endif | 93 | #endif | ||
90 | 94 | |
cref