#include <sys/utsname.h>
#include <klfdefs.h>
#include <klfsysinfo.h>
#include <QFileInfo>
#include <QFile>
Go to the source code of this file.
Defines | |
#define | SYSINFO_FILE "/sys/class/power_supply/ADP0/online" |
Functions | |
KLF_EXPORT QString | klf_defs_sysinfo_arch () |
KLF_EXPORT KLFSysInfo::BatteryInfo | _klf_linux_battery_info (bool want_info_onbatterypower) |
KLF_EXPORT KLFSysInfo::BatteryInfo | _klf_linux_battery_info () |
KLF_EXPORT bool | _klf_linux_is_laptop () |
KLF_EXPORT bool | _klf_linux_is_on_battery_power () |
This file contains some Linux specific code for klfdefs.cpp
Definition in file klfdefs_linux.cpp.
#define SYSINFO_FILE "/sys/class/power_supply/ADP0/online" |
Definition at line 64 of file klfdefs_linux.cpp.
Referenced by _klf_linux_battery_info().
KLF_EXPORT KLFSysInfo::BatteryInfo _klf_linux_battery_info | ( | bool | want_info_onbatterypower | ) |
Definition at line 66 of file klfdefs_linux.cpp.
References QFile::exists(), KLFSysInfo::BatteryInfo::islaptop, klfWarning, KLFSysInfo::BatteryInfo::onbatterypower, QFile::open(), and SYSINFO_FILE.
Referenced by _klf_linux_battery_info(), _klf_linux_is_laptop(), _klf_linux_is_on_battery_power(), and KLFSysInfo::batteryInfo().
KLF_EXPORT KLFSysInfo::BatteryInfo _klf_linux_battery_info | ( | ) |
Definition at line 96 of file klfdefs_linux.cpp.
References _klf_linux_battery_info().
KLF_EXPORT bool _klf_linux_is_laptop | ( | ) |
Definition at line 101 of file klfdefs_linux.cpp.
References _klf_linux_battery_info(), and KLFSysInfo::BatteryInfo::islaptop.
Referenced by KLFSysInfo::isLaptop().
KLF_EXPORT bool _klf_linux_is_on_battery_power | ( | ) |
Definition at line 108 of file klfdefs_linux.cpp.
References _klf_linux_battery_info(), and KLFSysInfo::BatteryInfo::onbatterypower.
Referenced by KLFSysInfo::isOnBatteryPower().
KLF_EXPORT QString klf_defs_sysinfo_arch | ( | ) |
Definition at line 38 of file klfdefs_linux.cpp.
Referenced by KLFSysInfo::arch().