~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to maliit-settings/pluginsettings.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-01-31 13:26:48 UTC
  • Revision ID: package-import@ubuntu.com-20130131132648-w1u9d2279tppxcft
Tags: upstream-0.94.1
ImportĀ upstreamĀ versionĀ 0.94.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* * This file is part of Maliit framework *
 
2
 *
 
3
 * Copyright (C) 2012 Mattia Barbon <mattia@develer.com>
 
4
 *
 
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
 
9
 * of this file.
 
10
 */
 
11
 
 
12
#ifndef MALIIT_PLUGINSETTINGS_H
 
13
#define MALIIT_PLUGINSETTINGS_H
 
14
 
 
15
#include <QScopedPointer>
 
16
#include <QSharedPointer>
 
17
#include <QVariant>
 
18
 
 
19
class MImPluginSettingsInfo;
 
20
 
 
21
namespace Maliit {
 
22
 
 
23
class PluginSettingsPrivate;
 
24
class SettingsEntry;
 
25
class AttributeExtension;
 
26
 
 
27
 
 
28
/*!
 
29
 * \brief Configuration entries for an input method plugin
 
30
 */
 
31
    class PluginSettings : public QObject
 
32
{
 
33
    Q_OBJECT
 
34
 
 
35
public:
 
36
    virtual ~PluginSettings();
 
37
 
 
38
    /*!
 
39
     * \brief Lanaguage used for the plugin description.
 
40
     *
 
41
     * Could be either the preferred description language or a fallback chosen by the server.
 
42
     */
 
43
    QString descriptionLanguage() const;
 
44
 
 
45
    //! Internal plugin name
 
46
    QString pluginName() const;
 
47
 
 
48
    //! Human-readable plugin description
 
49
    QString pluginDescription() const;
 
50
 
 
51
    //! List of configuration entries for this plugin
 
52
    QList<QSharedPointer<SettingsEntry> > configurationEntries() const;
 
53
 
 
54
private:
 
55
    PluginSettings(const MImPluginSettingsInfo &info, const QSharedPointer<AttributeExtension> &extension);
 
56
 
 
57
    QScopedPointer<PluginSettingsPrivate> d_ptr;
 
58
 
 
59
    Q_DISABLE_COPY(PluginSettings)
 
60
    Q_DECLARE_PRIVATE(PluginSettings)
 
61
 
 
62
    friend class SettingsManager;
 
63
};
 
64
 
 
65
}
 
66
 
 
67
#endif // MALIIT_PLUGINSETTINGS_H