Commit Graph

639 Commits

Author SHA1 Message Date
Martchus 4c9aac59ca Update version to 0.8.0 2018-05-08 18:57:14 +02:00
Martchus 52740c4cbe Update translations 2018-05-08 00:43:15 +02:00
Martchus cfa27390f6 Apply clang-format 2018-05-08 00:38:49 +02:00
Martchus 29db8b06b2 Fix dependency versions with GCC 8 2018-05-08 00:38:31 +02:00
Martchus 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
Martchus c43412595c Fix name of syncthing-new.svg 2018-05-02 00:01:46 +02:00
Martchus 66e58e3971 Fix reading label in readDirRejected() 2018-05-02 00:01:19 +02:00
Martchus bde3734ea4 Add mocks for testing rejected events 2018-05-02 00:00:47 +02:00
Martchus 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
Martchus 988765f2ba Show new dev/dir notifications in usual tray icon and Plasmoid 2018-05-01 22:27:03 +02:00
Martchus aa9f88df94 Add Syncthing '+' icon 2018-05-01 22:25:05 +02:00
Martchus 3857079f7e Add high-level notifications for new devs and dirs 2018-05-01 22:23:54 +02:00
Martchus 2c27cc27d0 Add signals for new devices and directories 2018-05-01 20:43:15 +02:00
Martchus 473933528b Remove specific host-name from expected status in syncthingctl tests 2018-05-01 01:35:13 +02:00
Martchus 134ab0e34a Improve syncthingctl test 2018-05-01 01:32:27 +02:00
Martchus 72e1377c43 Add tests for syncthingctl 2018-05-01 01:16:20 +02:00
Martchus f6428e4ff7 Print dirs and devs sorted in syncthingctl status 2018-05-01 01:10:00 +02:00
Martchus 819d37eeee Test dealing with arbitrary config 2018-04-30 21:30:35 +02:00
Martchus 082eaa29b6 Allow mocking SyncthingService 2018-04-20 23:00:56 +02:00
Martchus b0dc9c861d Improve SyncthingProcess::splitArguments() parser 2018-04-18 23:46:17 +02:00
Martchus 2d6ca44aa5 Document issues in LibSyncthing::{stop,restart}Syncthing() 2018-04-18 23:28:45 +02:00
Martchus 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
Martchus a36bc4524b Fix running and stopping libsyncthing multiple times 2018-04-18 00:40:07 +02:00
Martchus 6d7c876553 Clean database before restarting in libsyncthing tests 2018-04-18 00:15:31 +02:00
Martchus fbbf533a37 Allow passing raw CLI arguments in libsyncthing interface 2018-04-17 23:54:43 +02:00
Martchus f7dc8c93bd Ensure Syncthing doesn't try to upgrade during tests 2018-04-17 23:52:20 +02:00
Martchus 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
Martchus c7418431f5 Use new libsyncthing interface in launcher
Not tested yet
2018-04-15 20:20:30 +02:00
Martchus 6c1c95c4c5 Improve libsyncthing
* Add documentaton
* Add isSyncthingRunning()
2018-04-15 20:19:14 +02:00
Martchus aedf7fe1fd Improve libsyncthing interface
* Allow to stop
* Provide callback for logging
* Add basic tests
2018-04-14 23:07:35 +02:00
Martchus 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
Martchus b7dbd2c72b Fix build without libsyncthing 2018-04-12 16:14:09 +02:00
Martchus 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
Martchus 278ba521d9 Fix warning for SYNCTHING_CONNECTION_LOG_SYNCTHING_EVENTS 2018-04-11 23:13:02 +02:00
Martchus e2d3bdfa0d Ensure index for libsyncthinginternal.a is created 2018-04-10 23:00:05 +02:00
Martchus 4e112547e1 Handle cross-compilation when building libsyncthing 2018-04-10 22:55:17 +02:00
Martchus d08aa005d7 Fix compilation without systemd support 2018-04-10 21:05:49 +02:00
Martchus fbdd1b2355 Include consistently with ./ 2018-04-08 21:53:23 +02:00
Martchus 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
Martchus 37e24ccfb7 Use QStringLiteral in Application::editConfigViaScript() 2018-04-08 13:03:05 +02:00
Martchus 68c9f27e2a Add helper for changing config via JavaScript 2018-04-07 22:57:36 +02:00
Martchus 5726bab292 Allow specifying script lines via CLI args 2018-04-07 22:28:21 +02:00
Martchus ec131f297f Remove comments in example JavaScript 2018-04-07 22:09:44 +02:00
Martchus b61592fbbd Allow editing Syncthing config via JavaScript 2018-04-07 22:01:54 +02:00
Martchus bf4b26c6f8 Perform at least some checks before sending config 2018-04-07 18:30:35 +02:00
Martchus b92bf4f27a Add dry-run for syncthingctl edit 2018-04-07 18:30:14 +02:00
Martchus a805de8a21 Fix typo in German translation 2018-04-04 20:22:12 +02:00
Martchus c94b34595b Improve properties of SyncthingConnection 2018-04-04 20:18:42 +02:00
Martchus 6d155d3d63 Make considering launcher for reconnects configurable
Similar to the systemd configuration
2018-04-03 00:11:55 +02:00
Martchus 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