Changeset View
Changeset View
Standalone View
Standalone View
src/core/settingsimpl_p.h
- This file was moved from src/core/settings_p.h.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org> | 2 | * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org> | ||
3 | * | 3 | * | ||
4 | * SPDX-License-Identifier: LGPL-2.1-or-later | 4 | * SPDX-License-Identifier: LGPL-2.1-or-later | ||
5 | */ | 5 | */ | ||
6 | #ifndef SONNET_SETTINGS_P_H | 6 | #ifndef SONNET_SETTINGS_IMPL_P_H | ||
7 | #define SONNET_SETTINGS_P_H | 7 | #define SONNET_SETTINGS_IMPL_P_H | ||
8 | | ||||
9 | #include "sonnetcore_export.h" | ||||
8 | 10 | | |||
9 | #include <QStringList> | 11 | #include <QStringList> | ||
10 | #include <QString> | 12 | #include <QString> | ||
11 | #include "sonnetcore_export.h" | | |||
12 | 13 | | |||
13 | namespace Sonnet { | 14 | namespace Sonnet { | ||
14 | class Loader; | 15 | class Loader; | ||
15 | class SettingsPrivate; | 16 | class SettingsImplPrivate; | ||
16 | /** | 17 | /** | ||
17 | * Settings class | 18 | * SettingsImpl class | ||
18 | */ | 19 | */ | ||
19 | class SONNETCORE_EXPORT Settings | 20 | class SONNETCORE_EXPORT SettingsImpl | ||
20 | { | 21 | { | ||
21 | public: | 22 | public: | ||
22 | ~Settings(); | 23 | ~SettingsImpl(); | ||
23 | 24 | | |||
24 | Settings(const Settings &) = delete; | 25 | SettingsImpl(const SettingsImpl &) = delete; | ||
25 | Settings &operator=(const Settings &) = delete; | 26 | SettingsImpl &operator=(const SettingsImpl &) = delete; | ||
26 | 27 | | |||
27 | bool modified() const; | 28 | bool modified() const; | ||
28 | void setModified(bool modified); | 29 | void setModified(bool modified); | ||
29 | 30 | | |||
30 | bool setDefaultLanguage(const QString &lang); | 31 | bool setDefaultLanguage(const QString &lang); | ||
31 | QString defaultLanguage() const; | 32 | QString defaultLanguage() const; | ||
32 | 33 | | |||
33 | bool setPreferredLanguages(const QStringList &lang); | 34 | bool setPreferredLanguages(const QStringList &lang); | ||
Show All 24 Lines | |||||
58 | 59 | | |||
59 | void save(); | 60 | void save(); | ||
60 | void restore(); | 61 | void restore(); | ||
61 | 62 | | |||
62 | int disablePercentageWordError() const; | 63 | int disablePercentageWordError() const; | ||
63 | int disableWordErrorCount() const; | 64 | int disableWordErrorCount() const; | ||
64 | 65 | | |||
65 | private: | 66 | private: | ||
66 | void readIgnoreList(); | | |||
67 | bool setQuietIgnoreList(const QStringList &ignores); | 67 | bool setQuietIgnoreList(const QStringList &ignores); | ||
68 | 68 | | |||
69 | private: | 69 | private: | ||
70 | friend class Loader; | 70 | friend class Loader; | ||
71 | explicit Settings(Loader *loader); | 71 | explicit SettingsImpl(Loader *loader); | ||
72 | private: | 72 | private: | ||
73 | SettingsPrivate *const d; | 73 | SettingsImplPrivate *const d; | ||
74 | }; | 74 | }; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | #endif // SONNET_SETTINGS_P_H | 77 | #endif // SONNET_SETTINGS_IMPL_P_H |