KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Attributes | List of all members
KviMessageCatalogue Class Reference

The KviMessageCatalogue class. More...

#include <KviMessageCatalogue.h>

+ Inheritance diagram for KviMessageCatalogue:

Public Member Functions

 KviMessageCatalogue ()
 Creates an instance of KviMessageCatalogue. More...
 
bool load (const QString &szName)
 
const char * translate (const char *pcText)
 Translates the string. More...
 
const QString & translateToQString (const char *pcText)
 Translates the string. More...
 
 ~KviMessageCatalogue ()
 Destroys the instance of KviMessageCatalogue and frees all the relevant resources. More...
 

Protected Attributes

KviPointerHashTable< const
char *, KviTranslationEntry > * 
m_pMessages
 
QTextCodec * m_pTextCodec
 

Detailed Description

The KviMessageCatalogue class.

Author
Szymon Stefanek This file was originally part of KviLocale.h

Constructor & Destructor Documentation

KviMessageCatalogue::KviMessageCatalogue ( )
KviMessageCatalogue::~KviMessageCatalogue ( )

Destroys the instance of KviMessageCatalogue and frees all the relevant resources.

References m_pMessages.

Member Function Documentation

bool KviMessageCatalogue::load ( const QString &  szName)
const char * KviMessageCatalogue::translate ( const char *  pcText)

Translates the string.

Parameters
pcTextThe text to translate
Returns
const char *

References KviPointerHashTable< Key, T >::find(), m_pMessages, KviTranslationEntry::m_szEncodedTranslation, and KviCString::ptr().

Referenced by KviLocale::translate().

const QString & KviMessageCatalogue::translateToQString ( const char *  pcText)

Member Data Documentation

KviPointerHashTable<const char *, KviTranslationEntry>* KviMessageCatalogue::m_pMessages
protected
QTextCodec* KviMessageCatalogue::m_pTextCodec
protected

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