Switch to unified view

a/src/internfile/internfile.h b/src/internfile/internfile.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _INTERNFILE_H_INCLUDED_
17
#ifndef _INTERNFILE_H_INCLUDED_
18
#define _INTERNFILE_H_INCLUDED_
18
#define _INTERNFILE_H_INCLUDED_
19
/* @(#$Id: internfile.h,v 1.15 2007-06-19 12:27:52 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: internfile.h,v 1.16 2007-06-26 16:09:19 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <vector>
22
#include <vector>
23
using std::string;
23
using std::string;
24
using std::vector;
24
using std::vector;
...
...
85
    /** We normally always return text/plain data. A caller can request
85
    /** We normally always return text/plain data. A caller can request
86
     *  that we stop conversion at the native document type (ie: text/html) 
86
     *  that we stop conversion at the native document type (ie: text/html) 
87
     */
87
     */
88
    void setTargetMType(const string& tp) {m_targetMType = tp;}
88
    void setTargetMType(const string& tp) {m_targetMType = tp;}
89
89
90
    /** Utility function: extract internal document and make temporary file */
90
    /** Utility function: extract internal document into temporary file. 
91
     *  This is used mainly for starting an external viewer for a
92
     *  subdocument (ie: mail attachment).
93
     * @return true for success.
94
     * @param temp output reference-counted temp file object (goes
95
     *   away magically)
96
     * @param cnf The recoll config
97
     * @param fn  The main document from which to extract
98
     * @param ipath The internal path to the subdoc
99
     * @param mtype The target mime type (we don't want to decode to text!)
100
     */
91
    static bool idocTempFile(TempFile& temp, RclConfig *cnf, const string& fn, 
101
    static bool idocTempFile(TempFile& temp, RclConfig *cnf, const string& fn, 
92
                 const string& ipath, const string& mtype);
102
                 const string& ipath, const string& mtype);
93
103
94
    const string& getReason() const {return m_reason;}
104
    const string& getReason() const {return m_reason;}
95
    const list<string>& getMissingExternal();
105
    const list<string>& getMissingExternal();