~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to src/qt-im/qhimeinputcontextplugin.h

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** $Id$
 
3
**
 
4
** Definition of QHIMEInputContextPlugin class
 
5
**
 
6
** Copyright (C) 2004 immodule for Qt Project.  All rights reserved.
 
7
**
 
8
** This file is written to contribute to Trolltech AS under their own
 
9
** licence. You may use this file under your Qt license. Following
 
10
** description is copied from their original file headers. Contact
 
11
** immodule-qt@freedesktop.org if any conditions of this licensing are
 
12
** not clear to you.
 
13
**
 
14
**
 
15
** This file is part of the input method module of the Qt GUI Toolkit.
 
16
**
 
17
** This file may be distributed under the terms of the Q Public License
 
18
** as defined by Trolltech AS of Norway and appearing in the file
 
19
** LICENSE.QPL included in the packaging of this file.
 
20
**
 
21
** This file may be distributed and/or modified under the terms of the
 
22
** GNU General Public License version 2 as published by the Free Software
 
23
** Foundation and appearing in the file LICENSE.GPL included in the
 
24
** packaging of this file.
 
25
**
 
26
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
 
27
** licenses may use this file in accordance with the Qt Commercial License
 
28
** Agreement provided with the Software.
 
29
**
 
30
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 
31
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
32
**
 
33
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
 
34
**   information about Qt Commercial License Agreements.
 
35
** See http://www.trolltech.com/qpl/ for QPL licensing information.
 
36
** See http://www.trolltech.com/gpl/ for GPL licensing information.
 
37
**
 
38
** Contact info@trolltech.com if any conditions of this licensing are
 
39
** not clear to you.
 
40
**
 
41
**********************************************************************/
 
42
 
 
43
#include "qhimeinputcontext.h"
 
44
#include <qinputcontextplugin.h>
 
45
// #include <qstringlist.h>
 
46
 
 
47
 
 
48
class QHIMEInputContextPlugin : public QInputContextPlugin
 
49
{
 
50
    Q_OBJECT
 
51
public:
 
52
    QHIMEInputContextPlugin();
 
53
    ~QHIMEInputContextPlugin();
 
54
 
 
55
    QStringList keys() const;
 
56
    QInputContext *create( const QString &key );
 
57
    QStringList languages( const QString &key );
 
58
    QString displayName( const QString &key );
 
59
    QString description( const QString &key );
 
60
};