27 #include <QCoreApplication>
31 #include <QStringList>
32 #include <QDataStream>
33 #include <QTranslator>
44 #define KLF_DLL_EXT_LIST (QStringList()<<"*.dll")
45 #elif defined(Q_WS_MAC)
46 #define KLF_DLL_EXT_LIST (QStringList()<<"*.so"<<"*.dylib")
48 #define KLF_DLL_EXT_LIST (QStringList()<<"*.so")
79 bool isCompatibleWithCurrentSystem()
const;
119 if ( ! d->plugins[plugin].klfminversion.isEmpty() )
120 return QString(
"klf%1").
arg(d->plugins[plugin].klfminversion);
280 #define KLF_DATA_STREAM_APP_VERSION "3.2"
284 #define KLF_DATA_STREAM_APP_VERSION_MAJ 3
286 #define KLF_DATA_STREAM_APP_VERSION_MIN 2
294 {
return d.
device()->property(
"klfDataStreamAppVersion").toString(); }
309 QString * readHeader = NULL,
QString * readCompatKLFVersion = NULL) ;
QStringList translations()
KLF_EXPORT bool klfDataStreamReadHeader(QDataStream &stream, const QStringList possibleHeaders, QString *readHeader=NULL, QString *readCompatKLFVersion=NULL)
QString pluginLocalSubDirName(const QString &plugin) const
QString locale
Locale Name (e.g. "fr" or "fr_CH")
KLF_EXPORT QList< KLFPluginInfo > klf_plugins
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
KLF_EXPORT void klf_add_avail_translation(KLFI18nFile i18nfile)
KLFPluginGenericInterface * instance
QStringList pluginList() const
KLF_EXPORT void klf_reload_translations(QCoreApplication *app, const QString ¤tlocale)
KLF_EXPORT QString klfFindTranslatedDataFile(const QString &baseFileName, const QString &extension)
KLF_EXPORT bool klf_addons_canimport
QString klfDataStreamAppVersion(const QDataStream &d)
Obtain the KLF version stream operations on d have to be compatible with.
KLF_EXPORT void klfDataStreamWriteHeader(QDataStream &stream, const QString headermagic)
PluginSysInfo pluginSysInfo(const QString &plugin) const
Small minimalist structure to store basic information about available translations.
KLF_EXPORT QList< QTranslator * > klf_translators
Small structure to store information for a translation file (.qm)
KLF_EXPORT QList< KLFAddOnInfo > klf_addons
int locale_specificity
how specific the locale is (e.g. ""->0 , "fr"->1, "fr_CH"->2 )
KLF_EXPORT QDebug & operator<<(QDebug &str, const KLFAddOnInfo::PluginSysInfo &i)
bool hasnicetranslatedname
TRUE if the translatedname was provided by translator itself.
KLF_EXPORT QList< KLFTranslationInfo > klf_avail_translations
QString rccmountroot()
where in the resource tree this rcc resource data is mounted
QString name
Translation file base name (e.g. 'klf' for klf_fr.qm)