networkcontrol.cpp File Reference

Go to the source code of this file.

Functions

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

Variables

const int kNetworkControlDataReadyEvent = 35671
const int kNetworkControlCloseEvent = 35672


Function Documentation

static bool is_abbrev ( QString const &  command,
QString const &  test,
unsigned  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 33 of file networkcontrol.cpp.

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


Variable Documentation

const int kNetworkControlDataReadyEvent = 35671

const int kNetworkControlCloseEvent = 35672


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5