summaryrefslogtreecommitdiff
path: root/bindings/corba/swordorb.idl
blob: 4df5c52accb4564697d7caa74f5c55a4633b1702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/******************************************************************************
 *	sword.idl	- This file contains a simple idl for accessing sword
 */

#ifndef SWORDORB_IDL
#define SWORDORB_IDL

module swordorb {

typedef sequence<string> StringList;

struct ModInfo {
	string name;
	string description;
	string category;
	string language;
};

typedef sequence<ModInfo> ModInfoList;

struct SearchHit {
	string modName;
	string key;
	long score;
};

typedef sequence<SearchHit> SearchHitList;
//-----------------------------------------------------------------
// SWModule methods

	enum SearchType {
		REGEX,
		PHRASE,
		MULTIWORD
	};


interface SWModule {
	void   terminateSearch();
	SearchHitList search(in string istr, in SearchType searchType, in long flags, in string scope);
	char   error();
	long  getEntrySize();
	StringList getEntryAttribute(in string level1, in string level2, in string level3);
	void   setKeyText(in string key);
	string getKeyText();
	StringList getKeyChildren();
	string getName();
	string getDescription();
	string getCategory();
	void   previous();
	void   next();
	void   begin();
	string getStripText();
	string getRenderText();
	string getConfigEntry(in string key);
};


//-----------------------------------------------------------------
// SWMgr methods
//
interface SWMgr {
	ModInfoList getModInfoList();
	SWModule getModuleByName(in string name);
	string getPrefixPath();
	string getConfigPath();
	void   setGlobalOption(in string option, in string value);
	string getGlobalOption(in string option);
	string getGlobalOptionTip(in string option);
	StringList getGlobalOptions();
	StringList getGlobalOptionValues(in string option);
	void     setCipherKey(in string modName, in string key);
	void     terminate();
	boolean testConnection();

};

};

#endif