subsurface/gettextfromc.h
Dirk Hohndel 7eaa2c62c4 Explicitly include needed include file
The Q_DECLARE_TR_FUNCTIONS macro is defined in QCoreApplication, so let's
make sure that's included.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-04-29 22:35:34 -07:00

18 lines
386 B
C++

#ifndef GETTEXTFROMC_H
#define GETTEXTFROMC_H
#include <QHash>
#include <QCoreApplication>
extern "C" const char *trGettext(const char *text);
class gettextFromC {
Q_DECLARE_TR_FUNCTIONS(gettextFromC)
public:
static gettextFromC *instance();
const char *trGettext(const char *text);
void reset(void);
QHash<QByteArray, QByteArray> translationCache;
};
#endif // GETTEXTFROMC_H