-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
syncthing-constants.el
194 lines (126 loc) · 7.08 KB
/
syncthing-constants.el
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
;;; syncthing-constants.el --- Client for Syncthing -*- lexical-binding: t; -*-
;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Commentary:
;;; Code:
(defconst syncthing-gibibyte (expt 1024 3))
(defconst syncthing-mibibyte (expt 1024 2))
(defconst syncthing-kibibyte (expt 1024 1))
(defconst syncthing-day-seconds (* 1 60 60 24))
(defconst syncthing-hour-seconds (* 1 60 60))
(defconst syncthing-min-seconds (* 1 60))
(defconst syncthing-msg-cant-edit-buffer
"You can not edit this part of the Syncthing buffer")
;; TODO: https://github.com/syncthing/syncthing/issues/9313
(defconst syncthing-device-short-length 6)
;; Docstrings from Syncthing (MPL-2.0)
;; https://www.fsf.org/blogs/licensing/mpl-2.0-release
(defconst syncthing-event-config-saved "ConfigSaved"
"683b481/gui/default/syncthing/core/eventService.js#L65.
Emitted after the config has been saved by the user or by Syncthing itself.")
(defconst syncthing-event-device-connected "DeviceConnected"
"683b481/gui/default/syncthing/core/eventService.js#L66.
Generated each time a connection to a device has been established.")
(defconst syncthing-event-device-disconnected "DeviceDisconnected"
"683b481/gui/default/syncthing/core/eventService.js#L67.
Generated each time a connection to a device has been terminated.")
(defconst syncthing-event-device-discovered "DeviceDiscovered"
"683b481/gui/default/syncthing/core/eventService.js#L68.
Emitted when a new device is discovered using local discovery.")
(defconst syncthing-event-device-rejected "DeviceRejected"
"683b481/gui/default/syncthing/core/eventService.js#L69.
DEPRECATED: Emitted when there is a connection from a device we are not
configured to talk to.")
(defconst syncthing-event-pending-devices-changed "PendingDevicesChanged"
"683b481/gui/default/syncthing/core/eventService.js#L70.
Emitted when pending devices were added / updated (connection from unknown ID)
or removed (device is ignored or added).")
(defconst syncthing-event-device-paused "DevicePaused"
"683b481/gui/default/syncthing/core/eventService.js#L71.
Emitted when a device has been paused.")
(defconst syncthing-event-device-resumed "DeviceResumed"
"683b481/gui/default/syncthing/core/eventService.js#L72.
Emitted when a device has been resumed.")
(defconst syncthing-event-cluster-config-received "ClusterConfigReceived"
"683b481/gui/default/syncthing/core/eventService.js#L73.
Emitted when receiving a remote device's cluster config.")
(defconst syncthing-event-download-progress "DownloadProgress"
"683b481/gui/default/syncthing/core/eventService.js#L74.
Emitted during file downloads for each folder for each file.")
(defconst syncthing-event-failure "Failure"
"683b481/gui/default/syncthing/core/eventService.js#L75.
Specific errors sent to the usage reporting server for diagnosis.")
(defconst syncthing-event-folder-completion "FolderCompletion"
"683b481/gui/default/syncthing/core/eventService.js#L76.
Emitted when the local or remote contents for a folder changes.")
(defconst syncthing-event-folder-rejected "FolderRejected"
"683b481/gui/default/syncthing/core/eventService.js#L77.
DEPRECATED: Emitted when a device sends index information for a folder we do
not have, or have but do not share with the device in question.")
(defconst syncthing-event-pending-folders-changed "PendingFoldersChanged"
"683b481/gui/default/syncthing/core/eventService.js#L78.
Emitted when pending folders were added / updated (offered by some device, but
not shared to them) or removed (folder ignored or added or no longer offered
from the remote device).")
(defconst syncthing-event-folder-summary "FolderSummary"
"683b481/gui/default/syncthing/core/eventService.js#L79.
Emitted when folder contents have changed locally.")
(defconst syncthing-event-item-finished "ItemFinished"
"683b481/gui/default/syncthing/core/eventService.js#L80.
Generated when Syncthing ends synchronizing a file to a newer version.")
(defconst syncthing-event-item-started "ItemStarted"
"683b481/gui/default/syncthing/core/eventService.js#L81.
Generated when Syncthing begins synchronizing a file to a newer version.")
(defconst syncthing-event-listen-addresses-changed "ListenAddressesChanged"
"683b481/gui/default/syncthing/core/eventService.js#L82.
Listen address resolution has changed.")
(defconst syncthing-event-local-change-detected "LocalChangeDetected"
"683b481/gui/default/syncthing/core/eventService.js#L83.
Generated upon scan whenever the local disk has discovered an updated file from
the previous scan.")
(defconst syncthing-event-local-index-updated "LocalIndexUpdated"
"683b481/gui/default/syncthing/core/eventService.js#L84.
Generated when the local index information has changed, due to synchronizing
one or more items from the cluster or discovering local changes during a scan.")
(defconst syncthing-event-login-attempt "LoginAttempt"
"683b481/gui/default/syncthing/core/eventService.js#L85.
Emitted on every login attempt when authentication is enabled for the GUI.")
(defconst syncthing-event-remote-change-detected "RemoteChangeDetected"
"683b481/gui/default/syncthing/core/eventService.js#L86.
Generated upon scan whenever a file is locally updated due to a remote
change.")
(defconst syncthing-event-remote-download-progress "RemoteDownloadProgress"
"683b481/gui/default/syncthing/core/eventService.js#L87.
DownloadProgress message received from a connected remote device.")
(defconst syncthing-event-remote-index-updated "RemoteIndexUpdated"
"683b481/gui/default/syncthing/core/eventService.js#L88.
Generated each time new index information is received from a device.")
(defconst syncthing-event-starting "Starting"
"683b481/gui/default/syncthing/core/eventService.js#L89.
Emitted exactly once, when Syncthing starts, before parsing configuration
etc.")
(defconst syncthing-event-startup-completed "StartupCompleted"
"683b481/gui/default/syncthing/core/eventService.js#L90.
Emitted exactly once, when initialization is complete and Syncthing is ready to
start exchanging data with other devices.")
(defconst syncthing-event-state-changed "StateChanged"
"683b481/gui/default/syncthing/core/eventService.js#L91.
Emitted when a folder changes state.")
(defconst syncthing-event-folder-errors "FolderErrors"
"683b481/gui/default/syncthing/core/eventService.js#L92.
Emitted when a folder has errors preventing a full sync.")
(defconst syncthing-event-folder-watch-state-changed "FolderWatchStateChanged"
"683b481/gui/default/syncthing/core/eventService.js#L93.
Watcher routine encountered a new error, or a previous error disappeared after
retrying.")
(defconst syncthing-event-folder-scan-progress "FolderScanProgress"
"683b481/gui/default/syncthing/core/eventService.js#L94.
Emitted every ScanProgressIntervalS seconds, indicating how far into the scan
it is at.")
(defconst syncthing-event-folder-paused "FolderPaused"
"683b481/gui/default/syncthing/core/eventService.js#L95.
Emitted when a folder is paused.")
(defconst syncthing-event-folder-resumed "FolderResumed"
"683b481/gui/default/syncthing/core/eventService.js#L96.
Emitted when a folder is resumed.")
(provide 'syncthing-constants)
;;; syncthing-constants.el ends here