~ubuntu-branches/ubuntu/trusty/fcitx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/lib/fcitx-qt/fcitxqtconfiguiplugin.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-02-10 17:03:56 UTC
  • mfrom: (1.3.18) (33.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130210170356-2yuv6xy3ed378kn0
Tags: 1:4.2.7-1
* New upstream release.
* New binary packages:
  - fcitx-libs-gclient: D-Bus client library for Glib
  - fcitx-libs-qt: D-Bus client library for Qt
  - fcitx-module-quickphrase-editor: Quick Phrase editor module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2012~2012 by CSSlayer                                   *
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 *                                                                         *
 
9
 *   This program is distributed in the hope that it will be useful,       *
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
12
 *   GNU General Public License for more details.                          *
 
13
 *                                                                         *
 
14
 *   You should have received a copy of the GNU General Public License     *
 
15
 *   along with this program; if not, write to the                         *
 
16
 *   Free Software Foundation, Inc.,                                       *
 
17
 *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.              *
 
18
 ***************************************************************************/
 
19
 
 
20
#ifndef FCITXQTCONFIGPLUGIN_H
 
21
#define FCITXQTCONFIGPLUGIN_H
 
22
 
 
23
#include "fcitxqt_export.h"
 
24
#include <QString>
 
25
#include <QObject>
 
26
#include <QStringList>
 
27
 
 
28
class FcitxQtConfigUIWidget;
 
29
struct FCITX_QT_EXPORT_API FcitxQtConfigUIFactoryInterface
 
30
{
 
31
    virtual QString name() = 0;
 
32
    virtual FcitxQtConfigUIWidget *create( const QString &key ) = 0;
 
33
    virtual QStringList files() = 0;
 
34
    virtual QString domain() = 0;
 
35
 
 
36
};
 
37
 
 
38
#define FcitxQtConfigUIFactoryInterface_iid "org.fcitx.Fcitx.FcitxQtConfigUIFactoryInterface"
 
39
Q_DECLARE_INTERFACE(FcitxQtConfigUIFactoryInterface, FcitxQtConfigUIFactoryInterface_iid)
 
40
 
 
41
class FCITX_QT_EXPORT_API FcitxQtConfigUIPlugin : public QObject, public FcitxQtConfigUIFactoryInterface {
 
42
    Q_OBJECT
 
43
    Q_INTERFACES(FcitxQtConfigUIFactoryInterface)
 
44
public:
 
45
    explicit FcitxQtConfigUIPlugin(QObject* parent = 0);
 
46
    virtual ~FcitxQtConfigUIPlugin();
 
47
};
 
48
 
 
49
 
 
50
#endif // FCITXCONFIGPLUGIN_H