[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Macros | Functions
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.

Macros

#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.

Macro Definition Documentation

◆ SYSINFO_FILE

#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_linux_battery_info() [1/2]

KLF_EXPORT KLFSysInfo::BatteryInfo _klf_linux_battery_info ( bool  want_info_onbatterypower)

◆ _klf_linux_battery_info() [2/2]

KLF_EXPORT KLFSysInfo::BatteryInfo _klf_linux_battery_info ( )

Definition at line 96 of file klfdefs_linux.cpp.

References _klf_linux_battery_info().

◆ _klf_linux_is_laptop()

KLF_EXPORT bool _klf_linux_is_laptop ( )

◆ _klf_linux_is_on_battery_power()

KLF_EXPORT bool _klf_linux_is_on_battery_power ( )

◆ klf_defs_sysinfo_arch()

KLF_EXPORT QString klf_defs_sysinfo_arch ( )

Definition at line 38 of file klfdefs_linux.cpp.


Generated by doxygen 1.8.13