20 #ifndef LIBREPCB_CORE_SYSTEMINFO_H 21 #define LIBREPCB_CORE_SYSTEMINFO_H Definition: occmodel.cpp:76
static bool isProcessRunning(qint64 pid)
Check whether a process with a given PID is running or not.
Definition: systeminfo.cpp:190
static const QString & getUsername() noexcept
Get the name of the user which is logged in (like "homer")
Definition: systeminfo.cpp:75
static const QString & getFullUsername() noexcept
Get the full name of the user which is logged in (like "Homer Simpson")
Definition: systeminfo.cpp:97
static const QString & getHostname() noexcept
Get the hostname of the computer (like "homer-workstation")
Definition: systeminfo.cpp:151
static QString detectRuntime() noexcept
Detect the environment in which LibrePCB runs.
Definition: systeminfo.cpp:166
static QString getProcessNameByPid(qint64 pid)
Get the process name of a given PID.
Definition: systeminfo.cpp:238
This class provides some methods to get information from the operating system.
Definition: systeminfo.h:48