|
a/src/internfile/mimehandler.h |
|
b/src/internfile/mimehandler.h |
|
... |
|
... |
34 |
: Dijon::Filter(mtype), m_forPreview(false), m_havedoc(false)
|
34 |
: Dijon::Filter(mtype), m_forPreview(false), m_havedoc(false)
|
35 |
{}
|
35 |
{}
|
36 |
virtual ~RecollFilter() {}
|
36 |
virtual ~RecollFilter() {}
|
37 |
virtual bool set_property(Properties p, const string &v) {
|
37 |
virtual bool set_property(Properties p, const string &v) {
|
38 |
switch (p) {
|
38 |
switch (p) {
|
|
|
39 |
case DJF_UDI:
|
|
|
40 |
m_udi = v;
|
|
|
41 |
break;
|
39 |
case DEFAULT_CHARSET:
|
42 |
case DEFAULT_CHARSET:
|
40 |
m_defcharset = v;
|
43 |
m_defcharset = v;
|
41 |
break;
|
44 |
break;
|
42 |
case OPERATING_MODE:
|
45 |
case OPERATING_MODE:
|
43 |
if (!v.empty() && v[0] == 'v')
|
46 |
if (!v.empty() && v[0] == 'v')
|
|
... |
|
... |
92 |
protected:
|
95 |
protected:
|
93 |
bool m_forPreview;
|
96 |
bool m_forPreview;
|
94 |
string m_defcharset;
|
97 |
string m_defcharset;
|
95 |
string m_reason;
|
98 |
string m_reason;
|
96 |
bool m_havedoc;
|
99 |
bool m_havedoc;
|
|
|
100 |
string m_udi; // May be set by creator as a hint
|
97 |
};
|
101 |
};
|
98 |
|
102 |
|
99 |
/**
|
103 |
/**
|
100 |
* Return indexing handler object for the given mime type
|
104 |
* Return indexing handler object for the given mime type
|
101 |
* returned pointer should be deleted by caller
|
105 |
* returned pointer should be deleted by caller
|