harbour-nextcloudnotes/qml/harbour-nextcloudnotes.qml

32 lines
857 B
QML
Raw Normal View History

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
path: "/apps/harbour-nextcloudnotes/settings"
2018-10-16 18:50:58 +03:00
property string lastUpdate: qsTr("never")
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
}
property var notes: NotesApi {
2018-10-16 18:50:58 +03:00
name: "notes"
saveFile: false
}
Connections {
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
}