Commit Graph

498 Commits

Author SHA1 Message Date
489ee36f63 Adjust expected status for CLI test to new type handling 2018-05-13 00:22:18 +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
1e83fefdf2 Fix compilation without DBus notification support 2018-05-10 13:51:07 +02:00
b9b557462b Update translations 2018-05-08 19:20:17 +02:00
9ce8c593a2 Require qtutilities 5.10.0 for AboutDialog overload 2018-05-08 19:20:05 +02:00
a531fc7ad4 Show dependency versions in about dialog of Dolphin menu 2018-05-08 19:19:27 +02:00
4c9aac59ca Update version to 0.8.0 2018-05-08 18:57:14 +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
29db8b06b2 Fix dependency versions with GCC 8 2018-05-08 00:38:31 +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
c43412595c Fix name of syncthing-new.svg 2018-05-02 00:01:46 +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
988765f2ba Show new dev/dir notifications in usual tray icon and Plasmoid 2018-05-01 22:27:03 +02:00
aa9f88df94 Add Syncthing '+' icon 2018-05-01 22:25:05 +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
473933528b Remove specific host-name from expected status in syncthingctl tests 2018-05-01 01:35:13 +02:00
134ab0e34a Improve syncthingctl test 2018-05-01 01:32:27 +02:00
72e1377c43 Add tests for syncthingctl 2018-05-01 01:16:20 +02:00
f6428e4ff7 Print dirs and devs sorted in syncthingctl status 2018-05-01 01:10:00 +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
2d6ca44aa5 Document issues in LibSyncthing::{stop,restart}Syncthing() 2018-04-18 23:28:45 +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
a36bc4524b Fix running and stopping libsyncthing multiple times 2018-04-18 00:40:07 +02:00
6d7c876553 Clean database before restarting in libsyncthing tests 2018-04-18 00:15:31 +02:00
fbbf533a37 Allow passing raw CLI arguments in libsyncthing interface 2018-04-17 23:54:43 +02:00
f7dc8c93bd Ensure Syncthing doesn't try to upgrade during tests 2018-04-17 23:52:20 +02:00
28eacb61a4 Verify whether Syncthing started via libsyncthing is stopped correctly
This is currently not the case so the tests fail now.
Need to investigate how to stop Syncthing correctly.
2018-04-17 23:50:45 +02:00
c7418431f5 Use new libsyncthing interface in launcher
Not tested yet
2018-04-15 20:20:30 +02:00
6c1c95c4c5 Improve libsyncthing
* Add documentaton
* Add isSyncthingRunning()
2018-04-15 20:19:14 +02:00
aedf7fe1fd Improve libsyncthing interface
* Allow to stop
* Provide callback for logging
* Add basic tests
2018-04-14 23:07:35 +02:00
2b1c993a64 Handle systemd service state change in Plasmoid
Previously only the initial service state was considered.
After refactoring the SyncthingService initialization the
state is not known when the Plasmoid is initialized so
this limitation became obvious and had to be fixed.
2018-04-12 23:16:51 +02:00
b7dbd2c72b Fix build without libsyncthing 2018-04-12 16:14:09 +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
e2d3bdfa0d Ensure index for libsyncthinginternal.a is created 2018-04-10 23:00:05 +02:00
4e112547e1 Handle cross-compilation when building libsyncthing 2018-04-10 22:55:17 +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
6ab7662a64 Add experimental 'libsyncthing'
* This allows running C++ GUI code (as provided by this
  repository) and Syncthing itself in the same process.
* It basically seems to work. I can now run a Syncthing
  instance within the interactive C++ shell 'cling' :-)
* Syncthing and its assets are built within the usual
  CMake build process but disabled by default because still
  experimental. To enable the build, add '-DNO_LIBSYNCTHING=OFF'
  to CMake arguments.
* The Syncthing checkout with customized exports lives
  in the Git submodule under
  'libsyncthing/go/src/github.com/syncthing/syncthing'.
2018-04-08 21:36:08 +02:00
37e24ccfb7 Use QStringLiteral in Application::editConfigViaScript() 2018-04-08 13:03:05 +02:00
68c9f27e2a Add helper for changing config via JavaScript 2018-04-07 22:57:36 +02:00