Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
systemInfo.cpp File Reference
#include "systemInfo.hpp"
#include "core/buildInfo.hpp"
#include "core/system.hpp"
#include "diamar/ApplicationGui.hpp"
#include "ui/gui/IComponentsGUI.hpp"
#include <arpa/inet.h>
#include <cstring>
#include <filesystem>
#include <fmt/core.h>
#include <fstream>
#include <ifaddrs.h>
#include <iostream>
#include <net/if.h>
#include <netdb.h>
#include <netpacket/packet.h>
#include <regex>
#include <set>
#include <sys/sysinfo.h>
#include <sys/utsname.h>
Include dependency graph for systemInfo.cpp:

Namespaces

namespace  iv
 
namespace  iv::systemInfo
 

Enumerations

enum class  iv::systemInfo::eLsbRelInfoType { iv::systemInfo::LsbRelDistributor , iv::systemInfo::LsbRelDescription , iv::systemInfo::LsbRelRelease , iv::systemInfo::LsbRelCodename }
 

Functions

static std::optional< std::string > iv::systemInfo::getValueFromLsbRelease (const iv::systemInfo::eLsbRelInfoType infoType)
 
static std::optional< std::string > iv::systemInfo::getValueFromOsRelease (const std::string &key)
 
std::optional< std::string > iv::systemInfo::kernelName ()
 
std::optional< std::string > iv::systemInfo::kernelVersion ()
 
std::optional< std::string > iv::systemInfo::kernelVersionFull ()
 
std::optional< std::string > iv::systemInfo::osCodename ()
 
std::optional< std::string > iv::systemInfo::osName ()
 
std::string iv::systemInfo::osPrettyNameWithVersion ()
 
std::string iv::systemInfo::osVersion ()
 
std::optional< std::string > iv::systemInfo::osVersionId ()
 
std::string iv::systemInfo::osVersionInfo ()
 
std::string iv::systemInfo::screenResolution ()
 
std::optional< std::string > iv::systemInfo::cpuUsage ()
 
std::optional< std::string > iv::systemInfo::cpuTemp ()
 
std::optional< std::string > iv::systemInfo::cpuModelName ()
 
std::optional< std::string > iv::systemInfo::cpuFrequency ()
 
std::optional< std::string > iv::systemInfo::totalStorage ()
 
std::optional< std::string > iv::systemInfo::storageUsage ()
 
std::optional< uint64_t > iv::systemInfo::uptime ()
 
std::string iv::systemInfo::prvKbToGb (const std::string &kb)
 
std::optional< std::string > iv::systemInfo::totalMemory ()
 
std::optional< std::string > iv::systemInfo::freeMemory ()
 
std::optional< std::string > iv::systemInfo::memoryUsage ()
 
std::optional< std::string > iv::systemInfo::diamarMemoryUsage ()
 
std::optional< std::string > iv::systemInfo::ethernetLink ()
 
std::optional< std::string > iv::systemInfo::ethernetMacAddress ()
 
std::optional< std::set< std::string > > iv::systemInfo::ethernetIpAddress ()