Utilities to get system information. More...
Enumerations |
Functions | |
int | sizeofVoidStar () |
the processor register size. More... | |
KLF_EXPORT QString | arch () |
The architecture of this sytem. More... | |
KLF_EXPORT KLFSysInfo::Os | os () |
Which operating system this system is running. More... | |
KLF_EXPORT QString | osString (KLFSysInfo::Os sysos=os()) |
The operating system we are running, returned as a string. More... | |
Utilities to get system information.
enum KLFSysInfo::Os |
KLF_EXPORT QString KLFSysInfo::arch | ( | ) |
The architecture of this sytem.
"x86"
or "x86_64"
, or QString()
for other/unknown. Definition at line 1012 of file klfdefs.cpp.
Referenced by sizeofVoidStar().
KLF_EXPORT KLFSysInfo::Os KLFSysInfo::os | ( | ) |
Which operating system this system is running.
Definition at line 1017 of file klfdefs.cpp.
References Linux, MacOsX, OtherOs, and Win32.
Referenced by sizeofVoidStar().
KLF_EXPORT QString KLFSysInfo::osString | ( | KLFSysInfo::Os | sysos = os() | ) |
The operating system we are running, returned as a string.
"win32"
, "linux"
, "macosx"
, or QString() for other/unknown. Definition at line 1030 of file klfdefs.cpp.
References QString::compare(), Linux, MacOsX, OtherOs, and Win32.
Referenced by sizeofVoidStar().
|
inline |
the processor register size.
Typically 4 or 8 to indicate a 32-bit or a 64-bit system, respectively.
Definition at line 87 of file klfdefs.h.
References arch(), klfVersionCompare(), klfVersionCompareLessThan(), os(), and osString().