Changeset View
Changeset View
Standalone View
Standalone View
javalanguagesupport.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | class JavaLanguageSupport : public KDevelop::IPlugin, public KDevelop::ILanguageSupport | 48 | class JavaLanguageSupport : public KDevelop::IPlugin, public KDevelop::ILanguageSupport | ||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
51 | Q_INTERFACES( KDevelop::ILanguageSupport ) | 51 | Q_INTERFACES( KDevelop::ILanguageSupport ) | ||
52 | public: | 52 | public: | ||
53 | JavaLanguageSupport( QObject* parent, const QVariantList& args = QVariantList() ); | 53 | JavaLanguageSupport( QObject* parent, const QVariantList& args = QVariantList() ); | ||
54 | virtual ~JavaLanguageSupport(); | 54 | virtual ~JavaLanguageSupport(); | ||
55 | 55 | | |||
56 | virtual QString name() const; | 56 | virtual QString name() const override; | ||
57 | 57 | | |||
58 | virtual KDevelop::ParseJob *createParseJob(const KDevelop::IndexedString& url); | 58 | virtual KDevelop::ParseJob *createParseJob(const KDevelop::IndexedString& url) override; | ||
59 | virtual KDevelop::ILanguage *language(); | 59 | virtual KDevelop::ILanguageSupport *language(); | ||
60 | virtual KDevelop::ICodeHighlighting* codeHighlighting() const; | 60 | virtual KDevelop::ICodeHighlighting* codeHighlighting() const override; | ||
61 | | ||||
62 | KDevelop::ConfigPage* configPage(int number, QWidget *parent) override; | ||||
63 | int configPages() const override; | ||||
61 | 64 | | |||
62 | static JavaLanguageSupport* self(); | 65 | static JavaLanguageSupport* self(); | ||
63 | 66 | | |||
64 | QMutex* javaSourceZipMutex() const; | 67 | QMutex* javaSourceZipMutex() const; | ||
65 | KZip* javaSourceZip() const; | 68 | KZip* javaSourceZip() const; | ||
66 | 69 | | |||
67 | private Q_SLOTS: | 70 | private Q_SLOTS: | ||
68 | void slotJavaSourceEntries(KIO::Job* job, KIO::UDSEntryList entries); | 71 | void slotJavaSourceEntries(KIO::Job* job, KIO::UDSEntryList entries); | ||
69 | 72 | | |||
70 | private: | 73 | private: | ||
71 | void scheduleInternalSources(); | 74 | void scheduleInternalSources(); | ||
72 | 75 | | |||
73 | KDevelop::CodeHighlighting* m_highlighting; | 76 | KDevelop::CodeHighlighting* m_highlighting; | ||
74 | KDevelop::ReferencedTopDUContext m_allJavaContext; | 77 | KDevelop::ReferencedTopDUContext m_allJavaContext; | ||
75 | KUrl m_javaSourceUrl; | 78 | QUrl m_javaSourceUrl; | ||
76 | QMutex* m_javaSourceZipMutex; | 79 | QMutex* m_javaSourceZipMutex; | ||
77 | mutable KZip* m_javaSourceZip; | 80 | mutable KZip* m_javaSourceZip; | ||
78 | 81 | | |||
79 | 82 | | |||
80 | static JavaLanguageSupport* s_self; | 83 | static JavaLanguageSupport* s_self; | ||
81 | }; | 84 | }; | ||
82 | 85 | | |||
83 | #endif | 86 | #endif | ||
84 | 87 | | |||
85 | // kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on | 88 | // kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on |