Go to the documentation of this file. 1 #ifndef MYTHMISCUTIL_H_
2 #define MYTHMISCUTIL_H_
21 int &totalMB,
int &freeMB,
int &totalVM,
int &freeVM);
33 QString name_template =
"/tmp/mythtv_XXXXXX",
bool dir =
false);
40 QStringList *intermediaries =
nullptr,
41 unsigned maxLinks = 255);
62 #endif // MYTHMISCUTIL_H_
MBASE_PUBLIC bool IsMACAddress(const QString &MAC)
MBASE_PUBLIC loadArray getLoadAvgs(void)
Returns the system load averages.
MBASE_PUBLIC void myth_yield(void)
MBASE_PUBLIC bool IsPulseAudioRunning(void)
Is A/V Sync destruction daemon is running on this host?
MBASE_PUBLIC QString getSymlinkTarget(const QString &start_file, QStringList *intermediaries=nullptr, unsigned maxLinks=255)
MBASE_PUBLIC bool telnet(const QString &host, int port)
Can we talk to port on host?
MBASE_PUBLIC QString getResponse(const QString &query, const QString &def)
In an interactive shell, prompt the user to input a string.
MBASE_PUBLIC long long copy(QFile &dst, QFile &src, uint block_size=0)
Copies src file to dst file.
MBASE_PUBLIC bool WakeOnLAN(const QString &MAC)
MBASE_PUBLIC QString createTempFile(QString name_template="/tmp/mythtv_XXXXXX", bool dir=false)
MBASE_PUBLIC bool MythRemoveDirectory(QDir &aDir)
std::array< double, 3 > loadArray
MBASE_PUBLIC bool MythWakeup(const QString &wakeUpCommand, uint flags=kMSNone, std::chrono::seconds timeout=0s)
MBASE_PUBLIC bool myth_ioprio(int val)
range -1..8, smaller is higher priority
MBASE_PUBLIC bool ping(const QString &host, std::chrono::milliseconds timeout)
Can we ping host within timeout seconds?
MBASE_PUBLIC QString FileHash(const QString &filename)
MBASE_PUBLIC int intResponse(const QString &query, int def)
In an interactive shell, prompt the user to input a number.
MBASE_PUBLIC bool myth_nice(int val)
MBASE_PUBLIC bool getUptime(std::chrono::seconds &uptime)
MBASE_PUBLIC void setHttpProxy(void)
Get network proxy settings from OS, and use for [Q]Http[Comms].
MBASE_PUBLIC bool getMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM)
Returns memory statistics in megabytes.
MBASE_PUBLIC bool makeFileAccessible(const QString &filename)