Changeset View
Changeset View
Standalone View
Standalone View
runners/spellchecker/spellcheck.h
Show All 40 Lines | 35 | public: | |||
---|---|---|---|---|---|
41 | 41 | | |||
42 | void reloadConfiguration() override; | 42 | void reloadConfiguration() override; | ||
43 | 43 | | |||
44 | protected Q_SLOTS: | 44 | protected Q_SLOTS: | ||
45 | void init() override; | 45 | void init() override; | ||
46 | QList<QAction *> actionsForMatch(const Plasma::QueryMatch &match) override; | 46 | QList<QAction *> actionsForMatch(const Plasma::QueryMatch &match) override; | ||
47 | QMimeData * mimeDataForMatch(const Plasma::QueryMatch &match) override; | 47 | QMimeData * mimeDataForMatch(const Plasma::QueryMatch &match) override; | ||
48 | 48 | | |||
49 | void loaddata(); | 49 | void loadData(); | ||
50 | void destroydata(); | 50 | void destroydata(); | ||
51 | 51 | | |||
52 | private: | 52 | private: | ||
53 | QString findlang(const QStringList &terms); | 53 | QString findLang(const QStringList &terms); | ||
54 | 54 | | |||
55 | QString m_triggerWord; | 55 | QString m_triggerWord; | ||
56 | QMap<QString, QString> m_languages;//key=language name, value=language code | 56 | QMap<QString, QString> m_languages;//key=language name, value=language code | ||
57 | bool m_requireTriggerWord; | 57 | bool m_requireTriggerWord; | ||
58 | QMap<QString, QSharedPointer<Sonnet::Speller> > m_spellers; //spellers | 58 | QMap<QString, QSharedPointer<Sonnet::Speller> > m_spellers; //spellers | ||
59 | QMutex m_spellLock; //Lock held when constructing a new speller | 59 | QMutex m_spellLock; //Lock held when constructing a new speller | ||
60 | QList<QAction *> m_actions; | ||||
60 | }; | 61 | }; | ||
61 | 62 | | |||
62 | #endif | 63 | #endif |