|
a/src/internfile/mh_text.h |
|
b/src/internfile/mh_text.h |
|
... |
|
... |
29 |
*
|
29 |
*
|
30 |
* Maybe try to guess charset, or use default, then transcode to utf8
|
30 |
* Maybe try to guess charset, or use default, then transcode to utf8
|
31 |
*/
|
31 |
*/
|
32 |
class MimeHandlerText : public RecollFilter {
|
32 |
class MimeHandlerText : public RecollFilter {
|
33 |
public:
|
33 |
public:
|
34 |
MimeHandlerText(const string& mt)
|
34 |
MimeHandlerText(RclConfig *cnf, const string& mt)
|
35 |
: RecollFilter(mt), m_paging(false), m_offs(0) {}
|
35 |
: RecollFilter(cnf, mt), m_paging(false), m_offs(0) {}
|
36 |
virtual ~MimeHandlerText() {}
|
36 |
virtual ~MimeHandlerText() {}
|
37 |
virtual bool set_document_file(const string &file_path);
|
37 |
virtual bool set_document_file(const string &file_path);
|
38 |
virtual bool set_document_string(const string&);
|
38 |
virtual bool set_document_string(const string&);
|
39 |
virtual bool is_data_input_ok(DataInput input) const {
|
39 |
virtual bool is_data_input_ok(DataInput input) const {
|
40 |
if (input == DOCUMENT_FILE_NAME || input == DOCUMENT_STRING)
|
40 |
if (input == DOCUMENT_FILE_NAME || input == DOCUMENT_STRING)
|