]> git.tdb.fi Git - xinema.git/blob - remote/qml/pages/ConnectPage.qml
Add a remote control program for Sailfish OS
[xinema.git] / remote / qml / pages / ConnectPage.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3 import fi.mikkosoft.xinema 0.1
4
5 Page
6 {
7         id: page
8
9         Item
10         {
11                 width: page.width
12                 height: page.height
13
14                 PageHeader
15                 {
16                         title: qsTr("Connecting...")
17                 }
18
19                 Column
20                 {
21                         width: parent.width
22                         spacing: Theme.paddingSmall
23                         anchors.verticalCenter: parent.verticalCenter
24
25                         Label
26                         {
27                                 width: parent.width
28                                 text: "Searching for Xinema server"
29                                 horizontalAlignment: Text.AlignHCenter
30                         }
31                         Label
32                         {
33                                 width: parent.width
34                                 text: "Please wait"
35                                 horizontalAlignment: Text.AlignHCenter
36                         }
37                 }
38
39                 Discovery
40                 {
41                         id: discovery
42                         active: true
43
44                         onServerNameChanged:
45                         {
46                                 discovery.active = false;
47                                 xinemaControl.connect(discovery.serverName);
48                                 pageStack.replace("BrowsePage.qml");
49                         }
50                 }
51         }
52 }
53