edelib 1.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

MimeType.h
1 /*
2 * $Id: MimeType.h 2839 2009-09-28 11:36:20Z karijes $
3 *
4 * Mime handling class
5 * Copyright (c) 2005-2007 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __EDELIB_MIMETYPE_H__
22 #define __EDELIB_MIMETYPE_H__
23
24 #include "String.h"
25
26 EDELIB_NS_BEGIN
27
51 class EDELIB_API MimeType {
52 private:
53 unsigned char status;
54 String mtype;
55 String mcmt;
56 String micon;
57
58 E_DISABLE_CLASS_COPY(MimeType)
59 public:
61 MimeType();
63 ~MimeType();
64
71 bool set(const char* filename);
72
76 const String& type(void) const;
77
82 const String& comment(void);
83
87 bool subclass_of(const char* mime);
88
112 const String& icon_name(void);
113 };
114
115 EDELIB_NS_END
116 #endif