Switch to unified view

a/src/internfile/mimehandler.h b/src/internfile/mimehandler.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 _MIMEHANDLER_H_INCLUDED_
17
#ifndef _MIMEHANDLER_H_INCLUDED_
18
#define _MIMEHANDLER_H_INCLUDED_
18
#define _MIMEHANDLER_H_INCLUDED_
19
/* @(#$Id: mimehandler.h,v 1.15 2007-11-16 14:28:52 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: mimehandler.h,v 1.16 2008-10-04 14:26:59 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <list>
22
#include <list>
23
using std::string;
23
using std::string;
24
using std::list;
24
using std::list;
...
...
74
74
75
    virtual string get_error() const {
75
    virtual string get_error() const {
76
    return m_reason;
76
    return m_reason;
77
    }
77
    }
78
78
79
    virtual void clear() {
80
  m_forPreview = m_havedoc = false;
81
  Dijon::Filter::clear();
82
    }
83
79
protected:
84
protected:
80
    bool   m_forPreview;
85
    bool   m_forPreview;
81
    string m_defcharset;
86
    string m_defcharset;
82
    string m_reason;
87
    string m_reason;
83
    bool   m_havedoc;
88
    bool   m_havedoc;
...
...
90
 * @param cfg  the recoll config object to be used
95
 * @param cfg  the recoll config object to be used
91
 * @param filtertypes decide if we should restrict to types in 
96
 * @param filtertypes decide if we should restrict to types in 
92
 *     indexedmimetypes (if this is set at all).
97
 *     indexedmimetypes (if this is set at all).
93
 */
98
 */
94
extern Dijon::Filter *getMimeHandler(const std::string &mtyp, RclConfig *cfg,
99
extern Dijon::Filter *getMimeHandler(const std::string &mtyp, RclConfig *cfg,
100
95
                     bool filtertypes=false);
101
                     bool filtertypes=false);
102
/// Free up filter for reuse (you can also delete it)
103
extern void returnMimeHandler(Dijon::Filter *);
96
104
97
/// Can this mime type be interned ?
105
/// Can this mime type be interned ?
98
extern bool canIntern(const std::string mimetype, RclConfig *cfg);
106
extern bool canIntern(const std::string mimetype, RclConfig *cfg);
99
100
#endif /* _MIMEHANDLER_H_INCLUDED_ */
107
#endif /* _MIMEHANDLER_H_INCLUDED_ */