2018-10-16 18:50:58 +03:00
|
|
|
import QtQuick 2.0
|
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
import Nemo.Configuration 1.0
|
|
|
|
import "pages"
|
|
|
|
|
|
|
|
ApplicationWindow
|
|
|
|
{
|
|
|
|
id: appWindow
|
|
|
|
|
|
|
|
ConfigurationGroup {
|
|
|
|
id: appSettings
|
2018-10-17 00:52:28 +03:00
|
|
|
path: "/apps/harbour-nextcloudnotes/settings"
|
2018-10-16 18:50:58 +03:00
|
|
|
property string lastUpdate: qsTr("never")
|
2018-10-17 00:52:28 +03:00
|
|
|
property url server: "https://cloud.scharel.name" + "/index.php/apps/notes/api/v0.2/notes"
|
|
|
|
property string username: "test"
|
|
|
|
property string password // TODO provide password before testing
|
2018-10-16 18:50:58 +03:00
|
|
|
}
|
|
|
|
|
2018-10-17 00:52:28 +03:00
|
|
|
property var notes: NotesApi {
|
2018-10-16 18:50:58 +03:00
|
|
|
name: "notes"
|
|
|
|
saveFile: false
|
|
|
|
}
|
|
|
|
Connections {
|
2018-10-17 00:52:28 +03:00
|
|
|
target: notes
|
|
|
|
onLastUpdateChanged: appSettings.lastUpdate = notes.lastUpdate
|
2018-10-16 18:50:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
initialPage: Component { FirstPage { } }
|
|
|
|
cover: Qt.resolvedUrl("cover/CoverPage.qml")
|
|
|
|
allowedOrientations: defaultAllowedOrientations
|
|
|
|
}
|