summaryrefslogtreecommitdiffstats
path: root/src/PinyinEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PinyinEngine.h')
-rw-r--r--src/PinyinEngine.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/PinyinEngine.h b/src/PinyinEngine.h
index 6f2d0b7..398c028 100644
--- a/src/PinyinEngine.h
+++ b/src/PinyinEngine.h
@@ -1,20 +1,13 @@
/* vim:set et sts=4: */
-#ifndef __PY_PIN_YIN_ENGINE_H__
-#define __PY_PIN_YIN_ENGINE_H__
-
-#include <ibus.h>
-#include "Pointer.h"
-#include "Database.h"
-#include "LookupTable.h"
-#include "Property.h"
-#include "Config.h"
-#include "Editor.h"
-#include "FallbackEditor.h"
+#ifndef __PY_PINYIN_ENGINE_H__
+#define __PY_PINYIN_ENGINE_H__
+
+#include "Engine.h"
#include "PinyinProperties.h"
namespace PY {
-class PinyinEngine {
+class PinyinEngine : public Engine {
public:
PinyinEngine (IBusEngine *engine);
~PinyinEngine (void);
@@ -25,7 +18,7 @@ public:
reset ();
}
- void reset (gboolean need_update = TRUE) {
+ void reset (void) {
m_prev_pressed_key = IBUS_VoidSymbol;
m_input_mode = MODE_INIT;
for (gint i = 0; i < MODE_LAST; i++) {
@@ -67,10 +60,8 @@ private:
void slotUpdateProperty (Property & prop);
private:
- Pointer<IBusEngine> m_engine; // engine pointer
PinyinProperties m_props;
-
guint m_prev_pressed_key;
enum {