edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::TextCodecManager Class Reference

The codec manager is used for managing codecs You shouldnt' instantiatie this class, it's better to access the codec manager instantiated via the edbee::Edbee. More...

#include <textcodec.h>

+ Collaboration diagram for edbee::TextCodecManager:

Public Member Functions

 TextCodecManager ()
 The codecmanager constructs This method registeres all codecs available in Qt. More...
 
 ~TextCodecManager ()
 Cleansup the codec list. More...
 
void giveTextCodec (TextCodec *codec)
 Registers the given codec. The ownership of this codec is transfered to the codec manger. More...
 
QList< TextCodec * > codecList ()
 Returns the list with all codecs. More...
 
TextCodeccodecForName (const QString &name)
 Returns the given codec for the given name. More...
 

Detailed Description

The codec manager is used for managing codecs You shouldnt' instantiatie this class, it's better to access the codec manager instantiated via the edbee::Edbee.

Constructor & Destructor Documentation

◆ TextCodecManager()

edbee::TextCodecManager::TextCodecManager ( )

The codecmanager constructs This method registeres all codecs available in Qt.

◆ ~TextCodecManager()

edbee::TextCodecManager::~TextCodecManager ( )

Cleansup the codec list.

Member Function Documentation

◆ codecForName()

TextCodec * edbee::TextCodecManager::codecForName ( const QString &  name)

Returns the given codec for the given name.

Parameters
namethe name of the codec to search
Returns
the found codec or 0 if not found

◆ codecList()

QList< TextCodec * > edbee::TextCodecManager::codecList ( )

Returns the list with all codecs.

◆ giveTextCodec()

void edbee::TextCodecManager::giveTextCodec ( TextCodec codec)

Registers the given codec. The ownership of this codec is transfered to the codec manger.

Parameters
codecthe codec to register.

The documentation for this class was generated from the following files: