summaryrefslogtreecommitdiffstats
path: root/src/SpecialPhrase.h
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-04-15 11:02:07 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-04-15 11:02:07 +0800
commit98f2c717f5c7d0d532e5ee53c55370bff01e3b33 (patch)
tree4e4219892576dcea4c8477ff77ad15d829f84ea8 /src/SpecialPhrase.h
parentade4b089f5f5974e070f59941c70376b72921219 (diff)
downloadibus-libpinyin-98f2c717f5c7d0d532e5ee53c55370bff01e3b33.tar.gz
ibus-libpinyin-98f2c717f5c7d0d532e5ee53c55370bff01e3b33.tar.xz
ibus-libpinyin-98f2c717f5c7d0d532e5ee53c55370bff01e3b33.zip
Split SpecialTable.{h, cc}
Diffstat (limited to 'src/SpecialPhrase.h')
-rw-r--r--src/SpecialPhrase.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/SpecialPhrase.h b/src/SpecialPhrase.h
new file mode 100644
index 0000000..9126c6d
--- /dev/null
+++ b/src/SpecialPhrase.h
@@ -0,0 +1,24 @@
+#ifndef __PY_SPECIAL_PHRASE_H_
+#define __PY_SPECIAL_PHRASE_H_
+
+#include <string>
+#include <glib.h>
+
+namespace PY {
+
+class SpecialPhrase {
+public:
+ SpecialPhrase (guint pos) : m_position (pos) { }
+
+ guint position (void) const {
+ return m_position;
+ }
+
+ virtual std::string text (void) = 0;
+private:
+ guint m_position;
+};
+
+};
+
+#endif