Qt API | Qtopia API | Qtopia Documentation | ![]() |
The TextCodecInterface class defines the interface for text codec plugins. More...
#include <qtopia/textcodecinterface.h>
Internally, Qtopia works completely with Unicode text strings, however it is sometimes necessary to convert to or from other character sets.
To add support for a character set format, you must create a Text Codec plugin. To do so, follow these steps:
public: QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT private: ulong ref;
QRESULT YourTextCodecInterfaceSubClass::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_QtopiaTextCodec ) *iface = this; if ( *iface ) (*iface)->addRef(); return (*iface) ? QS_OK : QS_FALSE; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( YourTextCodecInterfaceSubClass ) }
Returns a new QTextCodec (subclass) for the given mib.
Returns a new QTextCodec (subclass) for the given codec name.
Returns the list of codec MIBs. You should use IANA registered MIB values.
Returns the list of codec names. You should use IANA registered names.
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.7.1
|