[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
klfdefs_otheros.cpp
Go to the documentation of this file.
1 #include <klfdefs.h>
2 #include <klfsysinfo.h>
3 
5 {
6  return QString::fromLatin1("Unknown architecture and OS");
7 }
8 
9 
11 {
13 
14  klfWarning("Could not get battery status.") ;
15  info.islaptop = false;
16  info.onbatterypower = false;
17  return info;
18 }
19 
21 {
24  return info.islaptop;
25 }
26 
28 {
31  return info.onbatterypower;
32 }
33 
KLFSysInfo::BatteryInfo
Definition: klfsysinfo.h:65
KLFSysInfo::BatteryInfo::islaptop
bool islaptop
Definition: klfsysinfo.h:68
klfsysinfo.h
QString
KLF_EXPORT
#define KLF_EXPORT
Definition: klfdefs.h:41
klf_defs_sysinfo_arch
KLF_EXPORT QString klf_defs_sysinfo_arch()
Definition: klfdefs_otheros.cpp:4
_klf_otheros_battery_info
KLF_EXPORT KLFSysInfo::BatteryInfo _klf_otheros_battery_info()
Definition: klfdefs_otheros.cpp:10
klfWarning
#define klfWarning(streamableItems)
KLFSysInfo::BatteryInfo::onbatterypower
bool onbatterypower
Definition: klfsysinfo.h:69
QString::fromLatin1
QString fromLatin1(const char *str, int size)
_klf_otheros_is_laptop
KLF_EXPORT bool _klf_otheros_is_laptop()
Definition: klfdefs_otheros.cpp:20
klfdefs.h
Base declarations for klatexformula and some utilities.
_klf_otheros_is_on_battery_power
KLF_EXPORT bool _klf_otheros_is_on_battery_power()
Definition: klfdefs_otheros.cpp:27

Generated by doxygen 1.8.17