• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdecore

KCatalogue Class Reference

#include <kcatalogue.h>

List of all members.


Detailed Description

This class abstracts a gettext message catalog.

It will take care of opening the file and reading the catalog.

See also:
KLocale

Definition at line 37 of file kcatalogue.h.


Public Member Functions

 KCatalogue (const QString &name=QString::null, const QString &language=QString::null)
 KCatalogue (const KCatalogue &rhs)
KCatalogue & operator= (const KCatalogue &rhs)
virtual ~KCatalogue ()
QString name () const
QString language () const
int pluralType () const
void setPluralType (int pluralType)
const char * translate (const char *msgid) const

Constructor & Destructor Documentation

KCatalogue::KCatalogue ( const QString &  name = QString::null,
const QString &  language = QString::null 
) [explicit]

Constructor.

Parameters:
name The name of the catalog
language The language of this catalog

Definition at line 55 of file kcatalogue.cpp.

KCatalogue::KCatalogue ( const KCatalogue &  rhs  ) 

Copy constructor.

Definition at line 73 of file kcatalogue.cpp.

KCatalogue::~KCatalogue (  )  [virtual]

Destructor.

Definition at line 89 of file kcatalogue.cpp.


Member Function Documentation

KCatalogue & KCatalogue::operator= ( const KCatalogue &  rhs  ) 

Assignment operator.

Definition at line 79 of file kcatalogue.cpp.

QString KCatalogue::name (  )  const

Returns the name of the catalog.

Returns:
The name of the catalog

Definition at line 96 of file kcatalogue.cpp.

QString KCatalogue::language (  )  const

Returns the language of the catalog.

Returns:
The language of the catalog

Definition at line 101 of file kcatalogue.cpp.

int KCatalogue::pluralType (  )  const

Returns the plural type for the catalog.

This type is based on the language of the catalog and is cached for performance.

Returns:
The plural type for the catalog

Definition at line 111 of file kcatalogue.cpp.

void KCatalogue::setPluralType ( int  pluralType  ) 

Sets the plural type for the catalog.

The caller has probably looked it up in a kdelibs.mo-catalog for the appropriate language

Returns:
The plural type for the catalog

Definition at line 106 of file kcatalogue.cpp.

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

Definition at line 140 of file kcatalogue.cpp.


The documentation for this class was generated from the following files:
  • kcatalogue.h
  • kcatalogue.cpp

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal