~ubuntu-branches/debian/jessie/xiphos/jessie

« back to all changes in this revision

Viewing changes to src/backend/sword_main.hh

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs
  • Date: 2010-03-22 18:15:54 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100322181554-qlqchymwhcw28c0c
* New upstream release:
  + Bugfix only
  + Compatible with xulrunner 1.9.2
  + Update translations

* Revert changes introduced in 3.1.2-1ubuntu1. Thank you Chris Coulson
  for temporary fix.
* debian/xiphos.1 - spelling mistake
* waf is now default buildsystem
* help is now licensed under GPL
* Bumped standards version no changes required
* Changed email to @ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Xiphos Bible Study Tool
3
 
 * sword_main.hh - 
 
3
 * sword_main.hh -
4
4
 *
5
5
 * Copyright (C) 2000-2009 Xiphos Developer Team
6
6
 *
34
34
using std::map;
35
35
using std::list;
36
36
using namespace sword;
37
 
        
 
37
 
38
38
class BackEnd {
39
39
        SWMgr *main_mgr;
40
40
        //TreeKeyIdx *tree_key;
47
47
        SWModule *search_mod;
48
48
        //SWFilter *thml2osis;
49
49
        //SWFilter *osis2html;
50
 
        
51
 
public: 
 
50
 
 
51
public:
52
52
        TreeKeyIdx *tree_key;
53
53
        SWModule *display_mod;
54
 
                
55
 
        const char *version;    
56
 
        SWDisplay *commDisplay; 
57
 
        SWDisplay *bookDisplay; 
 
54
 
 
55
        const char *version;
 
56
        SWDisplay *commDisplay;
 
57
        SWDisplay *bookDisplay;
58
58
        SWDisplay *dictDisplay;
59
59
        SWDisplay *textDisplay;
60
60
        SWDisplay *RTOLDisplay;
61
 
        SWDisplay *entryDisplay;                
62
 
        SWDisplay *chapDisplay;                 
 
61
        SWDisplay *entryDisplay;
 
62
        SWDisplay *chapDisplay;
63
63
        SWDisplay *dialogRTOLDisplay;
64
 
        SWDisplay *verselistDisplay;            
 
64
        SWDisplay *verselistDisplay;
65
65
        SWDisplay *viewerDisplay;
66
66
 
67
67
        BackEnd();
86
86
        int key_get_verse(const char *key);
87
87
        unsigned int key_chapter_count(const char *key);
88
88
        unsigned int key_verse_count(const char *key);
89
 
        
90
 
        
 
89
 
 
90
 
91
91
        char *get_module_key(void);
92
92
        void save_entry(const char * entry);
93
93
        void save_note_entry(const char * module, const char * key, const char * entry);
98
98
        int is_module(const char *mod_name);
99
99
        int set_module(const char *module_name);
100
100
        char *navigate_module(int direction);
101
 
        
 
101
 
102
102
        int module_type(const char *mod_name);
103
103
        char *module_description(char *mod_name);
104
104
        char *module_name_from_description(char *description);
105
105
        const char *module_get_language(const char *module_name);
106
106
        int module_has_testament(const char * module_name,  int testament);
107
107
        int module_get_testaments(const char * module_name);
108
 
        
 
108
 
109
109
        char *get_entry_attribute(const char *level1, const char *level2, const char *level3);
110
 
        
 
110
 
111
111
        char *get_key_from_offset(unsigned long offset);
112
112
        void set_treekey(unsigned long offset);
113
113
        unsigned long get_treekey_offset(void);
131
131
        int check_for_optimal_search(char * module_name);
132
132
        int do_module_index(char *module_name);
133
133
        int do_module_delete_index(char *module_name);
134
 
        int do_module_search(char *module_name, const char *search_string, 
 
134
        int do_module_search(char *module_name, const char *search_string,
135
135
                                int search_type, int search_params, int is_dialog);
136
136
        void terminate_search();
137
 
        
 
137
 
138
138
        char *get_conf_file_item(const char * file, const char * mod_name, const char * item);
139
139
        void save_conf_file_item(const char * file, const char * mod_name, const char * item, const char * value);
140
140
        void save_module_key(char *mod_name, char *key);