Go to the documentation of this file.
36 QString channelname =
"");
39 bool Create(
void)
override;
40 void Load(
void)
override;
99 static QStringList
extract_csv(
const QString& strLine);
106 static QString
wget(QUrl& url,
const QString& strParam);
112 bool lookup(
const QString& strParam);
118 bool search(
const QString& strParam);
155 void Close()
override;
161 void Init(
void)
override;
178 const QString
m_url {
"http://services.mythtv.org/channel-icon/"};
200 #endif // IMPORTICONS_H
QString strCallsign
callsign
Image widget, displays a single image or multiple images in sequence.
QList< CSVEntry > ListEntries
List of CSV entries.
QString strName
the remote name
void itemChanged(MythUIButtonListItem *item)
static QString escape_csv(const QString &str)
changes a string into csv format
MythScreenStack * m_popupStack
QString strNameCSV
name (csv form)
QString m_strChannelname
the channel name if searching for a single channel icon
QList< SearchEntry > ListSearchEntries
List of SearchEntry entries.
int m_missingCount
the current search point (0..m_missingCount)
bool doLoad()
attempts to move the iteration on one/more than one
bool Create(void) override
bool search(const QString &strParam)
search the remote db for icons etc
QString strServiceId
service id
A text entry and edit widget.
static QStringList extract_csv(const QString &strLine)
extracts the csv values out of a string
Screen in which all other widgets are contained and rendered.
int m_nCount
the current search point (0..m_nMaxCount)
QString strIconCSV
icon name (csv form)
MythUIButton * m_manualButton
manual button field
bool initialLoad(const QString &name="")
attempt the inital load of the TV channel information
ListEntriesIter m_iter
the current iterator
int m_nMaxCount
the maximum number of TV channels
MythUIButtonList * m_iconsList
list of potential icons
Q_DECLARE_METATYPE(StandardSetting *)
ListEntries m_listEntries
list of TV channels to search for
QString strName
channel name
QString strNetworkId
network id
bool lookup(const QString &strParam)
looks up the string to determine the caller/xmltvid
QString m_strChannelDir
the location of the channel icon dir
ListEntries m_missingEntries
list of TV channels with no unique icon
void enableControls(ImportIconsWizard::dialogState state=STATE_NORMAL)
enable/disable the controls
MythUITextEdit * m_manualEdit
manual edit field
MythUIProgressDialog * m_progressDialog
void skip()
skip this icon
QString strXmlTvId
the xmltvid
ListEntriesIter m_missingIter
ListSearchEntries m_listSearch
the list of SearchEntry
describes the TV channel name
bool checkAndDownload(const QString &url, const QString &localChanId)
checks and attempts to download the logo file to the appropriate place
~ImportIconsWizard() override
QString m_strMatches
the string for the submit() call
All purpose text widget, displays a text string.
ImportIconsWizard(MythScreenStack *parent, bool fRefresh, QString channelname="")
static QString wget(QUrl &url, const QString &strParam)
use the equivalent of wget to fetch the POST command
MythUIText * m_statusText
void askSubmit(const QString &strParam)
QString strAtscMajorChan
ATSC major number.
MythUIText * m_previewtitle
QString strChanId
local channel id
int m_missingMaxCount
the total number of missing icons
QString strLogo
the actual logo
void customEvent(QEvent *event) override
QList< SearchEntry >::Iterator ListSearchEntriesIter
iterator over list of SearchEntry entries
void menuSelection(MythUIButtonListItem *item)
process the icon selection
void manualSearch()
process the manual search
QString strTransportId
transport id
MythUIText * m_nameText
name field for the icon
bool m_fRefresh
are we doing a refresh or not
MythUIButton * m_skipButton
button skip
QList< CSVEntry >::Iterator ListEntriesIter
iterator over list of CSV entries
bool submit()
submit the icon information back to the remote db
QString strAtscMinorChan
ATSC minor number.
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
bool findmissing(const QString &strParam)
retrieve the actual logo for the TV channel
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
QString strID
the remote channel id