bb6825aa4c
Use timeout of 0 on first event call
2018-10-25 18:24:31 +02:00
b9a65ef113
Remove redundant poll interval defaults
2018-10-25 18:23:37 +02:00
a024e36ffd
Rework reply/connection handling in SyncthingConnection
...
* Improve consistency
* Ensure all relevant requests are have finished before
setting status to connected
2018-10-25 00:59:13 +02:00
ece582db04
Fix visibility of "Show errors" button in plasmoid
2018-10-24 21:35:08 +02:00
f380732068
Don't use std::function for handlers in testcode
...
Just use the lambdas directly and make if(handler) check
only if possible.
2018-10-21 21:07:43 +02:00
76f214adf1
Ignore test for config too
...
This test randomly fails as well
2018-10-21 00:11:30 +02:00
703225b410
Fix/improve CLI tests
...
* Adapt to interleaved output previously enabled in SyncthingTestInstance
* Make it work when verbose output for debugging is enabled
* Show which status line didn't match in case of an failure
* Disable flaky rescan tests in release mode
2018-10-20 23:48:24 +02:00
97dab2a959
Disable flaky tests for release
2018-10-20 22:12:26 +02:00
2e67e6b2de
Use signals for logAvailable() and qrCodeAvailable()
2018-10-20 22:08:25 +02:00
c7bccf023a
Fix tests, make them more stable and verbose
...
Tests still sometimes fail when
* requesting QR code
* requesting rescan
2018-10-18 23:37:29 +02:00
8a77cdf516
Pass callbacks for requestLog() and requestQrCode() by ref
2018-10-18 23:34:59 +02:00
407514289a
Fix typo infos -> info
2018-10-18 23:34:02 +02:00
8dde95fc82
Don't override defines when configuring optional behavior
2018-10-18 23:23:47 +02:00
d138c6d9d1
Change address of dev in testconfig to something not reachable
...
in my local network - otherwise Syncthing panics for whatever
reason :-/
2018-10-14 23:31:19 +02:00
dfff485fc4
Update testconfig to version 28
...
Not sure whether it actually works. Right now Syncthing crashes
under Arch Linux for me using the previous config and the updated
version.
2018-10-14 22:50:54 +02:00
e410991012
Allow logging all API calls
2018-10-14 22:48:52 +02:00
0ee25c1ae2
Fix warnings about QJsonValue ref
2018-10-12 00:21:05 +02:00
00e0b58c86
Allow logging POSTs
2018-10-12 00:20:15 +02:00
db6c8af414
Debug Syncthing crashes during testruns
2018-10-12 00:09:02 +02:00
c031440c05
Use isLocal() in SyncthingConfig::syncthingUrl()
2018-10-10 22:47:03 +02:00
99cb584249
Use non-standard port for tests
2018-10-10 22:45:49 +02:00
cf22f6b16a
Make all request...() methods consistently public
2018-10-10 22:15:12 +02:00
00e83e721d
Consider failure to request disk events fatal
...
Prevents endless polling for disk events in the error
case.
2018-10-10 22:05:48 +02:00
533a5d0939
Use override
2018-10-10 21:26:46 +02:00
87a10c5b33
Allow hiding Plasma applet in certain states
...
See https://github.com/Martchus/syncthingtray/issues/23
2018-10-10 17:48:48 +02:00
de9259e545
Show whether filesystem watcher active
2018-09-15 18:25:02 +02:00
7611ad1c8e
Propose use of SYNCTHING_TEST_TIMEOUT_FACTOR
2018-09-06 22:04:22 +02:00
9599dcee81
Increase timeout for applying config
2018-09-06 21:58:41 +02:00
791f1ccd33
Fix missing whitespace in German translation
2018-08-25 13:14:45 +02:00
af120f1ae1
Update translations
2018-08-05 15:21:12 +02:00
7e2eea8523
tests: Increase timeouts, use timeout factor everywhere
2018-08-05 15:20:21 +02:00
73c44591d5
Consume disk events in SyncthingConnection
...
First step to:
* Show history of most recent file changes
* Notify about file changes
(see https://github.com/Martchus/syncthingtray/issues/7 )
2018-08-04 22:06:31 +02:00
45ef2518e8
Apply clang-format
2018-08-04 15:47:43 +02:00
39dd98354a
Request Syncthing version
2018-07-30 23:00:40 +02:00
3549a4cdef
Compute overall statistics
2018-07-30 23:00:22 +02:00
7598fef709
Update translations
2018-07-22 22:17:48 +02:00
97e0253902
Fix some warnings, improve coding style
2018-07-22 22:09:59 +02:00
77e75f543c
Add some more directory properties
2018-07-22 22:09:18 +02:00
ad3c8b5240
Don't meld 'unshared' into the status
...
Just deal with it like with the paused flag. This will
hopefully solve the issue that dirs are wrongly shown as
unshared till the next status update.
2018-07-22 22:09:18 +02:00
5a80089cbd
Fix condition for outgoing traffic
2018-07-22 21:18:00 +02:00
0acfdd7002
Use "rescan disabled" instead of "0 s"
2018-07-05 17:40:36 +02:00
7166f6532a
Display overall status info in CLI
2018-07-05 17:39:35 +02:00
db4b032179
Show connected device names in additional status
2018-06-27 17:38:22 +02:00
f4622379ae
Prevent local sync complete notification during scan
2018-05-23 23:18:39 +02:00
68f5565f1a
Discard sync complete event if paused
2018-05-17 18:34:05 +02:00
e7d365f849
Initialize SyncthingNotifier correctly in Plasmoid
2018-05-15 22:27:54 +02:00
43cd6fc2cc
Fix use of SyncthingService without check for nullptr
2018-05-15 22:26:54 +02:00
b1b9f87320
Update translations
2018-05-12 23:14:04 +02:00
44c0c44475
Improve coding style
2018-05-12 23:09:14 +02:00
2fcc94f567
Handle new folder types
...
See https://github.com/syncthing/syncthing/pull/4942
2018-05-12 23:08:57 +02:00
f8dabbc78d
Fix compilation without systemd support
2018-05-10 13:51:25 +02:00
52740c4cbe
Update translations
2018-05-08 00:43:15 +02:00
cfa27390f6
Apply clang-format
2018-05-08 00:38:49 +02:00
ab57b34b69
Fix usage of enable_if with GCC 8
...
Seems like the trick with the three dots isn't working
with GCC 8 anymore. So let's make it a default template
parameter then.
Not sure whether GCC 8 is here correct and whether this
workaround causes further trouble.
2018-05-07 23:28:11 +02:00
66e58e3971
Fix reading label in readDirRejected()
2018-05-02 00:01:19 +02:00
bde3734ea4
Add mocks for testing rejected events
2018-05-02 00:00:47 +02:00
043d1c09c2
Set default re-connect interval to 30 seconds
...
See https://github.com/Martchus/syncthingtray/issues/16#issuecomment-383375598
2018-05-01 22:31:00 +02:00
3857079f7e
Add high-level notifications for new devs and dirs
2018-05-01 22:23:54 +02:00
2c27cc27d0
Add signals for new devices and directories
2018-05-01 20:43:15 +02:00
72e1377c43
Add tests for syncthingctl
2018-05-01 01:16:20 +02:00
819d37eeee
Test dealing with arbitrary config
2018-04-30 21:30:35 +02:00
082eaa29b6
Allow mocking SyncthingService
2018-04-20 23:00:56 +02:00
b0dc9c861d
Improve SyncthingProcess::splitArguments() parser
2018-04-18 23:46:17 +02:00
0d635e5ad5
Refactor launcher
...
* Pass program and arguments directly
* Prevent failure on white space in executable path
* Use own parser for arguments
* Make libsyncthing accessible from launcher
2018-04-18 23:27:45 +02:00
f7dc8c93bd
Ensure Syncthing doesn't try to upgrade during tests
2018-04-17 23:52:20 +02:00
0ceb8d5e79
Add high-level abstraction for launching Syncthing
...
Add new SyncthingLauncher class which lauches Syncthing
under the hood via external SyncthingProcess or using
libsyncthing.
Note: Launching via libsyncthing is still experimental.
2018-04-11 23:16:00 +02:00
278ba521d9
Fix warning for SYNCTHING_CONNECTION_LOG_SYNCTHING_EVENTS
2018-04-11 23:13:02 +02:00
d08aa005d7
Fix compilation without systemd support
2018-04-10 21:05:49 +02:00
fbdd1b2355
Include consistently with ./
2018-04-08 21:53:23 +02:00
b61592fbbd
Allow editing Syncthing config via JavaScript
2018-04-07 22:01:54 +02:00
c94b34595b
Improve properties of SyncthingConnection
2018-04-04 20:18:42 +02:00
0c104f60b8
Wait till all processes finished, ask for killing
...
See https://github.com/Martchus/syncthingtray/issues/15
2018-04-02 23:32:52 +02:00
f9305819a7
Update translations
2018-04-02 21:26:05 +02:00
ce7a4421fa
Consider isActiveFor() for process also when systemd unavailable
2018-04-02 20:52:50 +02:00
146d4870e4
Refactor preventing unwanted error messages
...
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
c7ea5974e4
Allow editing config via syncthingctl
2018-04-01 23:01:37 +02:00
754cd0c2e1
Allow printing current config
2018-04-01 20:21:51 +02:00
e9e85e6ba9
Update translations
2018-03-31 22:36:31 +02:00
d2eb4addd9
Distinguish between local an remote sync in settings
2018-03-31 22:31:28 +02:00
023279142b
Fix "sync complete" notifications during upload
...
* Distinguish between local and remote FolderCompletion events
* Do not request completion via REST-API, the FolderCompletion
event covers both - local and remote changes.
2018-03-31 22:07:05 +02:00
bfd51fcaff
Refactor SyncthingConnection::readDirEvent()
2018-03-31 21:19:53 +02:00
d74738a8a4
Enable event logging for debugging purposes
2018-03-31 19:48:27 +02:00
6828e96b53
Improve sync complete notifications
...
* Also consider remote updates
* Still massive notifications when uploading
about local folder completed
2018-03-29 00:38:21 +02:00
e6642245df
Improve coding style in SyncthingConnectionSettings::loadHttpsCert()
2018-03-29 00:36:42 +02:00
c1efb690ef
Update translations
2018-03-24 17:06:47 +01:00
b12988e342
Apply clang-format from LLVM 6
2018-03-24 17:06:16 +01:00
914aac6e39
Make bash completion faster by requesting only config
2018-02-19 03:22:47 +01:00
6be44cc93f
Allow restart via plasmoid
2018-02-19 01:38:41 +01:00
e6ac3d8599
Update status when config updated
2018-02-18 18:13:06 +01:00
d20a4aea19
Avoid nesting in SyncthingConnection::continueConnecting()
2018-02-18 18:12:22 +01:00
c4d63e0e7c
Ignore old FolderCompletion events
2018-01-28 18:07:39 +01:00
38ac3504b2
Update German translation
2018-01-27 23:38:26 +01:00
79fe97d952
Refactor notifications
...
* Use SyncthingNotifier class
* Show 'Sync complete' on FolderCompletion event
* Add extra structure for stats
2018-01-27 23:27:50 +01:00
b9c87a9bba
Show remote progress in cli
2018-01-25 00:03:31 +01:00
447928a018
Request device/directory completion
2018-01-24 21:46:18 +01:00
53dafd1627
Complete German translation
2017-12-30 01:04:02 +01:00
404f517b4c
Refactor composing "sync complete string"
...
to prevent code duplication between regular tray
icon and plasmoid.
2017-12-30 00:57:35 +01:00
841b250680
Add SyncthingNotifier class
...
First step of refactoring compution of high-level
notifications to prevent code duplication for compution
of "disconnected" and "sync complete" events.
2017-12-30 00:28:03 +01:00
e6b97e1ecc
Clean code for dealing with folder (scan) completion
2017-11-22 00:29:50 +01:00
4f58e054d5
Improve test mode (mocked SyncthingConnection)
...
* Add further events allowing to reproduce download
model issues visible in Plasmoid
* Use TestApplication to find testfiles
2017-11-12 17:03:30 +01:00