summaryrefslogtreecommitdiffstats
path: root/src/PYEngine.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-02-17 16:45:14 +0800
committerPeng Wu <alexepico@gmail.com>2014-02-17 16:45:14 +0800
commit4982c9f9095d53c0c7537b6b852ee41ae8fe0e71 (patch)
tree0375c7d286c663c646777f9b1b81bf165593cb23 /src/PYEngine.h
parenta8dbbd654f6eb34df4176cb873399b4c02b536ee (diff)
downloadibus-libpinyin-4982c9f9095d53c0c7537b6b852ee41ae8fe0e71.tar.gz
ibus-libpinyin-4982c9f9095d53c0c7537b6b852ee41ae8fe0e71.tar.xz
ibus-libpinyin-4982c9f9095d53c0c7537b6b852ee41ae8fe0e71.zip
move logics to class PYEngine
Diffstat (limited to 'src/PYEngine.h')
-rw-r--r--src/PYEngine.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/PYEngine.h b/src/PYEngine.h
index 0866146..702520c 100644
--- a/src/PYEngine.h
+++ b/src/PYEngine.h
@@ -37,15 +37,17 @@ GType ibus_pinyin_engine_get_type (void);
class Engine {
public:
- Engine (IBusEngine *engine) : m_engine (engine) { }
+ Engine (IBusEngine *engine);
virtual ~Engine (void);
+ gboolean contentIsPassword();
+
// virtual functions
virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers) = 0;
virtual void focusIn (void) = 0;
- virtual void focusOut (void) = 0;
+ virtual void focusOut (void);
#if IBUS_CHECK_VERSION (1, 5, 4)
- virtual void setContentType (guint purpose, guint hints) = 0;
+ virtual void setContentType (guint purpose, guint hints);
#endif
virtual void reset (void) = 0;
virtual void enable (void) = 0;
@@ -125,6 +127,11 @@ protected:
protected:
Pointer<IBusEngine> m_engine; // engine pointer
+
+#if IBUS_CHECK_VERSION (1, 5, 4)
+ IBusInputPurpose m_input_purpose;
+#endif
+
};
};