MythTV  master
Macros | Functions | Variables
networkcontrol.cpp File Reference
#include <chrono>
#include <thread>
#include <QCoreApplication>
#include <QDir>
#include <QEvent>
#include <QKeyEvent>
#include <QMap>
#include <QRegularExpression>
#include <QStringConverter>
#include <QStringList>
#include <QTextStream>
#include "libmythbase/compat.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdirs.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythbase/mythversion.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/remoteutil.h"
#include "libmythtv/mythsystemevent.h"
#include "libmythtv/previewgenerator.h"
#include "libmythui/mythmainwindow.h"
#include "libmythui/mythuibutton.h"
#include "libmythui/mythuibuttontree.h"
#include "libmythui/mythuicheckbox.h"
#include "libmythui/mythuiclock.h"
#include "libmythui/mythuieditbar.h"
#include "libmythui/mythuigroup.h"
#include "libmythui/mythuiguidegrid.h"
#include "libmythui/mythuihelper.h"
#include "libmythui/mythuiimage.h"
#include "libmythui/mythuiprogressbar.h"
#include "libmythui/mythuiscrollbar.h"
#include "libmythui/mythuishape.h"
#include "libmythui/mythuispinbox.h"
#include "libmythui/mythuitextedit.h"
#include "libmythui/mythuivideo.h"
#include "networkcontrol.h"
Include dependency graph for networkcontrol.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("NetworkControl: ")
 
#define LOC_ERR   QString("NetworkControl Error: ")
 

Functions

static bool is_abbrev (QString const &command, QString const &test, int minchars=1)
 Is test an abbreviation of command ? The test substring must be at least minchars long. More...
 

Variables

static constexpr qint64 FE_SHORT_TO { 2000 }
 
static constexpr qint64 FE_LONG_TO { 10000 }
 
static const QEvent::Type kNetworkControlDataReadyEvent
 
static const QRegularExpression kChanID1RE { "^\\d+$" }
 
static const QRegularExpression kStartTimeRE { R"(^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ?$)" }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("NetworkControl: ")

Definition at line 53 of file networkcontrol.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("NetworkControl Error: ")

Definition at line 54 of file networkcontrol.cpp.

Function Documentation

◆ is_abbrev()

static bool is_abbrev ( QString const &  command,
QString const &  test,
int  minchars = 1 
)
static

Is test an abbreviation of command ? The test substring must be at least minchars long.

Parameters
commandthe full command name
testthe string to test against the command name
mincharsthe minimum length of test in order to declare a match
Returns
true if test is the initial substring of command

Definition at line 75 of file networkcontrol.cpp.

Referenced by NetworkControl::processHelp(), NetworkControl::processNetworkControlCommand(), NetworkControl::processPlay(), and NetworkControl::processQuery().

Variable Documentation

◆ FE_SHORT_TO

constexpr qint64 FE_SHORT_TO { 2000 }
staticconstexpr

◆ FE_LONG_TO

constexpr qint64 FE_LONG_TO { 10000 }
staticconstexpr

Definition at line 57 of file networkcontrol.cpp.

Referenced by NetworkControl::processPlay().

◆ kNetworkControlDataReadyEvent

const QEvent::Type kNetworkControlDataReadyEvent
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 59 of file networkcontrol.cpp.

Referenced by NetworkControl::customEvent(), and NetworkControl::notifyDataAvailable().

◆ kChanID1RE

const QRegularExpression kChanID1RE { "^\\d+$" }
static

Definition at line 64 of file networkcontrol.cpp.

Referenced by NetworkControl::processPlay(), and NetworkControl::processQuery().

◆ kStartTimeRE

const QRegularExpression kStartTimeRE { R"(^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ?$)" }
static

Definition at line 66 of file networkcontrol.cpp.

Referenced by NetworkControl::processPlay(), and NetworkControl::processQuery().