|
a/src/common/rclconfig.h |
|
b/src/common/rclconfig.h |
1 |
#ifndef _RCLCONFIG_H_INCLUDED_
|
1 |
#ifndef _RCLCONFIG_H_INCLUDED_
|
2 |
#define _RCLCONFIG_H_INCLUDED_
|
2 |
#define _RCLCONFIG_H_INCLUDED_
|
3 |
/* @(#$Id: rclconfig.h,v 1.8 2005-11-21 14:31:24 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: rclconfig.h,v 1.9 2005-11-25 09:13:07 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <list>
|
5 |
#include <list>
|
6 |
|
6 |
|
7 |
#include "conftree.h"
|
7 |
#include "conftree.h"
|
|
|
8 |
#include "smallut.h"
|
8 |
|
9 |
|
9 |
class RclConfig {
|
10 |
class RclConfig {
|
10 |
public:
|
11 |
public:
|
11 |
|
12 |
|
12 |
RclConfig();
|
13 |
RclConfig();
|
|
... |
|
... |
37 |
keydir = dir;
|
38 |
keydir = dir;
|
38 |
conf->get("defaultcharset", defcharset, keydir);
|
39 |
conf->get("defaultcharset", defcharset, keydir);
|
39 |
conf->get("defaultlanguage", deflang, keydir);
|
40 |
conf->get("defaultlanguage", deflang, keydir);
|
40 |
string str;
|
41 |
string str;
|
41 |
conf->get("guesscharset", str, keydir);
|
42 |
conf->get("guesscharset", str, keydir);
|
42 |
guesscharset = ConfTree::stringToBool(str);
|
43 |
guesscharset = stringToBool(str);
|
43 |
}
|
44 |
}
|
44 |
|
45 |
|
45 |
/**
|
46 |
/**
|
46 |
* Check if input mime type is a compressed one, and return command to
|
47 |
* Check if input mime type is a compressed one, and return command to
|
47 |
* uncompress if it is
|
48 |
* uncompress if it is
|