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