X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FConnectPage.qml;fp=remote%2Fqml%2Fpages%2FConnectPage.qml;h=4117cc70b47750a79fc55e18ff7159ed99a2b046;hb=1abfbdd94fa45883f6d742df00508715f79c9954;hp=0000000000000000000000000000000000000000;hpb=5a79899d5a888e9aa76f29cb889e77979062a4a1;p=xinema.git diff --git a/remote/qml/pages/ConnectPage.qml b/remote/qml/pages/ConnectPage.qml new file mode 100644 index 0000000..4117cc7 --- /dev/null +++ b/remote/qml/pages/ConnectPage.qml @@ -0,0 +1,53 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 +import fi.mikkosoft.xinema 0.1 + +Page +{ + id: page + + Item + { + width: page.width + height: page.height + + PageHeader + { + title: qsTr("Connecting...") + } + + Column + { + width: parent.width + spacing: Theme.paddingSmall + anchors.verticalCenter: parent.verticalCenter + + Label + { + width: parent.width + text: "Searching for Xinema server" + horizontalAlignment: Text.AlignHCenter + } + Label + { + width: parent.width + text: "Please wait" + horizontalAlignment: Text.AlignHCenter + } + } + + Discovery + { + id: discovery + active: true + + onServerNameChanged: + { + discovery.active = false; + xinemaControl.connect(discovery.serverName); + pageStack.replace("BrowsePage.qml"); + } + } + } +} +