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.9 2005-11-18 15:19:14 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: mimehandler.h,v 1.10 2005-11-21 14:31:24 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"
...
...
51
51
52
/**
52
/**
53
 * Return indexing handler object for the given mime type
53
 * Return indexing handler object for the given mime type
54
 * returned pointer should be deleted by caller
54
 * returned pointer should be deleted by caller
55
 */
55
 */
56
extern MimeHandler *getMimeHandler(const std::string &mtyp, ConfTree *mhdlers);
56
extern MimeHandler *getMimeHandler(const std::string &mtyp, RclConfig *cfg);
57
58
/**
59
 * Return external viewer exec string for given mime type
60
 */
61
extern std::string getMimeViewer(const std::string &mtyp, ConfTree *mhandlers);
62
63
/**
64
 * Return icon name
65
 */
66
extern std::string getMimeIconName(const std::string &mtyp, ConfTree *mhandlers);
67
68
69
/** 
70
 * Return command to uncompress the given type. The returned command has
71
 * substitutable places for input file name and temp dir name, and will
72
 * return output name
73
 */
74
bool getUncompressor(const std::string &mtype, ConfTree *mhandlers,
75
           std::list<std::string>& cmd);
76
57
77
#endif /* _MIMEHANDLER_H_INCLUDED_ */
58
#endif /* _MIMEHANDLER_H_INCLUDED_ */