Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
system.hpp File Reference
#include <optional>
#include <string>
#include <vector>
#include "types.hpp"
Include dependency graph for system.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  iv
 
namespace  iv::system
 

Functions

int iv::system::countProcesses (std::string_view processName)
 
std::string iv::system::executeCommand (const std::string &command, int *exitCode)
 Executes a command and obtains the stdout.
 
std::optional< std::string_view > iv::system::getEnv (const std::string_view variable)
 
void iv::system::reboot ()
 Begin a reboot process.
 
std::string iv::system::retrieveExecutablePath ()
 Retrieve the path of the current executable.
 
std::string iv::system::retrieveHomeDirectory ()
 Retrieve the home directory path.
 
std::string iv::system::retrieveHostName ()
 Retrieve the hostname.
 
std::vector< std::string > iv::system::retrieveMacAddresses ()
 Retrieve the MAC addresses of the network interfaces.
 
std::string iv::system::retrieveMediaDirectory ()
 Returns the media folder directory.
 
std::string iv::system::retrieveUserName ()
 Get username.
 
std::vector< std::string > iv::system::retrieveAllMountedExternalDevices ()
 Retrieve all mounted external devices.
 
std::string iv::system::retrieveHardDiskSerialNumber ()
 
bool iv::system::shutdown ()
 Begin a shutdown process.
 
std::string iv::system::retrieveCpuSerial ()
 
std::string iv::system::retrieveBiosInfo ()
 
std::string iv::system::retrieveRootFilesystemId ()
 
void iv::system::retrieveCpuInfo (std::string *stepping, std::string *model, std::string *family, std::string *processorType, std::string *extendedModel, std::string *extendendFamily)
 
void iv::system::setSystemTime (iv::types::timestamp time)
 
std::string iv::system::retrieveSystemVolumeControl ()
 
double iv::system::retrieveSystemVolume ()
 Get the system volume.
 
void iv::system::setSystemVolume (const double volume)
 Set the system volume.
 
double iv::system::retrieveSystemBrightness ()
 Get the system brightness.
 
void iv::system::setSystemBrightness (double brightness)
 Set the system brightness.