1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Added information about O/S, CPU architecture and application name where it was missing

This commit is contained in:
f4exb
2018-01-07 01:33:57 +01:00
parent 85e1606962
commit 7bdc161c91
14 changed files with 122 additions and 14 deletions
+6
View File
@@ -18,6 +18,7 @@
#include <QApplication>
#include <QList>
#include <QSysInfo>
#include <unistd.h>
@@ -72,8 +73,13 @@ int WebAPIAdapterGUI::instanceSummary(
SWGSDRangel::SWGErrorResponse& error __attribute__((unused)))
{
*response.getAppname() = qApp->applicationName();
*response.getVersion() = qApp->applicationVersion();
*response.getQtVersion() = QString(QT_VERSION_STR);
#if QT_VERSION >= 0x050400
*response.getArchitecture() = QString(QSysInfo::currentCpuArchitecture());
*response.getOs() = QString(QSysInfo::prettyProductName());
#endif
SWGSDRangel::SWGLoggingInfo *logging = response.getLogging();
logging->init();