30 #if defined(QT_VERSION) && QT_VERSION >= 0x040000
31 # ifndef KLFBACKEND_QT4
32 # define KLFBACKEND_QT4
43 # if defined(Q_OS_WIN)
44 # if defined(KLF_SRC_BUILD)
45 # define KLF_EXPORT __declspec(dllexport)
47 # define KLF_EXPORT __declspec(dllimport)
50 # define KLF_EXPORT __attribute__((visibility("default")))
65 #if defined(Q_CC_GNU) && !defined(__INSURE__)
66 __attribute__ ((format (printf, 1, 2)))
70 #define klfFmtCC (const char*)klfFmt
75 #define KLF_FUNC_SINGLE_RUN \
76 { static bool first_run = true; if ( ! first_run ) return; first_run = false; }
104 #if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
105 # define KLF_PATH_SEP ';'
107 # define KLF_PATH_SEP ':'
KLF_EXPORT int klfVersionRelease()
KLF_EXPORT int klfVersionMin()
KLF_EXPORT int klfVersionMaj()
systems on which Q_OS_LINUX is defined
KLF_EXPORT bool klfVersionCompareLessThan(const QString &v1, const QString &v2)
Same as klfVersionCompare(v1,v2) < 0
KLF_EXPORT const char * klfVersion()
int sizeofVoidStar()
the processor register size.
KLF_EXPORT QStringList klfSearchFind(const QString &wildcard_expression, int limit=-1)
Find files matching a path with wildcards.
KLF_EXPORT QString klfSearchPath(const QString &prog, const QString &extra_path="")
Smart executable searching in a given path list with wildcards.
Os
List of known operating systems.
KLF_EXPORT QString arch()
The architecture of this sytem.
systems on which Q_OS_DARWIN is defined
KLF_EXPORT QString osString(KLFSysInfo::Os sysos=os())
The operating system we are running, returned as a string.
KLF_EXPORT int klfVersionCompare(const QString &v1, const QString &v2)
Compares two version strings.
systems on which neither Q_OS_{LINUX|WIN32|DARWIN} is defined
KLF_EXPORT KLFSysInfo::Os os()
Which operating system this system is running.
KLF_EXPORT QByteArray klfFmt(const char *fmt,...)
systems on which Q_OS_WIN32 is defined