• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • sonnet
settings_p.h
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2 /*
3  *
4  * Copyright (C) 2003 Zack Rusin <zack@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #ifndef SONNET_SETTINGS_P_H
22 #define SONNET_SETTINGS_P_H
23 
24 #include <QtCore/QStringList>
25 #include <QtCore/QString>
26 #include <kdecore_export.h>
27 
28 class KConfig;
29 
30 namespace Sonnet
31 {
32  class Loader;
33 
37  class KDECORE_EXPORT Settings
38  {
39  public:
40  ~Settings();
41 
42  bool modified() const;
43  void setModified(bool modified);
44 
45  void setDefaultLanguage(const QString &lang);
46  QString defaultLanguage() const;
47 
48  void setDefaultClient(const QString &client);
49  QString defaultClient() const;
50 
51  void setCheckUppercase(bool);
52  bool checkUppercase() const;
53 
54  void setSkipRunTogether(bool);
55  bool skipRunTogether() const;
56 
57  void setBackgroundCheckerEnabled(bool);
58  bool backgroundCheckerEnabled() const;
59 
60  void setCheckerEnabledByDefault(bool);
61  bool checkerEnabledByDefault() const;
62 
63  void setCurrentIgnoreList(const QStringList &ignores);
64  void addWordToIgnore(const QString &word);
65  QStringList currentIgnoreList() const;
66  bool ignore(const QString &word);
67 
68  void save(KConfig *config);
69  void restore(KConfig *config);
70 
71  int disablePercentageWordError() const;
72  int disableWordErrorCount() const;
73 
74  private:
75  void readIgnoreList(KConfig *config);
76  void setQuietIgnoreList(const QStringList &ignores);
77 
78  private:
79  friend class Loader;
80  Settings(Loader *loader);
81  private:
82  class Private;
83  Private *const d;
84  };
85 }
86 
87 #endif // SONNET_SETTINGS_P_H
kdecore_export.h
QString
Sonnet::Settings
Settings class.
Definition: settings_p.h:37
KGlobal::config
KSharedConfigPtr config()
Returns the general config object.
Definition: kglobal.cpp:138
QStringList
KConfig
The central class of the KDE configuration data system.
Definition: kconfig.h:70
Sonnet::Loader
Class used to deal with dictionaries.
Definition: loader_p.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal