[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Defines | Functions
src/klftools/klfdefs_linux.cpp File Reference
#include <sys/utsname.h>
#include <klfdefs.h>
#include <klfsysinfo.h>
#include <QFileInfo>
#include <QFile>
Include dependency graph for klfdefs_linux.cpp:

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 ()

Detailed Description

This file contains some Linux specific code for klfdefs.cpp

Definition in file klfdefs_linux.cpp.


Define Documentation

#define SYSINFO_FILE   "/sys/class/power_supply/ADP0/online"

Definition at line 64 of file klfdefs_linux.cpp.

Referenced by _klf_linux_battery_info().


Function Documentation

KLF_EXPORT KLFSysInfo::BatteryInfo _klf_linux_battery_info ( bool  want_info_onbatterypower)

Definition at line 96 of file klfdefs_linux.cpp.

References _klf_linux_battery_info().

KLF_EXPORT bool _klf_linux_is_laptop ( )
KLF_EXPORT bool _klf_linux_is_on_battery_power ( )

Definition at line 38 of file klfdefs_linux.cpp.

Referenced by KLFSysInfo::arch().


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