Switch to unified view

a/src/internfile/mimehandler.h b/src/internfile/mimehandler.h
1
#ifndef _MIMEHANDLER_H_INCLUDED_
1
#ifndef _MIMEHANDLER_H_INCLUDED_
2
#define _MIMEHANDLER_H_INCLUDED_
2
#define _MIMEHANDLER_H_INCLUDED_
3
/* @(#$Id: mimehandler.h,v 1.8 2005-11-16 15:07:20 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: mimehandler.h,v 1.9 2005-11-18 15:19:14 dockes Exp $  (C) 2004 J.F.Dockes */
4
4
5
#include <string>
5
#include <string>
6
#include <list>
6
#include <list>
7
7
8
#include "rclconfig.h"
8
#include "rclconfig.h"
...
...
12
/**
12
/**
13
 * Document interner class. 
13
 * Document interner class. 
14
 */
14
 */
15
class MimeHandler {
15
class MimeHandler {
16
 public:
16
 public:
17
    MimeHandler() : m_forPreview(false) {}
17
    virtual ~MimeHandler() {}
18
    virtual ~MimeHandler() {}
18
19
19
    /// Status from mkDoc method.
20
    /// Status from mkDoc method.
20
    enum Status {MHError, MHDone, MHAgain};
21
    enum Status {MHError, MHDone, MHAgain};
21
    /**
22
    /**
...
...
39
    virtual MimeHandler::Status mkDoc(RclConfig * conf, 
40
    virtual MimeHandler::Status mkDoc(RclConfig * conf, 
40
                      const std::string &filename, 
41
                      const std::string &filename, 
41
                      const std::string &mimetype, 
42
                      const std::string &mimetype, 
42
                      Rcl::Doc& outdoc,
43
                      Rcl::Doc& outdoc,
43
                      string& ipath) = 0;
44
                      string& ipath) = 0;
45
46
    virtual void setForPreview(bool onoff) {m_forPreview = onoff;};
47
48
 protected:
49
    bool m_forPreview;
44
};
50
};
45
51
46
/**
52
/**
47
 * Return indexing handler object for the given mime type
53
 * Return indexing handler object for the given mime type
48
 * returned pointer should be deleted by caller
54
 * returned pointer should be deleted by caller