MythTV  master
Classes | Macros | Functions
statusbox.cpp File Reference
#include <QHostAddress>
#include <QNetworkInterface>
#include "libmythbase/filesysteminfo.h"
#include "libmythbase/mythchrono.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythbase/mythversion.h"
#include "libmythbase/remoteutil.h"
#include "libmythbase/stringutil.h"
#include "libmythtv/cardutil.h"
#include "libmythtv/decoders/mythcodeccontext.h"
#include "libmythtv/jobqueue.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/tv.h"
#include "libmythui/mythdialogbox.h"
#include "libmythui/mythdisplay.h"
#include "libmythui/mythrender_base.h"
#include "libmythui/mythuibuttonlist.h"
#include "libmythui/mythuihelper.h"
#include "libmythui/mythuistatetype.h"
#include "libmythui/mythuitext.h"
#include "libmythui/opengl/mythrenderopengl.h"
#include "statusbox.h"
Include dependency graph for statusbox.cpp:

Go to the source code of this file.

Classes

struct  LogLine
 

Macros

#define ADD_STATUS_LOG_LINE(rtype, fstate)
 

Functions

static QString usage_str_kb (long long total, long long used, long long free)
 
static QString usage_str_mb (float total, float used, float free)
 
static void disk_usage_with_rec_time_kb (QStringList &out, long long total, long long used, long long free, const recprof2bps_t &prof2bps)
 
static QString uptimeStr (std::chrono::seconds uptime)
 

Macro Definition Documentation

◆ ADD_STATUS_LOG_LINE

#define ADD_STATUS_LOG_LINE (   rtype,
  fstate 
)
Value:
do { \
if (statusMatch[rtype] > 0) \
{ \
tmpstr = QString("%1 %2").arg(statusMatch[rtype]) \
.arg(statusText[rtype]); \
AddLogLine(tmpstr, helpmsg, tmpstr, tmpstr, fstate);\
} \
} while (false)

Function Documentation

◆ usage_str_kb()

static QString usage_str_kb ( long long  total,
long long  used,
long long  free 
)
static

Definition at line 1022 of file statusbox.cpp.

Referenced by disk_usage_with_rec_time_kb(), and usage_str_mb().

◆ usage_str_mb()

static QString usage_str_mb ( float  total,
float  used,
float  free 
)
static

Definition at line 1039 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().

◆ disk_usage_with_rec_time_kb()

static void disk_usage_with_rec_time_kb ( QStringList &  out,
long long  total,
long long  used,
long long  free,
const recprof2bps_t prof2bps 
)
static

Definition at line 1045 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().

◆ uptimeStr()

static QString uptimeStr ( std::chrono::seconds  uptime)
static

Definition at line 1082 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().