[KLF Backend]
[KLF Tools]
[KLF Home]
KLatexFormula Project
src
klftools
klfdefs_otheros.cpp
Go to the documentation of this file.
1
#include <
klfdefs.h
>
2
#include <
klfsysinfo.h
>
3
4
KLF_EXPORT
QString
klf_defs_sysinfo_arch
()
5
{
6
return
QString::fromLatin1
(
"Unknown architecture and OS"
);
7
}
8
9
10
KLF_EXPORT
KLFSysInfo::BatteryInfo
_klf_otheros_battery_info
()
11
{
12
KLFSysInfo::BatteryInfo
info;
13
14
klfWarning
(
"Could not get battery status."
) ;
15
info.
islaptop
=
false
;
16
info.
onbatterypower
=
false
;
17
return
info;
18
}
19
20
KLF_EXPORT
bool
_klf_otheros_is_laptop
()
21
{
22
KLFSysInfo::BatteryInfo
info;
23
info =
_klf_otheros_battery_info
();
24
return
info.
islaptop
;
25
}
26
27
KLF_EXPORT
bool
_klf_otheros_is_on_battery_power
()
28
{
29
KLFSysInfo::BatteryInfo
info;
30
info =
_klf_otheros_battery_info
();
31
return
info.
onbatterypower
;
32
}
33
KLFSysInfo::BatteryInfo
Definition:
klfsysinfo.h:45
KLFSysInfo::BatteryInfo::islaptop
bool islaptop
Definition:
klfsysinfo.h:48
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:49
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.20