1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2012 Mattia Barbon <mattia@develer.com>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License version 2.1 as published by the Free Software Foundation
8
* and appearing in the file LICENSE.LGPL included in the packaging
12
#ifndef MALIIT_PLUGINSETTINGS_H
13
#define MALIIT_PLUGINSETTINGS_H
15
#include <QScopedPointer>
16
#include <QSharedPointer>
19
class MImPluginSettingsInfo;
23
class PluginSettingsPrivate;
25
class AttributeExtension;
29
* \brief Configuration entries for an input method plugin
31
class PluginSettings : public QObject
36
virtual ~PluginSettings();
39
* \brief Lanaguage used for the plugin description.
41
* Could be either the preferred description language or a fallback chosen by the server.
43
QString descriptionLanguage() const;
45
//! Internal plugin name
46
QString pluginName() const;
48
//! Human-readable plugin description
49
QString pluginDescription() const;
51
//! List of configuration entries for this plugin
52
QList<QSharedPointer<SettingsEntry> > configurationEntries() const;
55
PluginSettings(const MImPluginSettingsInfo &info, const QSharedPointer<AttributeExtension> &extension);
57
QScopedPointer<PluginSettingsPrivate> d_ptr;
59
Q_DISABLE_COPY(PluginSettings)
60
Q_DECLARE_PRIVATE(PluginSettings)
62
friend class SettingsManager;
67
#endif // MALIIT_PLUGINSETTINGS_H