Changeset View
Changeset View
Standalone View
Standalone View
shell/problemmodel.h
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 82 | public: | |||
---|---|---|---|---|---|
124 | void addProblem(const IProblem::Ptr &problem); | 124 | void addProblem(const IProblem::Ptr &problem); | ||
125 | 125 | | |||
126 | /// Clears the problems, then adds a new set of them | 126 | /// Clears the problems, then adds a new set of them | ||
127 | void setProblems(const QVector<IProblem::Ptr> &problems); | 127 | void setProblems(const QVector<IProblem::Ptr> &problems); | ||
128 | 128 | | |||
129 | /// Clears the problems | 129 | /// Clears the problems | ||
130 | void clearProblems(); | 130 | void clearProblems(); | ||
131 | 131 | | |||
132 | /// Retrieve problems for selected document | ||||
133 | QVector<IProblem::Ptr> problems(const KDevelop::IndexedString& document); | ||||
134 | | ||||
132 | /// Retrieve the supported features | 135 | /// Retrieve the supported features | ||
133 | Features features() const; | 136 | Features features() const; | ||
134 | 137 | | |||
135 | /// Set the supported features | 138 | /// Set the supported features | ||
136 | void setFeatures(Features features); | 139 | void setFeatures(Features features); | ||
137 | 140 | | |||
141 | signals: | ||||
142 | /// Emitted when the stored problems are changed with addProblem(), setProblems() and | ||||
143 | /// clearProblems() methods. This signal emitted only when internal problems storage is | ||||
144 | /// really changed: for example, it is not emitted when we call clearProblems() method | ||||
145 | /// for empty model. | ||||
146 | void problemsChanged(); | ||||
147 | | ||||
138 | public slots: | 148 | public slots: | ||
139 | /// Show imports | 149 | /// Show imports | ||
140 | virtual void setShowImports(bool){} | 150 | virtual void setShowImports(bool){} | ||
141 | 151 | | |||
142 | /// Sets the scope filter. Uses int to be able to use QSignalMapper | 152 | /// Sets the scope filter. Uses int to be able to use QSignalMapper | ||
143 | virtual void setScope(int scope); | 153 | virtual void setScope(int scope); | ||
144 | 154 | | |||
145 | /// Sets the severity filter. Uses int to be able to use QSignalMapper | 155 | /// Sets the severity filter. Uses int to be able to use QSignalMapper | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |