MythTV  master
Public Member Functions | Private Slots | Private Attributes | List of all members
LCDServer Class Reference

#include <lcdserver.h>

Inheritance diagram for LCDServer:
Inheritance graph
[legend]
Collaboration diagram for LCDServer:
Collaboration graph
[legend]

Public Member Functions

 LCDServer (int port, QString message, int messageTime)
 
void sendKeyPress (const QString &key_pressed)
 

Private Slots

void newConnection (QTcpSocket *socket)
 
void endConnection (void)
 
void readSocket ()
 
static QStringList parseCommand (QString &command)
 
void parseTokens (const QStringList &tokens, QTcpSocket *socket)
 
void shutDown ()
 
static void sendMessage (QTcpSocket *where, const QString &what)
 
void sendConnected (QTcpSocket *socket)
 
void switchToTime (QTcpSocket *socket)
 
void switchToMusic (const QStringList &tokens, QTcpSocket *socket)
 
void switchToGeneric (const QStringList &tokens, QTcpSocket *socket)
 
void switchToChannel (const QStringList &tokens, QTcpSocket *socket)
 
void switchToVolume (const QStringList &tokens, QTcpSocket *socket)
 
void switchToNothing (QTcpSocket *socket)
 
void switchToMenu (const QStringList &tokens, QTcpSocket *socket)
 
void setChannelProgress (const QStringList &tokens, QTcpSocket *socket)
 
void setMusicProgress (const QStringList &tokens, QTcpSocket *socket)
 
void setMusicProp (const QStringList &tokens, QTcpSocket *socket)
 
void setGenericProgress (const QStringList &tokens, QTcpSocket *socket)
 
void setVolumeLevel (const QStringList &tokens, QTcpSocket *socket)
 
void updateLEDs (const QStringList &tokens, QTcpSocket *socket)
 

Private Attributes

LCDProcClientm_lcd
 
ServerPoolm_serverPool
 
QTcpSocket * m_lastSocket
 

Detailed Description

Definition at line 27 of file lcdserver.h.

Constructor & Destructor Documentation

◆ LCDServer()

LCDServer::LCDServer ( int  port,
QString  message,
int  messageTime 
)

Definition at line 79 of file lcdserver.cpp.

Member Function Documentation

◆ sendKeyPress()

void LCDServer::sendKeyPress ( const QString &  key_pressed)

Definition at line 294 of file lcdserver.cpp.

Referenced by LCDProcClient::serverSendingData().

◆ newConnection

void LCDServer::newConnection ( QTcpSocket *  socket)
privateslot

Definition at line 106 of file lcdserver.cpp.

Referenced by LCDServer().

◆ endConnection

void LCDServer::endConnection ( void  )
privateslot

Definition at line 120 of file lcdserver.cpp.

Referenced by newConnection().

◆ readSocket

void LCDServer::readSocket ( )
privateslot

Definition at line 135 of file lcdserver.cpp.

Referenced by newConnection().

◆ parseCommand

QStringList LCDServer::parseCommand ( QString &  command)
staticprivateslot

Definition at line 154 of file lcdserver.cpp.

Referenced by readSocket().

◆ parseTokens

void LCDServer::parseTokens ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 182 of file lcdserver.cpp.

Referenced by readSocket().

◆ shutDown

void LCDServer::shutDown ( )
privateslot

Definition at line 273 of file lcdserver.cpp.

Referenced by parseTokens().

◆ sendMessage

void LCDServer::sendMessage ( QTcpSocket *  where,
const QString &  what 
)
staticprivateslot

◆ sendConnected

void LCDServer::sendConnected ( QTcpSocket *  socket)
privateslot

Definition at line 304 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToTime

void LCDServer::switchToTime ( QTcpSocket *  socket)
privateslot

Definition at line 321 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToMusic

void LCDServer::switchToMusic ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 332 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToGeneric

void LCDServer::switchToGeneric ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 353 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToChannel

void LCDServer::switchToChannel ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 424 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToVolume

void LCDServer::switchToVolume ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 445 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToNothing

void LCDServer::switchToNothing ( QTcpSocket *  socket)
privateslot

Definition at line 466 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToMenu

void LCDServer::switchToMenu ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 477 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setChannelProgress

void LCDServer::setChannelProgress ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 579 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setMusicProgress

void LCDServer::setMusicProgress ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 652 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setMusicProp

void LCDServer::setMusicProp ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 684 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setGenericProgress

void LCDServer::setGenericProgress ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 611 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setVolumeLevel

void LCDServer::setVolumeLevel ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 756 of file lcdserver.cpp.

Referenced by parseTokens().

◆ updateLEDs

void LCDServer::updateLEDs ( const QStringList &  tokens,
QTcpSocket *  socket 
)
privateslot

Definition at line 788 of file lcdserver.cpp.

Referenced by parseTokens().

Member Data Documentation

◆ m_lcd

LCDProcClient* LCDServer::m_lcd
private

◆ m_serverPool

ServerPool* LCDServer::m_serverPool
private

Definition at line 67 of file lcdserver.h.

Referenced by LCDServer(), and shutDown().

◆ m_lastSocket

QTcpSocket* LCDServer::m_lastSocket
private

Definition at line 68 of file lcdserver.h.

Referenced by endConnection(), readSocket(), and sendKeyPress().


The documentation for this class was generated from the following files: