networkcontrol.cpp File Reference

Go to the source code of this file.

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.

Variables

static QEvent::Type kNetworkControlDataReadyEvent

Function Documentation

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:
command the full command name
test the string to test against the command name
minchars the minimum length of test in order to declare a match
Returns:
true if test is the initial substring of command

Definition at line 45 of file networkcontrol.cpp.

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


Variable Documentation

QEvent::Type kNetworkControlDataReadyEvent [static]
Initial value:
    (QEvent::Type) QEvent::registerEventType()

Definition at line 33 of file networkcontrol.cpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sun May 27 06:41:46 2012 for MythTV by  doxygen 1.6.3