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