KDECore
kcatalog_p.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (c) 2001 Hans Petter Bieker <bieker@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KCATALOG_H 00021 #define KCATALOG_H 00022 00023 #include <QtCore/QString> 00024 00025 class KCatalogPrivate; 00026 00034 //REVISED: hausmann 00035 class KCatalog 00036 { 00037 public: 00044 KCatalog( const QString &name, const QString &language ); 00045 00049 KCatalog(const KCatalog & rhs); 00050 00054 KCatalog & operator = ( const KCatalog & rhs); 00055 00059 virtual ~KCatalog(); 00060 00069 static QString catalogLocaleDir( const QString &name, 00070 const QString &language ); 00071 00077 QString name() const; 00078 00084 QString language() const; 00085 00091 QString localeDir() const; 00092 00102 QString translate( const char * msgid ) const; 00103 00114 QString translate( const char * msgctxt, const char * msgid ) const; 00115 00128 QString translate( const char * msgid, const char * msgid_plural, 00129 unsigned long n ) const; 00130 00144 QString translate( const char * msgctxt, const char * msgid, 00145 const char * msgid_plural, unsigned long n ) const; 00146 00157 QString translateStrict( const char * msgid ) const; 00158 00170 QString translateStrict( const char * msgctxt, const char * msgid ) const; 00171 00185 QString translateStrict( const char * msgid, const char * msgid_plural, 00186 unsigned long n ) const; 00187 00202 QString translateStrict( const char * msgctxt, const char * msgid, 00203 const char * msgid_plural, unsigned long n ) const; 00204 00205 friend QDebug operator<<(QDebug debug, const KCatalog &c); 00206 00207 private: 00208 KCatalogPrivate* const d; 00209 }; 00210 00211 QDebug operator<<(QDebug debug, const KCatalog &c); 00212 00213 #endif
KDE 4.6 API Reference