summaryrefslogblamecommitdiffstats
path: root/gettextfromc.h
blob: c84d65f333f0116aa24ab10d20d2b00c8cadb6f9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                      
 
                
 
                                                   




                                        
                                                
                         
                                                        
  
                        
#ifndef GETTEXTFROMC_H
#define GETTEXTFROMC_H

#include <QHash>

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