Go to the documentation of this file. 1 #ifndef BACKENDSELECT_H
2 #define BACKENDSELECT_H
20 const QString
kBackendURI =
"urn:schemas-mythtv-org:device:MasterMediaServer:1";
23 const QString
kDefaultMFE =
"UPnP/MythFrontend/DefaultBackend/";
27 using ItemMap = QMap <QString, DeviceLocation*>;
50 QString config_filename,
bool exitOnFinish =
false);
53 bool Create(
void)
override;
54 void Close(
void)
override;
64 void Load(
void)
override;
65 void Init(
void)
override;
94 #endif // BACKENDSELECT_H
DatabaseParams * m_dbParams
void Cancel(void)
Linked to 'Cancel' button.
void Close(void) override
static void error(const char *str,...)
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
void customEvent(QEvent *event) override
Structure containing the basic Database parameters.
void AddItem(DeviceLocation *dev)
const QString kDefaultWOL
Screen in which all other widgets are contained and rendered.
Q_DECLARE_METATYPE(std::chrono::seconds)
BackendSelection(MythScreenStack *parent, DatabaseParams *params, QString config_filename, bool exitOnFinish=false)
void CloseWithDecision(Decision d)
void RemoveItem(const QString &USN)
void Manual(void)
Linked to 'Configure Manually' button.
Classes to Prompt user for a master backend.
MythUIButton * m_saveButton
const QString kBackendURI
bool ConnectBackend(DeviceLocation *dev)
Attempt UPnP connection to a backend device, get its DB details.
QMap< QString, DeviceLocation * > ItemMap
~BackendSelection() override
MythUIButtonList * m_backendList
static Decision Prompt(DatabaseParams *dbParams, const QString &config_filename)
bool TryDBfromURL(const QString &error, const QString &URL)
Decision m_backendDecision
bool Create(void) override
void PromptForPassword(void)
const QString kDefaultUSN
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
const QString kDefaultPIN
MythUIButton * m_cancelButton
MythUIButton * m_manualButton
static const iso6937table * d
const QString kDefaultMFE