broker.h
// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
#ifndef KSPELL_BROKER_H
#define KSPELL_BROKER_H
#include <ksharedptr.h>
#include <qobject.h>
#include <qstringlist.h>
#include <qstring.h>
class KSharedConfig;
template <typename T>
class QPtrDict;
namespace KSpell2
{
class Settings;
class Dictionary;
class DefaultDictionary;
class KDE_EXPORT Broker : public QObject,
public KShared
{
Q_OBJECT
public:
typedef KSharedPtr<Broker> Ptr;
static Broker *openBroker( KSharedConfig *config = 0 );
public:
~Broker();
DefaultDictionary *defaultDictionary() const;
Dictionary *dictionary(
const QString& language = QString::null,
const QString& client = QString::null ) const;
QStringList clients() const;
QStringList languages() const;
Settings *settings() const;
signals:
void configurationChanged();
protected:
friend class Settings;
void changed();
private:
Broker( KSharedConfig *config );
void loadPlugins();
void loadPlugin( const QString& );
private:
class Private;
Private *d;
private:
static QPtrDict<Broker> *s_brokers;
};
}
#endif
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:37
KSpell2::Broker
Class used to deal with dictionaries.
Definition: broker.h:48

KDE Home | KDE Accessibility Home | Description of Access Keys