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, std::chrono::seconds 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 { nullptr }
 
ServerPoolm_serverPool { nullptr }
 
QTcpSocket * m_lastSocket { nullptr }
 

Detailed Description

Definition at line 27 of file lcdserver.h.

Constructor & Destructor Documentation

◆ LCDServer()

LCDServer::LCDServer ( int  port,
QString  message,
std::chrono::seconds  messageTime 
)

Definition at line 82 of file lcdserver.cpp.

Member Function Documentation

◆ sendKeyPress()

void LCDServer::sendKeyPress ( const QString &  key_pressed)

Definition at line 296 of file lcdserver.cpp.

Referenced by LCDProcClient::serverSendingData().

◆ newConnection

void LCDServer::newConnection ( QTcpSocket *  socket)
privateslot

Definition at line 108 of file lcdserver.cpp.

Referenced by LCDServer().

◆ endConnection

void LCDServer::endConnection ( void  )
privateslot

Definition at line 122 of file lcdserver.cpp.

Referenced by newConnection().

◆ readSocket

void LCDServer::readSocket ( )
privateslot

Definition at line 137 of file lcdserver.cpp.

Referenced by newConnection().

◆ parseCommand

QStringList LCDServer::parseCommand ( QString &  command)
staticprivateslot

Definition at line 156 of file lcdserver.cpp.

Referenced by readSocket().

◆ parseTokens

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

Definition at line 184 of file lcdserver.cpp.

Referenced by readSocket().

◆ shutDown

void LCDServer::shutDown ( )
privateslot

Definition at line 275 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 306 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToTime

void LCDServer::switchToTime ( QTcpSocket *  socket)
privateslot

Definition at line 325 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToMusic

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

Definition at line 336 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToGeneric

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

Definition at line 357 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToChannel

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

Definition at line 428 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToVolume

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

Definition at line 449 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToNothing

void LCDServer::switchToNothing ( QTcpSocket *  socket)
privateslot

Definition at line 470 of file lcdserver.cpp.

Referenced by parseTokens().

◆ switchToMenu

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

Definition at line 481 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setChannelProgress

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

Definition at line 583 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setMusicProgress

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

Definition at line 656 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setMusicProp

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

Definition at line 688 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setGenericProgress

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

Definition at line 615 of file lcdserver.cpp.

Referenced by parseTokens().

◆ setVolumeLevel

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

Definition at line 760 of file lcdserver.cpp.

Referenced by parseTokens().

◆ updateLEDs

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

Definition at line 792 of file lcdserver.cpp.

Referenced by parseTokens().

Member Data Documentation

◆ m_lcd

LCDProcClient* LCDServer::m_lcd { nullptr }
private

◆ m_serverPool

ServerPool* LCDServer::m_serverPool { nullptr }
private

Definition at line 67 of file lcdserver.h.

Referenced by LCDServer(), and shutDown().

◆ m_lastSocket

QTcpSocket* LCDServer::m_lastSocket { nullptr }
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: