Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CSystem.hpp>
Static Public Member Functions | |
static void | changeLanguage (const std::string &codeLanguage, const std::string &codeMessages, const std::string &codeMonetary, const std::string &codeNumeric) |
This function permit the user to change application's language. | |
static bool | commandPassword (const std::string &txtTitle, uint32_t timeOut, std::string *password) |
Shows a password entry dialog. | |
static bool | commandQuestion (const std::string &txtQuestion) |
Make a question on the screen. | |
static int32_t | commandWithCodeError (const std::string &command) |
Execute a system's command. | |
static void | logger (const std::string &environment, const char *strFormat,...) __attribute__((format(printf |
Create logs with the set of arguments provided. | |
static void static void | reboot () |
Begin a reboot process. | |
static void | sleepMilliseconds (uint64_t milliseconds) |
Generate a milliseconds sleep. | |
static void | shutdown () |
Begin a shutdown process. | |
static void | getCpuInfo (std::string *stepping, std::string *model, std::string *family, std::string *processorType, std::string *extendedModel, std::string *extendedFamily) |
Returns the CPU information. | |
static std::string | getCPUSerial () |
Returns the CPU serial. | |
static std::string | getVolumeSerial () |
Gets the volume serial. If it is not possible to get one, it provides "nvme0n1" as the default. | |
static bool | ping (const std::string &ipAddress, float timeOutInSec) |
Ping the given IP address using the internal ping command. | |
static bool | startService (std::string_view serviceName) |
static bool | stopService (std::string_view serviceName) |
static bool | enableService (const std::string serviceName) |
static bool | isServiceRunning (std::string_view serviceName) |
Checks if a service is running. | |
static void | changeGmt (std::string_view gmt) |
Change the GMT area to the one given. | |
|
static |
Change the GMT area to the one given.
gmt | The new GMT area |
|
static |
This function permit the user to change application's language.
codeLanguage | Language locale code |
codeMessages | Messages locale code |
codeMonetary | Monetary locale code |
codeNumeric | Numeric locale code |
|
static |
Shows a password entry dialog.
txtTitle | Dialog's title |
timeOut | Time the dialog is active |
password | Output param with the user's password |
|
static |
Make a question on the screen.
txtQuestion | String with the question |
|
static |
Execute a system's command.
command | String which contains the command to be executed |
|
static |
|
static |
Returns the CPU information.
stepping | The string pointer where to save the stepping info |
model | The string pointer where to save the model info |
family | The string pointer where to save the family info |
processorType | The string pointer where to save the processor type |
extendedModel | The string pointer where to save the extended model info |
extendedFamily | The string pointer where to save the extended family info |
|
static |
Returns the CPU serial.
|
static |
Gets the volume serial. If it is not possible to get one, it provides "nvme0n1" as the default.
|
static |
Checks if a service is running.
serviceName | Name of the service to check |
|
static |
Create logs with the set of arguments provided.
environment | The prepended string to every message |
strFormat | Format to follow |
... | The set of arguments whence create the logs |
|
static |
Ping the given IP address using the internal ping command.
ipAddress | String with the IP address to ping |
timeOutInSec | Time in seconds to wait for the response |
|
static |
Begin a reboot process.
|
static |
Begin a shutdown process.
|
static |
Generate a milliseconds sleep.
milliseconds | Time in milliseconds to sleep |
|
static |
|
static |