blob: d86cde9d2946c53ae7362b43a60e08bc694eb9da (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#ifndef DOCENTRY_H
#define DOCENTRY_H
#include <tqstring.h>
#include <tqvaluelist.h>
namespace KHC {
class DocEntry
{
public:
typedef TQValueList<DocEntry *> List;
DocEntry();
DocEntry( const TQString &name, const TQString &url = TQString::null,
const TQString &icon = TQString::null );
void setName( const TQString & );
TQString name() const;
void setSearch( const TQString & );
TQString search() const;
void setIcon( const TQString & );
TQString icon() const;
void setUrl( const TQString & );
TQString url() const;
void setInfo( const TQString & );
TQString info() const;
void setLang( const TQString & );
TQString lang() const;
void setIdentifier( const TQString & );
TQString identifier() const;
void setIndexer( const TQString & );
TQString indexer() const;
void setIndexTestFile( const TQString & );
TQString indexTestFile() const;
void setWeight( int );
int weight() const;
void setSearchMethod( const TQString & );
TQString searchMethod() const;
void enableSearch( bool enabled );
bool searchEnabled() const;
void setSearchEnabledDefault( bool enabled );
bool searchEnabledDefault() const;
void setDocumentType( const TQString & );
TQString documentType() const;
void setDirectory( bool );
bool isDirectory() const;
bool readFromFile( const TQString &fileName );
bool indexExists( const TQString &indexDir );
bool docExists() const;
void addChild( DocEntry * );
bool hasChildren();
DocEntry *firstChild();
List children();
void setParent( DocEntry * );
DocEntry *parent();
void setNextSibling( DocEntry * );
DocEntry *nextSibling();
TQString khelpcenterSpecial() const;
bool isSearchable();
void dump() const;
protected:
void init();
private:
TQString mName;
TQString mSearch;
TQString mIcon;
TQString mUrl;
TQString mInfo;
TQString mLang;
mutable TQString mIdentifier;
TQString mIndexer;
TQString mIndexTestFile;
int mWeight;
TQString mSearchMethod;
bool mSearchEnabled;
bool mSearchEnabledDefault;
TQString mDocumentType;
bool mDirectory;
TQString mKhelpcenterSpecial;
List mChildren;
DocEntry *mParent;
DocEntry *mNextSibling;
};
}
#endif
// vim:ts=2:sw=2:et
|