21#ifndef TDESPELL_BROKER_H
22#define TDESPELL_BROKER_H
24#include <ksharedptr.h>
27#include <tqstringlist.h>
38 class DefaultDictionary;
47 class TDE_EXPORT Broker :
public TQObject,
52 typedef TDESharedPtr<Broker> Ptr;
67 static Broker *
openBroker( TDESharedConfig *config = 0 );
96 const TQString& language = TQString::null,
97 const TQString& client = TQString::null )
const;
121 friend class Settings;
124 Broker( TDESharedConfig *config );
126 void loadPlugin(
const TQString& );
131 static TQPtrDict<Broker> *s_brokers;
TQStringList clients() const
Returns names of all supported clients (e.g.
DefaultDictionary * defaultDictionary() const
Function returns the so-called DefaultDictionary.
Dictionary * dictionary(const TQString &language=TQString::null, const TQString &client=TQString::null) const
Returns dictionary for the given language and preferred client.
Settings * settings() const
Returns the Settings object used by the broker.
void configurationChanged()
Signal is emitted whenever the Settings object associated with this Broker changes.
static Broker * openBroker(TDESharedConfig *config=0)
Constructs the broker.
TQStringList languages() const
Returns a list of supported languages.
Class is returned by from Broker.