kcharsets.h
/* This file is part of the KDE libraries
Copyright (C) 1999 Lars Knoll (knoll@kde.org)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KCHARSETS_H
#define KCHARSETS_H
#include <qstring.h>
#include <qfont.h>
#include <qstringlist.h>
#include <qptrlist.h>
#include "kdelibs_export.h"
class KGlobal;
class KCharsetsPrivate;
class QTextCodec;
class KDECORE_EXPORT KCharsets
{
friend class KGlobal;
protected:
KCharsets();
public:
virtual ~KCharsets();
QTextCodec *codecForName(const QString &name) const;
QTextCodec *codecForName(const QString &n, bool &ok) const;
static QChar fromEntity(const QString &str);
static QChar fromEntity(const QString &str, int &len);
static QString toEntity(const QChar &ch);
static QString resolveEntities( const QString &text );
QStringList availableEncodingNames();
QStringList descriptiveEncodingNames();
QString languageForEncoding( const QString &encoding );
QString encodingForName( const QString &descriptiveName );
private:
KCharsetsPrivate *d;
};
#endif
KCharsets
Charset font and encoder/decoder handling.
Definition: kcharsets.h:43
KGlobal
Access to the KDE global objects.
Definition: kglobal.h:44

KDE Home | KDE Accessibility Home | Description of Access Keys