summaryrefslogtreecommitdiffstats
path: root/src/storage/table_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/table_info.h')
-rw-r--r--src/storage/table_info.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/storage/table_info.h b/src/storage/table_info.h
index 8feee95..8d7fa05 100644
--- a/src/storage/table_info.h
+++ b/src/storage/table_info.h
@@ -22,8 +22,27 @@
#ifndef TABLE_INFO_H
#define TABLE_INFO_H
+#include "novel_types.h"
+
+
namespace pinyin{
+typedef enum {
+ NOT_USED, /* not used. */
+ SYSTEM_FILE, /* system phrase file. */
+ DICTIONARY, /* professional dictionary. */
+ USER_FILE, /* user only phrase file. */
+} PHRASE_FILE_TYPE;
+
+typedef struct {
+ guint8 m_dict_index; /* for assert purpose. */
+ const gchar * m_table_filename;
+ const gchar * m_system_filename;
+ const gchar * m_user_filename;
+ PHRASE_FILE_TYPE m_file_type;
+} pinyin_table_info_t;
+
+
class UserTableInfo;
class SystemTableInfo{