KVIrc
5.2.6
Developer APIs
src
kvilib
locale
KviMessageCatalogue.h
Go to the documentation of this file.
1
#ifndef _KVIMESSAGECATALOGUE_H_
2
#define _KVIMESSAGECATALOGUE_H_
3
//=============================================================================
4
//
5
// File : KviMessageCatalogue.h
6
// Creation date : Wed 23 Mar 2011 03:32:12
7
// Originally in KviLocale.h
8
// Created on: Sat Jan 16 1999 18:15:01 by Szymon Stefanek
9
//
10
// This file is part of the KVIrc IRC client distribution
11
// Copyright (C) 1999-2010 Szymon Stefanek (pragma at kvirc dot net)
12
//
13
// This program is FREE software. You can redistribute it and/or
14
// modify it under the terms of the GNU General Public License
15
// as published by the Free Software Foundation; either version 2
16
// of the License, or (at your option) any later version.
17
//
18
// This program is distributed in the HOPE that it will be USEFUL,
19
// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21
// See the GNU General Public License for more details.
22
//
23
// You should have received a copy of the GNU General Public License
24
// along with this program. If not, write to the Free Software Foundation,
25
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
//
27
//=============================================================================
28
29
#include "
kvi_settings.h
"
30
#include "
KviHeapObject.h
"
31
32
template
<
typename
A,
typename
B>
33
class
KviPointerHashTable
;
34
35
class
KviTranslationEntry
;
36
class
QString;
37
class
QTextCodec;
38
46
class
KVILIB_API
KviMessageCatalogue
:
public
KviHeapObject
47
{
48
public
:
53
KviMessageCatalogue
();
54
58
~KviMessageCatalogue
();
59
60
protected
:
61
KviPointerHashTable<const char *, KviTranslationEntry>
*
m_pMessages
;
62
QTextCodec *
m_pTextCodec
;
63
64
public
:
70
bool
load
(
const
QString & szName);
71
77
const
char
*
translate
(
const
char
* pcText);
78
84
const
QString &
translateToQString
(
const
char
* pcText);
85
};
86
87
#endif
//_KVIMESSAGECATALOGUE_H_
KviHeapObject.h
Heap Object.
KviHeapObject
Definition
KviHeapObject.h:119
KviMessageCatalogue::load
bool load(const QString &szName)
Definition
KviMessageCatalogue.cpp:146
KviMessageCatalogue::m_pMessages
KviPointerHashTable< const char *, KviTranslationEntry > * m_pMessages
Definition
KviMessageCatalogue.h:61
KviMessageCatalogue::m_pTextCodec
QTextCodec * m_pTextCodec
Definition
KviMessageCatalogue.h:62
KviMessageCatalogue::translate
const char * translate(const char *pcText)
Translates the string.
Definition
KviMessageCatalogue.cpp:286
KviMessageCatalogue::KviMessageCatalogue
KviMessageCatalogue()
Creates an instance of KviMessageCatalogue.
Definition
KviMessageCatalogue.cpp:130
KviMessageCatalogue::translateToQString
const QString & translateToQString(const char *pcText)
Translates the string.
Definition
KviMessageCatalogue.cpp:294
KviPointerHashTable
A fast pointer hash table implementation.
Definition
KviPointerHashTable.h:450
KviTranslationEntry
The KviTranslationEntry class.
Definition
KviTranslationEntry.h:50
kvi_settings.h
This file contains compile time settings.
KVILIB_API
#define KVILIB_API
Definition
kvi_settings.h:124
Generated on Mon May 5 2025 09:18:54 for KVIrc by
1.13.2