|
a/src/internfile/mh_unknown.h |
|
b/src/internfile/mh_unknown.h |
|
... |
|
... |
26 |
* Handler for files with no content handler: does nothing.
|
26 |
* Handler for files with no content handler: does nothing.
|
27 |
*
|
27 |
*
|
28 |
*/
|
28 |
*/
|
29 |
class MimeHandlerUnknown : public RecollFilter {
|
29 |
class MimeHandlerUnknown : public RecollFilter {
|
30 |
public:
|
30 |
public:
|
31 |
MimeHandlerUnknown(RclConfig *cnf, const string& mt)
|
31 |
MimeHandlerUnknown(RclConfig *cnf, const string& id)
|
32 |
: RecollFilter(cnf, mt) {}
|
32 |
: RecollFilter(cnf, id)
|
|
|
33 |
{
|
|
|
34 |
}
|
33 |
virtual ~MimeHandlerUnknown() {}
|
35 |
virtual ~MimeHandlerUnknown()
|
|
|
36 |
{
|
|
|
37 |
}
|
34 |
virtual bool set_document_file(const string& fn) {
|
38 |
virtual bool set_document_file(const string& mt, const string& fn)
|
|
|
39 |
{
|
35 |
RecollFilter::set_document_file(fn);
|
40 |
RecollFilter::set_document_file(mt, fn);
|
36 |
return m_havedoc = true;
|
41 |
return m_havedoc = true;
|
37 |
}
|
42 |
}
|
38 |
virtual bool set_document_string(const string&) {
|
43 |
virtual bool set_document_string(const string& mt, const string& s) {
|
|
|
44 |
RecollFilter::set_document_string(mt, s);
|
39 |
return m_havedoc = true;
|
45 |
return m_havedoc = true;
|
40 |
}
|
46 |
}
|
41 |
virtual bool next_document() {
|
47 |
virtual bool next_document() {
|
42 |
if (m_havedoc == false)
|
48 |
if (m_havedoc == false)
|
43 |
return false;
|
49 |
return false;
|