[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
src/klftools/klfdefs_otheros.cpp
Go to the documentation of this file.
00001 #include <klfdefs.h>
00002 #include <klfsysinfo.h>
00003 
00004 KLF_EXPORT QString klf_defs_sysinfo_arch()
00005 {
00006   return QString::fromLatin1("Unknown architecture and OS");
00007 }
00008 
00009 
00010 KLF_EXPORT KLFSysInfo::BatteryInfo _klf_otheros_battery_info()
00011 {
00012   KLFSysInfo::BatteryInfo info;
00013 
00014   klfWarning("Could not get battery status.") ;
00015   info.islaptop = false;
00016   info.onbatterypower = false;
00017   return info;
00018 }
00019 
00020 KLF_EXPORT bool _klf_otheros_is_laptop()
00021 {
00022   KLFSysInfo::BatteryInfo info;
00023   info = _klf_otheros_battery_info();
00024   return info.islaptop;
00025 }
00026 
00027 KLF_EXPORT bool _klf_otheros_is_on_battery_power()
00028 {
00029   KLFSysInfo::BatteryInfo info;
00030   info = _klf_otheros_battery_info();
00031   return info.onbatterypower;
00032 }
00033 

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net