Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KCatalogue Class Reference

#include <kcatalogue.h>

List of all members.

Public Methods

 KCatalogue (const QString &name=QString::null)
 KCatalogue (const KCatalogue &rhs)
KCatalogue & operator= (const KCatalogue &rhs)
virtual ~KCatalogue ()
QString name () const
void setFileName (const QString &fileName)
const char * translate (const char *msgid) const


Detailed Description

This class abstracts a gettext message catalogue. It will take care of opening the file and reading the catalogue.

See also:
KLocale

Definition at line 36 of file kcatalogue.h.


Constructor & Destructor Documentation

KCatalogue::KCatalogue const QString &    name = QString::null [explicit]
 

Constructor.

Parameters:
name  The name of the catalogue

KCatalogue::KCatalogue const KCatalogue &    rhs
 

Copy constructor.

virtual KCatalogue::~KCatalogue   [virtual]
 

Destructor.


Member Function Documentation

QString KCatalogue::name  
 

Returns the name of the catalogue.

Returns:
The name of the catalogue

KCatalogue& KCatalogue::operator= const KCatalogue &    rhs
 

Assignment operator.

void KCatalogue::setFileName const QString &    fileName
 

Changes the current file name.

Parameters:
fileName  The new file name

const char* KCatalogue::translate const char *    msgid const
 

Retrieves a translation of the specified message id.

Do not pass 0 or "" strings as message ids.

Parameters:
msgid  The message id
Returns:
The translated message, in utf8 encoding, or 0 if not found


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:06 2003 for kdelibs by doxygen1.2.18