10import org.kde.kirigami as Kirigami
11import org.kde.kcmutils as KCMUtils
12import SSO.OnlineAccounts as OA
17 property var folder: folderField.text
18 property var accountId
23 Layout.fillWidth: true
24 text: i18nd("purpose6_nextcloud",
"Select an account:")
25 visible:
list.count !== 0
33 Layout.fillWidth: true
34 Layout.fillHeight: true
36 Component.onCompleted: scroll.background.visible = true
43 model: OA.AccountServiceModel {
45 serviceType:
"dav-storage"
49 width: ListView.view.width
53 onCurrentIndexChanged: {
54 if (currentIndex === -1) {
55 root.accountId = undefined
59 root.accountId = serviceModel.get(
list.currentIndex,
"accountId")
63 anchors.centerIn: parent
64 width: parent.width - (
Kirigami.Units.largeSpacing * 4)
65 visible:
list.count === 0
66 text:
i18nd(
"purpose6_nextcloud",
"No account configured")
74 text:
i18nd(
"purpose6_nextcloud",
"Configure Accounts")
75 icon.
name:
"applications-internet"
76 onClicked: KCMUtils.KCMLauncher.openSystemSettings(
"kcm_kaccounts")
80 Layout.fillWidth: true
81 text:
i18nd(
"purpose6_nextcloud",
"Upload to folder:")
86 Layout.fillWidth: true
90 root.folder = text !==
"" ? text : undefined
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
QStringView level(QStringView ifopt)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.