|
a/src/internfile/mh_exec.h |
|
b/src/internfile/mh_exec.h |
|
... |
|
... |
60 |
int m_filtermaxmbytes;
|
60 |
int m_filtermaxmbytes;
|
61 |
////////////////
|
61 |
////////////////
|
62 |
|
62 |
|
63 |
MimeHandlerExec(RclConfig *cnf, const std::string& id);
|
63 |
MimeHandlerExec(RclConfig *cnf, const std::string& id);
|
64 |
|
64 |
|
65 |
virtual bool set_document_file(const std::string& mt,
|
|
|
66 |
const std::string &file_path) {
|
|
|
67 |
RecollFilter::set_document_file(mt, file_path);
|
|
|
68 |
m_fn = file_path;
|
|
|
69 |
m_havedoc = true;
|
|
|
70 |
return true;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
virtual bool next_document();
|
65 |
virtual bool next_document();
|
74 |
virtual bool skip_to_document(const std::string& ipath);
|
66 |
virtual bool skip_to_document(const std::string& ipath);
|
75 |
|
67 |
|
76 |
virtual void clear() {
|
68 |
virtual void clear() {
|
77 |
m_fn.erase();
|
69 |
m_fn.erase();
|
78 |
m_ipath.erase();
|
70 |
m_ipath.erase();
|
79 |
RecollFilter::clear();
|
71 |
RecollFilter::clear();
|
80 |
}
|
72 |
}
|
81 |
|
73 |
|
82 |
protected:
|
74 |
protected:
|
|
|
75 |
virtual bool set_document_file_impl(const std::string& mt,
|
|
|
76 |
const std::string& file_path);
|
|
|
77 |
|
83 |
std::string m_fn;
|
78 |
std::string m_fn;
|
84 |
std::string m_ipath;
|
79 |
std::string m_ipath;
|
85 |
|
80 |
// md5 computation excluded by handler name: can't change after init
|
|
|
81 |
bool m_handlernomd5;
|
|
|
82 |
bool m_hnomd5init;
|
|
|
83 |
// If md5 not excluded by handler name, allow/forbid depending on mime
|
|
|
84 |
bool m_nomd5;
|
|
|
85 |
|
86 |
// Set up the character set metadata fields and possibly transcode
|
86 |
// Set up the character set metadata fields and possibly transcode
|
87 |
// text/plain output.
|
87 |
// text/plain output.
|
88 |
// @param charset when called from mh_execm, a possible explicit
|
88 |
// @param charset when called from mh_execm, a possible explicit
|
89 |
// value from the filter (else the data will come from the config)
|
89 |
// value from the filter (else the data will come from the config)
|
90 |
virtual void handle_cs(const std::string& mt,
|
90 |
virtual void handle_cs(const std::string& mt,
|