MythTV  master
Macros | Functions | Variables
networkcontrol.cpp File Reference
#include "networkcontrol.h"
#include <chrono>
#include <thread>
#include <QCoreApplication>
#include <QRegExp>
#include <QStringList>
#include <QTextStream>
#include <QDir>
#include <QKeyEvent>
#include <QEvent>
#include <QMap>
#include "mythcorecontext.h"
#include "mythmiscutil.h"
#include "mythversion.h"
#include "programinfo.h"
#include "remoteutil.h"
#include "previewgenerator.h"
#include "compat.h"
#include "mythsystemevent.h"
#include "mythdirs.h"
#include "mythlogging.h"
#include "mythmainwindow.h"
#include "mythuihelper.h"
#include "mythuigroup.h"
#include "mythuiclock.h"
#include "mythuishape.h"
#include "mythuibutton.h"
#include "mythuitextedit.h"
#include "mythuibuttontree.h"
#include "mythuivideo.h"
#include "mythuiguidegrid.h"
#include "mythuicheckbox.h"
#include "mythuispinbox.h"
#include "mythuiprogressbar.h"
#include "mythuiscrollbar.h"
#include "mythuieditbar.h"
#include "mythuiimage.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: ")
 
#define FE_SHORT_TO   2000
 
#define FE_LONG_TO   10000
 

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 QEvent::Type kNetworkControlDataReadyEvent
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("NetworkControl: ")

Definition at line 50 of file networkcontrol.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("NetworkControl Error: ")

Definition at line 51 of file networkcontrol.cpp.

◆ FE_SHORT_TO

#define FE_SHORT_TO   2000

Definition at line 53 of file networkcontrol.cpp.

◆ FE_LONG_TO

#define FE_LONG_TO   10000

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 68 of file networkcontrol.cpp.

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

Variable Documentation

◆ kNetworkControlDataReadyEvent

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

Definition at line 56 of file networkcontrol.cpp.

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