|
a/src/internfile/internfile.h |
|
b/src/internfile/internfile.h |
|
... |
|
... |
100 |
void setTargetMType(const string& tp) {m_targetMType = tp;}
|
100 |
void setTargetMType(const string& tp) {m_targetMType = tp;}
|
101 |
|
101 |
|
102 |
/* In case we see an html version, it's set aside and can be recovered */
|
102 |
/* In case we see an html version, it's set aside and can be recovered */
|
103 |
const string& get_html() {return m_html;}
|
103 |
const string& get_html() {return m_html;}
|
104 |
|
104 |
|
105 |
/** Utility function: extract internal document into temporary file.
|
105 |
/** Extract internal document into temporary file.
|
106 |
* This is used mainly for starting an external viewer for a
|
106 |
* This is used mainly for starting an external viewer for a
|
107 |
* subdocument (ie: mail attachment).
|
107 |
* subdocument (ie: mail attachment).
|
108 |
* @return true for success.
|
108 |
* @return true for success.
|
109 |
* @param temp output reference-counted temp file object (goes
|
109 |
* @param temp output reference-counted temp file object (goes
|
110 |
* away magically)
|
110 |
* away magically). Only used if tofile.empty()
|
|
|
111 |
* @param tofile output file if not null
|
111 |
* @param cnf The recoll config
|
112 |
* @param cnf The recoll config
|
112 |
* @param fn The main document from which to extract
|
113 |
* @param fn The main document from which to extract
|
113 |
* @param ipath The internal path to the subdoc
|
114 |
* @param ipath The internal path to the subdoc
|
114 |
* @param mtype The target mime type (we don't want to decode to text!)
|
115 |
* @param mtype The target mime type (we don't want to decode to text!)
|
115 |
*/
|
116 |
*/
|
116 |
static bool idocTempFile(TempFile& temp, RclConfig *cnf, const string& fn,
|
117 |
static bool idocToFile(TempFile& temp, const string& tofile,
|
|
|
118 |
RclConfig *cnf, const string& fn,
|
117 |
const string& ipath, const string& mtype);
|
119 |
const string& ipath, const string& mtype);
|
118 |
|
120 |
|
119 |
const string& getReason() const {return m_reason;}
|
121 |
const string& getReason() const {return m_reason;}
|
120 |
static void getMissingExternal(string& missing);
|
122 |
static void getMissingExternal(string& missing);
|
121 |
static void getMissingDescription(string& desc);
|
123 |
static void getMissingDescription(string& desc);
|
122 |
|
124 |
|