|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QAbstractTextCodecFactory
public abstract class QAbstractTextCodecFactory
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject |
---|
QtJambiObject.QPrivateConstructor |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Constructor Summary | |
---|---|
|
QAbstractTextCodecFactory()
Creates a new QAbstractTextCodecFactory |
protected |
QAbstractTextCodecFactory(QtJambiObject.QPrivateConstructor p)
This method is internal to Qt Jambi. |
Method Summary | |
---|---|
long |
__qt_cast_to_QAbstractFactory(long ptr)
This method is internal to Qt Jambi. |
long |
__qt_cast_to_QAbstractTextCodecFactory(long ptr)
This method is internal to Qt Jambi. |
abstract QTextCodec |
create(java.lang.String key)
Creates a QTextCodec object for the codec called key. |
static QAbstractTextCodecFactory |
fromNativePointer(QNativePointer nativePointer)
|
abstract java.util.List<java.lang.String> |
keys()
This method is internal to Qt Jambi. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
__qt_signalInitialization, blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QAbstractTextCodecFactory()
protected QAbstractTextCodecFactory(QtJambiObject.QPrivateConstructor p)
Method Detail |
---|
public abstract QTextCodec create(java.lang.String key)
QTextCodec
object for the codec called key. The key must come from the list of encodings returned by names()
. Encoding names are case sensitive. Example:
The following code example is written in c++.
QList<QByteArray> MyCodecPlugin::names() const { return QList<QByteArray> << "IBM01140" << "hp15-tw"; } QTextCodec *MyCodecPlugin::createForName(const QByteArray &name) { if (name == "IBM01140") { return new Ibm01140Codec; } else if (name == "hp15-tw") { return new Hp15TwCodec; } return 0; }
names()
.
create
in interface QAbstractTextCodecFactoryInterface
public abstract java.util.List<java.lang.String> keys()
keys
in interface QAbstractFactoryInterface
keys
in interface QAbstractTextCodecFactoryInterface
public static QAbstractTextCodecFactory fromNativePointer(QNativePointer nativePointer)
public long __qt_cast_to_QAbstractTextCodecFactory(long ptr)
__qt_cast_to_QAbstractTextCodecFactory
in interface QAbstractTextCodecFactoryInterface
public long __qt_cast_to_QAbstractFactory(long ptr)
__qt_cast_to_QAbstractFactory
in interface QAbstractFactoryInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |