Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/problem.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #include "../editor/documentrange.h" | 28 | #include "../editor/documentrange.h" | ||
29 | #include <language/languageexport.h> | 29 | #include <language/languageexport.h> | ||
30 | 30 | | |||
31 | #include "duchainbase.h" | 31 | #include "duchainbase.h" | ||
32 | #include <serialization/indexedstring.h> | 32 | #include <serialization/indexedstring.h> | ||
33 | #include "indexedtopducontext.h" | 33 | #include "indexedtopducontext.h" | ||
34 | #include <interfaces/iproblem.h> | 34 | #include <interfaces/iproblem.h> | ||
35 | #include <interfaces/iassistant.h> | ||||
35 | 36 | | |||
36 | namespace KDevelop | 37 | namespace KDevelop | ||
37 | { | 38 | { | ||
38 | class IAssistant; | 39 | class IAssistant; | ||
39 | class Problem; | 40 | class Problem; | ||
40 | 41 | | |||
41 | using ProblemPointer = QExplicitlySharedDataPointer<Problem>; | 42 | using ProblemPointer = QExplicitlySharedDataPointer<Problem>; | ||
42 | 43 | | |||
▲ Show 20 Lines • Show All 189 Lines • ▼ Show 20 Line(s) | 224 | private: | |||
232 | 233 | | |||
233 | //BEGIN dynamic data | 234 | //BEGIN dynamic data | ||
234 | TopDUContextPointer m_topContext; | 235 | TopDUContextPointer m_topContext; | ||
235 | mutable QList<Ptr> m_diagnostics; | 236 | mutable QList<Ptr> m_diagnostics; | ||
236 | uint m_indexInTopContext; | 237 | uint m_indexInTopContext; | ||
237 | //END dynamic data | 238 | //END dynamic data | ||
238 | }; | 239 | }; | ||
239 | 240 | | |||
241 | class KDEVPLATFORMLANGUAGE_EXPORT StaticAssistantProblem : public KDevelop::Problem { | ||||
242 | public: | ||||
243 | KDevelop::IAssistant::Ptr solutionAssistant() const override { | ||||
244 | return m_solution; | ||||
245 | } | ||||
246 | void setSolutionAssistant(KDevelop::IAssistant::Ptr p) { | ||||
247 | m_solution = p; | ||||
248 | } | ||||
249 | | ||||
250 | private: | ||||
251 | KDevelop::IAssistant::Ptr m_solution; | ||||
252 | }; | ||||
253 | | ||||
240 | } | 254 | } | ||
241 | 255 | | |||
242 | Q_DECLARE_TYPEINFO(KDevelop::LocalIndexedProblem, Q_MOVABLE_TYPE); | 256 | Q_DECLARE_TYPEINFO(KDevelop::LocalIndexedProblem, Q_MOVABLE_TYPE); | ||
243 | 257 | | |||
244 | KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug s, const KDevelop::Problem& problem); | 258 | KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug s, const KDevelop::Problem& problem); | ||
245 | KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug s, const KDevelop::ProblemPointer& problem); | 259 | KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug s, const KDevelop::ProblemPointer& problem); | ||
246 | 260 | | |||
247 | #endif // KDEVPLATFORM_PROBLEM_H | 261 | #endif // KDEVPLATFORM_PROBLEM_H |