QTextCodecPlugin(3qt)
π QTextCodecPlugin π (from the 3qt manual, bestie)
πΈ NAME πΈ
QTextCodecPlugin β the abstract base class for making your own custom QTextCodec plugins. it's giving "build your own codec, but make it pluggable" β¨
π SYNOPSIS π
okay so first things first, the vibe check:
All the functions in this class are reentrant when Qt is built with thread support. π§΅β¨
and you get to it like this:
#include <qtextcodecplugin.h>
π Public Members π
QTextCodecPlugin ()
~QTextCodecPlugin ()
virtual QStringList names () const = 0
virtual QTextCodec * createForName ( const QString & name ) = 0
virtual QValueList<int> mibEnums () const = 0
virtual QTextCodec * createForMib ( int mib ) = 0
π¦ DESCRIPTION π¦
so QTextCodecPlugin is literally the abstract base for custom QTextCodec plugins. that's the whole thing. π
the text codec plugin is a simple plugin interface that makes it so easy to create custom text codecs that can get loaded dynamically into applications. plug and play, no cap. πβ¨
here's how you actually write one, bestie: you subclass this base class, you reimplement the pure virtual functions names(), createForName(), mibEnums() and createForMib(), and then you export the class with the Q_EXPORT_PLUGIN macro. that's it. that's the recipe. π§ the Qt Plugins documentation has the full tea if you want it.
also, go peek at the IANA character-sets encoding file for more info on mime names and mib enums β it's the source of truth, iykyk.
See also Plugins. π«Ά
π MEMBER FUNCTION DOCUMENTATION π
QTextCodecPlugin::QTextCodecPlugin ()
Constructs a text codec plugin. the way this gets invoked automatically by the Q_EXPORT_PLUGIN macro? iconic, you never have to think about it. β¨
QTextCodecPlugin::~QTextCodecPlugin ()
Destroys the text codec plugin. π«§
you never have to call this explicitly, fr fr. Qt destroys a plugin automatically when it's no longer used. it handles itself, main character energy. π
QTextCodec * QTextCodecPlugin::createForMib ( int mib ) [pure virtual]
Creates a QTextCodec object for the mib enum mib. π οΈ
(go check the IANA character-sets encoding file for more info, it's all there)
See also mibEnums(). π
QTextCodec * QTextCodecPlugin::createForName ( const QString & name ) [pure virtual]
Creates a QTextCodec object for the codec called name. π·οΈ
See also names(). π
QValueList<int> QTextCodecPlugin::mibEnums () const [pure virtual]
Returns the list of mib enums supported by this plugin. a whole little list of them. πβ¨
See also createForMib(). π
QStringList QTextCodecPlugin::names () const [pure virtual]
Returns the list of mime names supported by this plugin. yes bestie, the names. π
See also createForName(). π
π SEE ALSO π
β COPYRIGHT β
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. π
π« AUTHOR π«
Generated automatically from the source code. (yes, the author is a robot, and honestly? slay. π€β¨)
π BUGS π
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you!! ππ
the definitive Qt documentation is provided in HTML format β it lives at $QTDIR/doc/html and you can read it using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. so like, it's a cute lil bonus, not the official thing. π
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qtextcodecplugin.3qt) and the Qt version (3.3.8). thank you bestie, you're doing the lord's work. π«Ά
anyway that's the whole page! π
this was brought to you by Trolltech AS, dated 2 February 2007, straight out of the QTextCodecPlugin(3qt) man page β mwah, go write a codec, you got this πβ¨π¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms