MimeType.h
/*
* $Id: MimeType.h 2839 2009-09-28 11:36:20Z karijes $
*
* Mime handling class
* Copyright (c) 2005-2007 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_MIMETYPE_H__
#define __EDELIB_MIMETYPE_H__
#include "String.h"
EDELIB_NS_BEGIN
class EDELIB_API MimeType {
private:
unsigned char status;
String mtype;
String mcmt;
String micon;
E_DISABLE_CLASS_COPY(MimeType)
public:
MimeType();
~MimeType();
bool set(const char* filename);
const String& type(void) const;
const String& comment(void);
bool subclass_of(const char* mime);
const String& icon_name(void);
};
EDELIB_NS_END
#endif
edelib::MimeType
Mime handling class.
Definition: MimeType.h:51
E_DISABLE_CLASS_COPY
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
edelib::String
A (relatively simple) string implementation.
Definition: String.h:82