#include <importicons.h>
Classes | |
| struct | CSVEntry |
| describes the TV channel name More... | |
| struct | SearchEntry |
| search entry results More... | |
Public Member Functions | |
| ImportIconsWizard (MythScreenStack *parent, bool fRefresh, const QString &channelname="") | |
| ~ImportIconsWizard () | |
| bool | Create (void) |
| void | customEvent (QEvent *event) |
Protected Slots | |
| void | enableControls (dialogState state=STATE_NORMAL, bool selectEnabled=true) |
| enable/disable the controls | |
| void | manualSearch () |
| process the manual search | |
| void | menuSelection (MythUIButtonListItem *) |
| process the icon selection | |
| void | skip () |
| skip this icon | |
| void | askSubmit (const QString &strParam) |
| void | Close () |
Protected Member Functions | |
| void | Init (void) |
| Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load(). | |
Private Types | |
| enum | dialogState { STATE_NORMAL, STATE_SEARCHING, STATE_DISABLED } |
| typedef QList< CSVEntry > | ListEntries |
| List of CSV entries. | |
| typedef QList< CSVEntry >::Iterator | ListEntriesIter |
| iterator over list of CSV entries | |
| typedef QList< SearchEntry > | ListSearchEntries |
| List of SearchEntry entries. | |
| typedef QList< SearchEntry > ::Iterator | ListSearchEntriesIter |
| iterator over list of SearchEntry entries | |
Private Slots | |
| void | itemChanged (MythUIButtonListItem *item) |
Private Member Functions | |
| QString | escape_csv (const QString &str) |
| changes a string into csv format | |
| QStringList | extract_csv (const QString &strLine) |
| extracts the csv values out of a string | |
| QString | wget (QUrl &url, const QString &strParam) |
| use the equivalent of wget to fetch the POST command | |
| bool | lookup (const QString &strParam) |
| looks up the string to determine the caller/xmltvid | |
| bool | search (const QString &strParam) |
| search the remote db for icons etc | |
| bool | submit () |
| submit the icon information back to the remote db | |
| bool | findmissing (const QString &strParam) |
| retrieve the actual logo for the TV channel | |
| bool | checkAndDownload (const QString &url, const QString &localChanId) |
| checks and attempts to download the logo file to the appropriate place | |
| bool | initialLoad (QString name="") |
| attempt the inital load of the TV channel information | |
| bool | doLoad () |
| attempts to move the iteration on one/more than one | |
| void | startDialog () |
Private Attributes | |
| ListEntries | m_listEntries |
| list of TV channels to search for | |
| ListEntries | m_missingEntries |
| list of TV channels with no unique icon | |
| ListEntriesIter | m_iter |
| the current iterator | |
| ListEntriesIter | m_missingIter |
| ListSearchEntries | m_listSearch |
| the list of SearchEntry | |
| QString | m_strMatches |
| the string for the submit() call | |
| QString | m_strChannelDir |
| the location of the channel icon dir | |
| QString | m_strChannelname |
| the channel name if searching for a single channel icon | |
| QString | m_strParam |
| bool | m_fRefresh |
| are we doing a refresh or not | |
| int | m_nMaxCount |
| the maximum number of TV channels | |
| int | m_nCount |
| the current search point (0..m_nMaxCount) | |
| int | m_missingMaxCount |
| the total number of missing icons | |
| int | m_missingCount |
| the current search point (0..m_missingCount) | |
| const QString | m_url |
| the default url | |
| QDir | m_tmpDir |
| MythScreenStack * | m_popupStack |
| MythUIProgressDialog * | m_progressDialog |
| MythUIButtonList * | m_iconsList |
| list of potential icons | |
| MythUITextEdit * | m_manualEdit |
| manual edit field | |
| MythUIText * | m_nameText |
| name field for the icon | |
| MythUIButton * | m_manualButton |
| manual button field | |
| MythUIButton * | m_skipButton |
| button skip | |
| MythUIText * | m_statusText |
| MythUIImage * | m_preview |
| MythUIText * | m_previewtitle |
Definition at line 28 of file importicons.h.
typedef QList<CSVEntry> ImportIconsWizard::ListEntries [private] |
List of CSV entries.
Definition at line 72 of file importicons.h.
typedef QList<CSVEntry>::Iterator ImportIconsWizard::ListEntriesIter [private] |
iterator over list of CSV entries
Definition at line 74 of file importicons.h.
typedef QList<SearchEntry> ImportIconsWizard::ListSearchEntries [private] |
List of SearchEntry entries.
Definition at line 82 of file importicons.h.
typedef QList<SearchEntry>::Iterator ImportIconsWizard::ListSearchEntriesIter [private] |
iterator over list of SearchEntry entries
Definition at line 84 of file importicons.h.
enum ImportIconsWizard::dialogState [private] |
Definition at line 50 of file importicons.h.
| ImportIconsWizard::ImportIconsWizard | ( | MythScreenStack * | parent, | |
| bool | fRefresh, | |||
| const QString & | channelname = "" | |||
| ) |
Definition at line 22 of file importicons.cpp.
| ImportIconsWizard::~ImportIconsWizard | ( | ) |
Definition at line 46 of file importicons.cpp.
| bool ImportIconsWizard::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 59 of file importicons.cpp.
Referenced by ChannelEditor::customEvent().
| void ImportIconsWizard::customEvent | ( | QEvent * | event | ) | [virtual] |
Reimplemented from MythUIType.
Definition at line 792 of file importicons.cpp.
| QString ImportIconsWizard::escape_csv | ( | const QString & | str | ) | [private] |
changes a string into csv format
| str | the string to change |
Definition at line 458 of file importicons.cpp.
Referenced by initialLoad(), manualSearch(), menuSelection(), and search().
| QStringList ImportIconsWizard::extract_csv | ( | const QString & | strLine | ) | [private] |
extracts the csv values out of a string
| str | the string to work on |
Definition at line 466 of file importicons.cpp.
Referenced by findmissing(), and search().
| QString ImportIconsWizard::wget | ( | QUrl & | url, | |
| const QString & | strParam | |||
| ) | [private] |
use the equivalent of wget to fetch the POST command
| url | the url to send this to | |
| strParam | the string to send |
Definition at line 510 of file importicons.cpp.
Referenced by findmissing(), lookup(), search(), and submit().
| bool ImportIconsWizard::lookup | ( | const QString & | strParam | ) | [private] |
looks up the string to determine the caller/xmltvid
| str | the string to work on |
Definition at line 560 of file importicons.cpp.
| bool ImportIconsWizard::search | ( | const QString & | strParam | ) | [private] |
search the remote db for icons etc
| str | the string to work on |
Definition at line 580 of file importicons.cpp.
Referenced by doLoad(), and manualSearch().
| bool ImportIconsWizard::submit | ( | ) | [private] |
submit the icon information back to the remote db
Definition at line 740 of file importicons.cpp.
Referenced by customEvent().
| bool ImportIconsWizard::findmissing | ( | const QString & | strParam | ) | [private] |
retrieve the actual logo for the TV channel
| str | the string to work on |
Definition at line 683 of file importicons.cpp.
Referenced by initialLoad().
| bool ImportIconsWizard::checkAndDownload | ( | const QString & | url, | |
| const QString & | localChanId | |||
| ) | [private] |
checks and attempts to download the logo file to the appropriate place
| url | the icon url | |
| localChanId | the local ID number of the channel |
Definition at line 526 of file importicons.cpp.
Referenced by findmissing(), and menuSelection().
| bool ImportIconsWizard::initialLoad | ( | QString | name = "" |
) | [private] |
attempt the inital load of the TV channel information
Definition at line 266 of file importicons.cpp.
Referenced by Create().
| bool ImportIconsWizard::doLoad | ( | ) | [private] |
attempts to move the iteration on one/more than one
Definition at line 425 of file importicons.cpp.
Referenced by Init(), menuSelection(), and skip().
| void ImportIconsWizard::enableControls | ( | dialogState | state = STATE_NORMAL, |
|
| bool | selectEnabled = true | |||
| ) | [protected, slot] |
enable/disable the controls
Definition at line 125 of file importicons.cpp.
Referenced by Create(), doLoad(), menuSelection(), and search().
| void ImportIconsWizard::manualSearch | ( | ) | [protected, slot] |
| void ImportIconsWizard::menuSelection | ( | MythUIButtonListItem * | item | ) | [protected, slot] |
| void ImportIconsWizard::skip | ( | ) | [protected, slot] |
| void ImportIconsWizard::askSubmit | ( | const QString & | strParam | ) | [protected, slot] |
Definition at line 724 of file importicons.cpp.
Referenced by Init(), menuSelection(), and skip().
| void ImportIconsWizard::Close | ( | void | ) | [protected, virtual, slot] |
Reimplemented from MythScreenType.
Definition at line 817 of file importicons.cpp.
Referenced by customEvent(), menuSelection(), and skip().
| void ImportIconsWizard::itemChanged | ( | MythUIButtonListItem * | item | ) | [private, slot] |
Definition at line 246 of file importicons.cpp.
Referenced by Create().
| void ImportIconsWizard::Init | ( | void | ) | [protected, virtual] |
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().
Reimplemented from MythScreenType.
Definition at line 112 of file importicons.cpp.
| void ImportIconsWizard::startDialog | ( | ) | [private] |
ListEntries ImportIconsWizard::m_listEntries [private] |
list of TV channels to search for
Definition at line 76 of file importicons.h.
Referenced by initialLoad().
list of TV channels with no unique icon
Definition at line 77 of file importicons.h.
Referenced by doLoad(), Init(), and initialLoad().
ListEntriesIter ImportIconsWizard::m_iter [private] |
Definition at line 79 of file importicons.h.
Referenced by doLoad(), Init(), menuSelection(), and skip().
QString ImportIconsWizard::m_strMatches [private] |
the string for the submit() call
Definition at line 162 of file importicons.h.
Referenced by Init(), menuSelection(), and skip().
QString ImportIconsWizard::m_strChannelDir [private] |
the location of the channel icon dir
Definition at line 164 of file importicons.h.
Referenced by checkAndDownload(), and initialLoad().
QString ImportIconsWizard::m_strChannelname [private] |
the channel name if searching for a single channel icon
Definition at line 165 of file importicons.h.
Referenced by Create(), and ImportIconsWizard().
QString ImportIconsWizard::m_strParam [private] |
Definition at line 166 of file importicons.h.
Referenced by askSubmit(), and submit().
bool ImportIconsWizard::m_fRefresh [private] |
are we doing a refresh or not
Definition at line 168 of file importicons.h.
Referenced by initialLoad().
int ImportIconsWizard::m_nMaxCount [private] |
the maximum number of TV channels
Definition at line 169 of file importicons.h.
Referenced by Init(), and initialLoad().
int ImportIconsWizard::m_nCount [private] |
the current search point (0..m_nMaxCount)
Definition at line 170 of file importicons.h.
Referenced by initialLoad().
int ImportIconsWizard::m_missingMaxCount [private] |
the total number of missing icons
Definition at line 171 of file importicons.h.
Referenced by doLoad(), enableControls(), initialLoad(), and menuSelection().
int ImportIconsWizard::m_missingCount [private] |
the current search point (0..m_missingCount)
Definition at line 172 of file importicons.h.
Referenced by doLoad(), enableControls(), menuSelection(), and skip().
const QString ImportIconsWizard::m_url [private] |
the default url
Definition at line 174 of file importicons.h.
Referenced by findmissing(), lookup(), search(), and submit().
QDir ImportIconsWizard::m_tmpDir [private] |
Definition at line 175 of file importicons.h.
Referenced by ImportIconsWizard(), and ~ImportIconsWizard().
MythScreenStack* ImportIconsWizard::m_popupStack [private] |
Definition at line 179 of file importicons.h.
Referenced by askSubmit(), ImportIconsWizard(), and initialLoad().
Definition at line 180 of file importicons.h.
Referenced by initialLoad().
MythUIButtonList* ImportIconsWizard::m_iconsList [private] |
list of potential icons
Definition at line 182 of file importicons.h.
Referenced by Create(), enableControls(), menuSelection(), and search().
MythUITextEdit* ImportIconsWizard::m_manualEdit [private] |
manual edit field
Definition at line 183 of file importicons.h.
Referenced by Create(), doLoad(), enableControls(), and manualSearch().
MythUIText* ImportIconsWizard::m_nameText [private] |
name field for the icon
Definition at line 184 of file importicons.h.
Referenced by Create(), doLoad(), and enableControls().
MythUIButton* ImportIconsWizard::m_manualButton [private] |
manual button field
Definition at line 185 of file importicons.h.
Referenced by Create(), and enableControls().
MythUIButton* ImportIconsWizard::m_skipButton [private] |
button skip
Definition at line 186 of file importicons.h.
Referenced by Create(), and enableControls().
MythUIText* ImportIconsWizard::m_statusText [private] |
Definition at line 187 of file importicons.h.
Referenced by Create(), doLoad(), manualSearch(), menuSelection(), and submit().
MythUIImage* ImportIconsWizard::m_preview [private] |
Definition at line 189 of file importicons.h.
Referenced by Create(), and itemChanged().
MythUIText* ImportIconsWizard::m_previewtitle [private] |
Definition at line 190 of file importicons.h.
Referenced by Create(), and itemChanged().
1.6.3