~maliit-team/maliit-plugin-jp/trunk

« back to all changes in this revision

Viewing changes to skeleton/mallit/plugin.h

  • Committer: liang
  • Date: 2011-07-20 17:19:53 UTC
  • Revision ID: git-v1:c3d107a6b280a8d2c071bb1df794c7b0a4d4c703
package done

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef PLUGIN_H
2
 
#define PLUGIN_H
3
 
 
4
 
#include <QObject>
5
 
#include <QString>
6
 
#include <QStringList>
7
 
#include <QSet>
8
 
 
9
 
#include <minputmethodplugin.h>
10
 
 
11
 
namespace plugin {
12
 
 
13
 
class PluginPrivate ;
14
 
 
15
 
class Plugin : public QObject, public MInputMethodPlugin {
16
 
    Q_OBJECT
17
 
    Q_INTERFACES( MInputMethodPlugin )
18
 
 
19
 
public :
20
 
    Plugin() ;
21
 
    virtual ~Plugin() ;
22
 
 
23
 
    virtual QString name() const ;
24
 
    virtual QStringList languages() const ;
25
 
    virtual MAbstractInputMethod* createInputMethod( MAbstractInputMethodHost *host, QWidget *mainWindow ) ;
26
 
    virtual MAbstractInputMethodSettings* createInputMethodSettings() ;
27
 
    virtual QSet<MInputMethod::HandlerState> supportedStates() const ;
28
 
 
29
 
private :
30
 
    Q_DISABLE_COPY( Plugin ) ;
31
 
    Q_DECLARE_PRIVATE( Plugin ) ;
32
 
    PluginPrivate* const d_ptr ;
33
 
} ;
34
 
 
35
 
}
36
 
 
37
 
//Q_DECLARE_INTERFACE( plugin::Plugin, "com.meego.meegoimframework.Plugin/1.1" )
38
 
 
39
 
#endif