|
a/src/internfile/mimehandler.cpp |
|
b/src/internfile/mimehandler.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: mimehandler.cpp,v 1.17 2006-03-20 16:05:41 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: mimehandler.cpp,v 1.18 2006-03-29 13:08:08 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
96 |
return new MimeHandlerUnknown;
|
96 |
return new MimeHandlerUnknown;
|
97 |
} else {
|
97 |
} else {
|
98 |
return 0;
|
98 |
return 0;
|
99 |
}
|
99 |
}
|
100 |
}
|
100 |
}
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
/// Can this mime type be interned (according to config) ?
|
|
|
104 |
bool canIntern(const std::string mtype, RclConfig *cfg)
|
|
|
105 |
{
|
|
|
106 |
if (mtype.empty())
|
|
|
107 |
return false;
|
|
|
108 |
string hs = cfg->getMimeHandlerDef(mtype);
|
|
|
109 |
if (hs.empty())
|
|
|
110 |
return false;
|
|
|
111 |
return true;
|
|
|
112 |
}
|