|
a/src/utils/idfile.h |
|
b/src/utils/idfile.h |
1 |
#ifndef _IDFILE_H_INCLUDED_
|
1 |
#ifndef _IDFILE_H_INCLUDED_
|
2 |
#define _IDFILE_H_INCLUDED_
|
2 |
#define _IDFILE_H_INCLUDED_
|
3 |
/* @(#$Id: idfile.h,v 1.1 2005-04-07 09:05:39 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: idfile.h,v 1.2 2005-10-19 14:14:17 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
|
|
6 |
#include <list>
|
6 |
|
7 |
|
7 |
// Return mime type for file or empty string. The system's file utility does
|
8 |
// Return mime type for file or empty string. The system's file utility does
|
8 |
// a bad job on mail folders. idFile only looks for mail file types for now,
|
9 |
// a bad job on mail folders. idFile only looks for mail file types for now,
|
9 |
// but this may change
|
10 |
// but this may change
|
10 |
extern std::string idFile(const char *fn);
|
11 |
extern std::string idFile(const char *fn);
|
11 |
|
12 |
|
|
|
13 |
// Return all types known to us
|
|
|
14 |
extern std::list<std::string> idFileAllTypes();
|
|
|
15 |
|
12 |
#endif /* _IDFILE_H_INCLUDED_ */
|
16 |
#endif /* _IDFILE_H_INCLUDED_ */
|