comments
This commit is contained in:
parent
0df4c06e85
commit
fd12341b99
@ -26,10 +26,18 @@
|
|||||||
class HandlerTimeout {};
|
class HandlerTimeout {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Turn external document into internal one by executing an external filter.
|
* Turn external document into internal one by executing an external command.
|
||||||
*
|
*
|
||||||
* The command to execute, and its parameters, are stored in the "params"
|
* The command to execute, and its parameters, are defined in the mimeconf
|
||||||
* which is built in mimehandler.cpp out of data from the mimeconf file.
|
* configuration file, and stored by mimehandler.cpp in the object when it is
|
||||||
|
* built. This data is not reset by a clear() call.
|
||||||
|
*
|
||||||
|
* The output MIME type (typically text/plain or text/html) and output
|
||||||
|
* character set are also defined in mimeconf. The default is text/html, utf-8
|
||||||
|
*
|
||||||
|
* The command will write the document text to stdout. Its only way to
|
||||||
|
* set metadata is through "meta" tags if the output MIME is
|
||||||
|
* text/html.
|
||||||
*
|
*
|
||||||
* As any RecollFilter, a MimeHandlerExec object can be reset
|
* As any RecollFilter, a MimeHandlerExec object can be reset
|
||||||
* by calling clear(), and will stay initialised for the same mtype
|
* by calling clear(), and will stay initialised for the same mtype
|
||||||
@ -82,10 +90,14 @@ protected:
|
|||||||
// If md5 not excluded by handler name, allow/forbid depending on mime
|
// If md5 not excluded by handler name, allow/forbid depending on mime
|
||||||
bool m_nomd5;
|
bool m_nomd5;
|
||||||
|
|
||||||
// Set up the character set metadata fields and possibly transcode
|
// Set the character set field and possibly transcode text/plain
|
||||||
// text/plain output.
|
// output.
|
||||||
// @param charset when called from mh_execm, a possible explicit
|
//
|
||||||
// value from the filter (else the data will come from the config)
|
// @param mt the MIME type. A constant for mh_exec, but may depend on the
|
||||||
|
// subdocument entry for mh_execm.
|
||||||
|
// @param charset Document character set. A constant (empty
|
||||||
|
// parameter) for mh_exec (we use the value defined in mimeconf),
|
||||||
|
// possibly sent from the command for mh_execm.
|
||||||
virtual void handle_cs(const std::string& mt,
|
virtual void handle_cs(const std::string& mt,
|
||||||
const std::string& charset = std::string());
|
const std::string& charset = std::string());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user