com.trolltech.qt.gui
Class QAbstractTextCodecFactory

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.gui.QAbstractTextCodecFactory
All Implemented Interfaces:
QAbstractFactoryInterface, QAbstractTextCodecFactoryInterface, QtJambiInterface

public abstract class QAbstractTextCodecFactory
extends QtJambiObject
implements QAbstractTextCodecFactoryInterface, QAbstractFactoryInterface


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)
          This method returns the QAbstractTextCodecFactory instance pointed to by 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

QAbstractTextCodecFactory

public QAbstractTextCodecFactory()
Creates a new QAbstractTextCodecFactory


QAbstractTextCodecFactory

protected QAbstractTextCodecFactory(QtJambiObject.QPrivateConstructor p)
This method is internal to Qt Jambi.

Method Detail

create

public abstract QTextCodec create(java.lang.String key)
Creates a 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;
        }

See also:
names().

Specified by:
create in interface QAbstractTextCodecFactoryInterface

keys

public abstract java.util.List<java.lang.String> keys()
This method is internal to Qt Jambi.

Specified by:
keys in interface QAbstractFactoryInterface
Specified by:
keys in interface QAbstractTextCodecFactoryInterface

fromNativePointer

public static QAbstractTextCodecFactory fromNativePointer(QNativePointer nativePointer)
This method returns the QAbstractTextCodecFactory instance pointed to by nativePointer.


__qt_cast_to_QAbstractTextCodecFactory

public long __qt_cast_to_QAbstractTextCodecFactory(long ptr)
This method is internal to Qt Jambi.

Specified by:
__qt_cast_to_QAbstractTextCodecFactory in interface QAbstractTextCodecFactoryInterface

__qt_cast_to_QAbstractFactory

public long __qt_cast_to_QAbstractFactory(long ptr)
This method is internal to Qt Jambi.

Specified by:
__qt_cast_to_QAbstractFactory in interface QAbstractFactoryInterface


actTextCodecFactoryInterface.html#__qt_cast_to_QAbstractTextCodecFactory(long)">__qt_cast_to_QAbstractTextCodecFactory in interface QAbstractTextCodecFactoryInterface

__qt_cast_to_QAbstractFactory

public long __qt_cast_to_QAbstractFactory(long ptr)
This method is internal to Qt Jambi.

Specified by:
__qt_cast_to_QAbstractFactory in interface QAbstractFactoryInterface