1 #ifndef __BACKENDSELECT_H__ 2 #define __BACKENDSELECT_H__ 21 const QString
gBackendURI =
"urn:schemas-mythtv-org:device:MasterMediaServer:1";
24 const QString
kDefaultMFE =
"UPnP/MythFrontend/DefaultBackend/";
28 typedef QMap <QString, DeviceLocation*>
ItemMap;
55 bool Create(
void)
override;
56 void Close(
void)
override;
66 void Load(
void)
override;
67 void Init(
void)
override;
Classes to Prompt user for a master backend.
MythUIButton * m_saveButton
BackendDecision m_backendDecision
QMap< QString, DeviceLocation * > ItemMap
const QString kDefaultWOL
bool ConnectBackend(DeviceLocation *dev)
Attempt UPnP connection to a backend device, get its DB details.
static void error(const char *str,...)
bool Create(void) override
enum BackendSelection::Decision BackendDecision
MythUIButtonList * m_backendList
const QString gBackendURI
Service type for the backend's UPnP server.
static Decision Prompt(DatabaseParams *dbParams, Configuration *pConfig)
void PromptForPassword(void)
Q_DECLARE_METATYPE(GrabberScript *)
MythUIButton * m_cancelButton
MythUIButton * m_manualButton
BackendSelection(MythScreenStack *parent, DatabaseParams *params, Configuration *pConfig, bool exitOnFinish=false)
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
virtual ~BackendSelection()
void Cancel(void)
Linked to 'Cancel' button.
void Close(void) override
void RemoveItem(QString URN)
void customEvent(QEvent *event) override
DatabaseParams * m_DBparams
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Configuration * m_pConfig
Structure containing the basic Database parameters.
void AddItem(DeviceLocation *dev)
const QString kDefaultPIN
const QString kDefaultUSN
bool TryDBfromURL(const QString &error, QString URL)
const QString kDefaultMFE
Screen in which all other widgets are contained and rendered.
void Manual(void)
Linked to 'Configure Manually' button.
void CloseWithDecision(Decision)