#include <lcddevice.h>

Definition at line 103 of file lcddevice.h.
Public Types | |
| enum | { MUSIC_REPEAT_NONE = 0, MUSIC_REPEAT_TRACK = 1, MUSIC_REPEAT_ALL = 2 } |
| enum | { MUSIC_SHUFFLE_NONE = 0, MUSIC_SHUFFLE_RAND = 1, MUSIC_SHUFFLE_SMART = 2, MUSIC_SHUFFLE_ALBUM = 3, MUSIC_SHUFFLE_ARTIST = 4 } |
Public Member Functions | |
| ~LCD () | |
| bool | connectToHost (const QString &hostname, unsigned int port) |
| void | switchToTime () |
| void | switchToMusic (const QString &artist, const QString &album, const QString &track) |
| void | setLevels (int numbLevels, float *values) |
| void | switchToChannel (QString channum="", QString title="", QString subtitle="") |
| void | setChannelProgress (float percentViewed) |
| void | switchToMenu (QPtrList< LCDMenuItem > *menuItems, QString app_name="", bool popMenu=true) |
| void | switchToGeneric (QPtrList< LCDTextItem > *textItems) |
| void | setGenericProgress (float generic_progress) |
| Update the generic progress bar. | |
| void | setGenericBusy () |
| Update the generic screen to display a busy spinner. | |
| void | setMusicProgress (QString time, float generic_progress) |
| void | setMusicRepeat (int repeat) |
| Set music player's repeat properties. | |
| void | setMusicShuffle (int shuffle) |
| Set music player's shuffle properties. | |
| void | switchToVolume (QString app_name) |
| void | setVolumeLevel (float volume_level) |
| void | switchToNothing () |
| void | shutdown () |
| void | setupLEDs (int(*LedMaskFunc)(void)) |
| void | stopAll (void) |
| uint | getLCDHeight (void) |
| uint | getLCDWidth (void) |
| void | resetServer (void) |
Static Public Member Functions | |
| static class LCD * | Get (void) |
| static void | SetupLCD (void) |
Protected Member Functions | |
| LCD () | |
Static Protected Attributes | |
| static bool | m_server_unavailable = false |
| static class LCD * | m_lcd = NULL |
| static bool | m_enabled = false |
Private Slots | |
| void | restartConnection () |
| void | outputLEDs () |
Private Member Functions | |
| void | sendToServer (const QString &someText) |
| void | init () |
| void | handleKeyPress (QString key) |
| QString | quotedString (const QString &s) |
| void | describeServer () |
| void | connected (MythSocket *sock) |
| void | connectionClosed (MythSocket *sock) |
| void | readyRead (MythSocket *sock) |
| void | connectionFailed (MythSocket *sock) |
Private Attributes | |
| MythSocket * | socket |
| QMutex | socketLock |
| QString | hostname |
| uint | port |
| bool | bConnected |
| QTimer * | retryTimer |
| QTimer * | LEDTimer |
| QString | send_buffer |
| QString | last_command |
| int | lcd_width |
| int | lcd_height |
| bool | lcd_ready |
| bool | lcd_showtime |
| bool | lcd_showmenu |
| bool | lcd_showgeneric |
| bool | lcd_showmusic |
| bool | lcd_showchannel |
| bool | lcd_showvolume |
| bool | lcd_showrecstatus |
| bool | lcd_backlighton |
| bool | lcd_heartbeaton |
| int | lcd_popuptime |
| QString | lcd_showmusic_items |
| QString | lcd_keystring |
| int(* | GetLEDMask )(void) |
| anonymous enum |
Definition at line 117 of file lcddevice.h.
| anonymous enum |
| MUSIC_SHUFFLE_NONE | |
| MUSIC_SHUFFLE_RAND | |
| MUSIC_SHUFFLE_SMART | |
| MUSIC_SHUFFLE_ALBUM | |
| MUSIC_SHUFFLE_ARTIST |
Definition at line 123 of file lcddevice.h.
| LCD::LCD | ( | ) | [protected] |
Definition at line 39 of file lcddevice.cpp.
| LCD::~LCD | ( | ) |
Definition at line 668 of file lcddevice.cpp.
| class LCD * LCD::Get | ( | void | ) | [static] |
Definition at line 82 of file lcddevice.cpp.
Referenced by MythProgressDialog::Close(), PlaybackBoxMusic::customEvent(), MiniPlayer::customEvent(), UIManagedTreeListType::Draw(), UIListBtnType::Draw(), PlaybackBoxMusic::end(), MythThemedMenuPrivate::gestureEvent(), DatabaseBox::keepFilling(), main(), mythplugin_config(), MythProgressDialog::MythProgressDialog(), MythThemedMenuPrivate::parseMenu(), TV::Playback(), PlaybackBoxMusic::PlaybackBoxMusic(), reloadTheme(), CDRipperThread::ripTrack(), CDRipperThread::run(), runMenu(), TV::RunTV(), PlaybackBoxMusic::seek(), MiniPlayer::seek(), MythBusyDialog::setProgress(), MythProgressDialog::setProgress(), PlaybackBoxMusic::setRepeatMode(), PlaybackBoxMusic::setShuffleMode(), PlaybackBoxMusic::setTrackOnLCD(), SetupLCD(), MiniPlayer::showInfoTimeout(), TV::ShowLCDChannelInfo(), TV::ShowLCDDVDInfo(), MiniPlayer::showRepeatMode(), MiniPlayer::showShuffleMode(), PlaybackBoxMusic::showSpeed(), MiniPlayer::showSpeed(), PlaybackBoxMusic::showVolume(), MiniPlayer::showVolume(), DatabaseBox::showWaiting(), Ripper::startEjectCD(), Ripper::startRipper(), PlaybackBoxMusic::stopAll(), MythThemedMenuPrivate::updateLCD(), ImageView::UpdateLCD(), PlaybackBox::updateShowTitles(), MiniPlayer::updateTrackInfo(), WelcomeDialog::WelcomeDialog(), DatabaseBox::~DatabaseBox(), MiniPlayer::~MiniPlayer(), PlaybackBoxMusic::~PlaybackBoxMusic(), RipStatus::~RipStatus(), and TV::~TV().
| void LCD::SetupLCD | ( | void | ) | [static] |
Definition at line 89 of file lcddevice.cpp.
Referenced by main(), reloadTheme(), and WelcomeDialog::WelcomeDialog().
| bool LCD::connectToHost | ( | const QString & | hostname, | |
| unsigned int | port | |||
| ) |
| void LCD::switchToTime | ( | ) |
Definition at line 492 of file lcddevice.cpp.
Referenced by MythProgressDialog::Close(), and ImageView::UpdateLCD().
| void LCD::switchToMusic | ( | const QString & | artist, | |
| const QString & | album, | |||
| const QString & | track | |||
| ) |
Definition at line 504 of file lcddevice.cpp.
Referenced by PlaybackBoxMusic::setTrackOnLCD(), MiniPlayer::showInfoTimeout(), and MiniPlayer::updateTrackInfo().
| void LCD::setLevels | ( | int | numbLevels, | |
| float * | values | |||
| ) |
Definition at line 685 of file lcddevice.cpp.
| void LCD::switchToChannel | ( | QString | channum = "", |
|
| QString | title = "", |
|||
| QString | subtitle = "" | |||
| ) |
Definition at line 518 of file lcddevice.cpp.
Referenced by TV::ShowLCDChannelInfo(), and TV::ShowLCDDVDInfo().
| void LCD::setChannelProgress | ( | float | percentViewed | ) |
Definition at line 406 of file lcddevice.cpp.
| void LCD::switchToMenu | ( | QPtrList< LCDMenuItem > * | menuItems, | |
| QString | app_name = "", |
|||
| bool | popMenu = true | |||
| ) |
Definition at line 532 of file lcddevice.cpp.
Referenced by MythThemedMenuPrivate::updateLCD(), and PlaybackBox::updateShowTitles().
| void LCD::switchToGeneric | ( | QPtrList< LCDTextItem > * | textItems | ) |
| void LCD::setGenericProgress | ( | float | generic_progress | ) |
Update the generic progress bar.
| generic_progress | a value between 0 and 1.0 |
Definition at line 415 of file lcddevice.cpp.
| void LCD::setGenericBusy | ( | ) |
Update the generic screen to display a busy spinner.
Definition at line 424 of file lcddevice.cpp.
| void LCD::setMusicProgress | ( | QString | time, | |
| float | generic_progress | |||
| ) |
Definition at line 432 of file lcddevice.cpp.
| void LCD::setMusicRepeat | ( | int | repeat | ) |
Set music player's repeat properties.
| repeat | the state of repeat |
Definition at line 450 of file lcddevice.cpp.
| void LCD::setMusicShuffle | ( | int | shuffle | ) |
Set music player's shuffle properties.
| shuffle | the state of shuffle |
Definition at line 442 of file lcddevice.cpp.
| void LCD::switchToVolume | ( | QString | app_name | ) |
Definition at line 615 of file lcddevice.cpp.
| void LCD::setVolumeLevel | ( | float | volume_level | ) |
Definition at line 458 of file lcddevice.cpp.
| void LCD::switchToNothing | ( | ) |
| void LCD::shutdown | ( | ) |
Definition at line 639 of file lcddevice.cpp.
| void LCD::setupLEDs | ( | int(*)(void) | LedMaskFunc | ) |
Definition at line 471 of file lcddevice.cpp.
| void LCD::stopAll | ( | void | ) |
Definition at line 394 of file lcddevice.cpp.
| uint LCD::getLCDHeight | ( | void | ) | [inline] |
Definition at line 217 of file lcddevice.h.
| uint LCD::getLCDWidth | ( | void | ) | [inline] |
Definition at line 218 of file lcddevice.h.
| void LCD::resetServer | ( | void | ) |
Definition at line 654 of file lcddevice.cpp.
| void LCD::restartConnection | ( | ) | [private, slot] |
| void LCD::outputLEDs | ( | ) | [private, slot] |
| void LCD::sendToServer | ( | const QString & | someText | ) | [private] |
Definition at line 207 of file lcddevice.cpp.
Referenced by init(), outputLEDs(), resetServer(), setChannelProgress(), setGenericBusy(), setGenericProgress(), setMusicProgress(), setMusicRepeat(), setMusicShuffle(), setVolumeLevel(), stopAll(), switchToChannel(), switchToGeneric(), switchToMenu(), switchToMusic(), switchToNothing(), switchToTime(), and switchToVolume().
| void LCD::init | ( | ) | [private] |
| void LCD::handleKeyPress | ( | QString | key | ) | [private] |
| QString LCD::quotedString | ( | const QString & | s | ) | [private] |
Definition at line 695 of file lcddevice.cpp.
Referenced by setMusicProgress(), switchToChannel(), switchToGeneric(), switchToMenu(), switchToMusic(), and switchToVolume().
| void LCD::describeServer | ( | ) | [private] |
| void LCD::connected | ( | MythSocket * | sock | ) | [inline, private, virtual] |
Implements MythSocketCBs.
Definition at line 235 of file lcddevice.h.
Referenced by TV::IsTunable().
| void LCD::connectionClosed | ( | MythSocket * | sock | ) | [private, virtual] |
| void LCD::readyRead | ( | MythSocket * | sock | ) | [private, virtual] |
Implements MythSocketCBs.
Definition at line 263 of file lcddevice.cpp.
Referenced by LCDProcClient::LCDProcClient().
| void LCD::connectionFailed | ( | MythSocket * | sock | ) | [private, virtual] |
bool LCD::m_server_unavailable = false [static, protected] |
Definition at line 110 of file lcddevice.h.
Referenced by connectToHost(), Get(), restartConnection(), and SetupLCD().
class LCD * LCD::m_lcd = NULL [static, protected] |
bool LCD::m_enabled = false [static, protected] |
MythSocket* LCD::socket [private] |
Definition at line 240 of file lcddevice.h.
Referenced by connectToHost(), readyRead(), sendToServer(), shutdown(), and ~LCD().
QMutex LCD::socketLock [private] |
Definition at line 241 of file lcddevice.h.
Referenced by connectionFailed(), connectToHost(), readyRead(), resetServer(), sendToServer(), and shutdown().
QString LCD::hostname [private] |
Definition at line 242 of file lcddevice.h.
bool LCD::bConnected [private] |
Definition at line 244 of file lcddevice.h.
Referenced by connectionClosed(), connectToHost(), init(), restartConnection(), sendToServer(), and shutdown().
QTimer* LCD::retryTimer [private] |
QTimer* LCD::LEDTimer [private] |
QString LCD::send_buffer [private] |
QString LCD::last_command [private] |
int LCD::lcd_width [private] |
int LCD::lcd_height [private] |
bool LCD::lcd_ready [private] |
Definition at line 255 of file lcddevice.h.
Referenced by connectToHost(), init(), outputLEDs(), resetServer(), restartConnection(), sendToServer(), setChannelProgress(), setGenericBusy(), setGenericProgress(), setMusicProgress(), setMusicRepeat(), setMusicShuffle(), setVolumeLevel(), shutdown(), stopAll(), switchToChannel(), switchToGeneric(), switchToMenu(), switchToMusic(), switchToNothing(), switchToTime(), switchToVolume(), and ~LCD().
bool LCD::lcd_showtime [private] |
bool LCD::lcd_showmenu [private] |
bool LCD::lcd_showgeneric [private] |
Definition at line 259 of file lcddevice.h.
Referenced by init(), setGenericBusy(), setGenericProgress(), and switchToGeneric().
bool LCD::lcd_showmusic [private] |
Definition at line 260 of file lcddevice.h.
Referenced by init(), setMusicProgress(), setMusicRepeat(), setMusicShuffle(), and switchToMusic().
bool LCD::lcd_showchannel [private] |
Definition at line 261 of file lcddevice.h.
Referenced by init(), setChannelProgress(), and switchToChannel().
bool LCD::lcd_showvolume [private] |
Definition at line 262 of file lcddevice.h.
Referenced by init(), setVolumeLevel(), and switchToVolume().
bool LCD::lcd_showrecstatus [private] |
bool LCD::lcd_backlighton [private] |
Definition at line 264 of file lcddevice.h.
bool LCD::lcd_heartbeaton [private] |
Definition at line 265 of file lcddevice.h.
int LCD::lcd_popuptime [private] |
Definition at line 266 of file lcddevice.h.
QString LCD::lcd_showmusic_items [private] |
Definition at line 267 of file lcddevice.h.
QString LCD::lcd_keystring [private] |
int(* LCD::GetLEDMask)(void) [private] |
Referenced by outputLEDs(), and setupLEDs().
1.5.5