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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • sonnet
loader_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_LOADER_P_H
22 #define SONNET_LOADER_P_H
23 
24 #include <kdecore_export.h>
25 #include <ksharedptr.h>
26 
27 #include <QtCore/QObject>
28 #include <QtCore/QStringList>
29 #include <QtCore/QString>
30 
31 class KService;
32 namespace Sonnet
33 {
34  class Settings;
35  class SpellerPlugin;
36 
45  class KDECORE_EXPORT Loader : public QObject
46  {
47  Q_OBJECT
48  public:
57  static Loader *openLoader();
58 
59  public:
60  Loader();
61  ~Loader();
62 
77  SpellerPlugin *createSpeller(
78  const QString& language = QString(),
79  const QString& client = QString()) const;
80 
84  QStringList clients() const;
85 
89  QStringList languages() const;
90 
94  QStringList languageNames() const;
95 
101  QString languageNameForCode(const QString &langCode) const;
102 
106  Settings *settings() const;
107  Q_SIGNALS:
112  void configurationChanged();
113 
114  protected:
115  friend class Settings;
116  void changed();
117  private:
118  void loadPlugins();
119  void loadPlugin(const KSharedPtr<KService>&);
120  private:
121  class Private;
122  Private *const d;
123  };
124 }
125 
126 #endif // SONNET_LOADER_P_H
KSharedPtr< KService >
ksharedptr.h
kdecore_export.h
KService
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition: kservice.h:58
Sonnet::Settings
Settings class.
Definition: settings_p.h:37
QObject
QString
QStringList
Sonnet::SpellerPlugin
Class is returned by from Loader.
Definition: spellerplugin_p.h:38
Sonnet::Loader
Class used to deal with dictionaries.
Definition: loader_p.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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