Imported version 0.2-1
[mstardict] / src / lib / common.hpp
1 #ifndef _COMMON_HPP_
2 #define _COMMON_HPP_
3
4 #include <glib.h>
5 #include <list>
6 #include <string>
7
8 //this structure contain all information about dictionary
9 struct DictInfo {
10   std::string ifo_file_name;
11   guint32 wordcount;
12   guint32 synwordcount;
13   std::string bookname;
14   std::string author;
15   std::string email;
16   std::string website;
17   std::string date;
18   std::string description;
19   guint32 index_file_size;
20   std::string sametypesequence;
21   std::string dicttype;
22   bool load_from_ifo_file(const std::string& ifofilename, bool istreedict);
23 };
24
25 typedef std::list<std::string> strlist_t;
26
27 #endif//!_COMMON_HPP_