Repository navigation
Expand file tree
/
Copy pathService.qml
More file actions
218 lines (173 loc) · 6.16 KB
/
Copy pathService.qml
File metadata and controls
218 lines (173 loc) · 6.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import QtQuick
import "bridge" as OmaconnectBridge
Item {
id: root
property string omarchyPath: ""
property var shell: null
property var manifest: null
property var pluginRegistry: null
Component.onCompleted: {
// Publish for widgets hosted by replacement bars, whose `bar.shell`
// facade cannot resolve plugin services. See bridge/Bridge.qml;
// the host facade stays the primary path.
OmaconnectBridge.Bridge.service = root
}
// Unpublish so a widget falling back to the bridge never binds to a
// dying instance.
Component.onDestruction: {
if (OmaconnectBridge.Bridge.service === root) {
OmaconnectBridge.Bridge.service = null
}
}
KdeConnectController {
id: controller
}
property alias daemonAvailable: controller.daemonAvailable
property alias sessionBusAvailable: controller.sessionBusAvailable
property alias scanning: controller.scanning
property alias discoveryState: controller.discoveryState
property alias discoveryMessage: controller.discoveryMessage
property alias actionState: controller.actionState
property alias actionMessage: controller.actionMessage
property alias actionError: controller.actionError
property alias devices: controller.devices
property alias reachableDevices: controller.reachableDevices
property alias selectedDeviceId: controller.selectedDeviceId
property alias selectedDevice: controller.selectedDevice
property alias incomingPairRequest: controller.incomingPairRequest
property alias remoteCommands: controller.remoteCommands
property alias commandsLoading: controller.commandsLoading
property alias pendingPairing: controller.pendingPairing
property alias fileBusy: controller.fileBusy
property alias fileTransferState: controller.fileTransferState
property alias fileTransferMessage: controller.fileTransferMessage
property alias fileTransferError: controller.fileTransferError
property alias tailscaleInstalled: controller.tailscaleInstalled
property alias tailscaleRunning: controller.tailscaleRunning
property alias tailscaleLoading: controller.tailscaleLoading
property alias tailscaleStatus: controller.tailscaleStatus
property alias localTailscaleAddress: controller.localTailscaleAddress
property alias tailscalePeers: controller.tailscalePeers
property alias customAddresses: controller.customAddresses
property alias customAddressesReady: controller.customAddressesReady
property alias addressBusy: controller.addressBusy
property alias mediaState: controller.mediaState
property alias mediaLoading: controller.mediaLoading
function refresh(forceNetwork) {
controller.refresh(forceNetwork)
}
function selectDevice(id) {
controller.selectDevice(id)
}
function clearActionState() {
controller.clearActionState()
}
function setPendingPairing(id, state) {
controller.setPendingPairing(id, state)
}
function pingDevice(id, text) {
return controller.pingDevice(id, text)
}
function shareText(id, text) {
return controller.shareText(id, text)
}
function fetchRemoteCommands(id) {
return controller.fetchRemoteCommands(id)
}
function executeRemoteCommand(id, key) {
return controller.executeRemoteCommand(id, key)
}
function pairDevice(id) {
return controller.pairDevice(id)
}
function unpairDevice(id) {
return controller.unpairDevice(id)
}
function acceptPairing(id) {
return controller.acceptPairing(id)
}
function rejectPairing(id) {
return controller.rejectPairing(id)
}
function ringDevice(id) {
return controller.ringDevice(id)
}
function sendClipboard(id) {
return controller.sendClipboard(id)
}
function startFileSelection(id) {
return controller.startFileSelection(id)
}
function cancelFileSelection() {
return controller.cancelFileSelection()
}
function cancelFileTransfer() {
return controller.cancelFileTransfer()
}
function sendFile(id, path) {
return controller.sendFile(id, path)
}
function openSmsApp(id) {
return controller.openSmsApp(id)
}
function openKdeConnectApp() {
return controller.openKdeConnectApp()
}
function configureFirewall() {
controller.configureFirewall()
}
function installDependencies() {
controller.installDependencies()
}
function refreshTailscale() {
controller.refreshTailscale()
}
function addCustomAddress(address) {
return controller.addCustomAddress(address)
}
function removeCustomAddress(address) {
return controller.removeCustomAddress(address)
}
function filteredTailscalePeers(query) {
return controller.filteredTailscalePeers(query)
}
function addressError(address) {
return controller.addressError(address)
}
function formatVerificationKey(key) {
return controller.formatVerificationKey(key)
}
function deviceOverviewStatus(device) {
return controller.deviceOverviewStatus(device)
}
function deviceTypeIcon(type) {
return controller.deviceTypeIcon(type)
}
function deviceBatteryText(device, showBattery, showNetwork) {
return controller.deviceBatteryText(device, showBattery, showNetwork)
}
function deviceBatteryIcon(device) {
return controller.deviceBatteryIcon(device)
}
function deviceNetworkIcon(device) {
return controller.deviceNetworkIcon(device)
}
function fetchMediaStatus(id) {
return controller.fetchMediaStatus(id)
}
function requestPlayerList(id) {
return controller.requestPlayerList(id)
}
function mediaPlayPause(id) {
return controller.mediaPlayPause(id)
}
function mediaNext(id) {
return controller.mediaNext(id)
}
function mediaPrevious(id) {
return controller.mediaPrevious(id)
}
function mediaSelectPlayer(id, playerName) {
return controller.mediaSelectPlayer(id, playerName)
}
}