Commit Graph

663 Commits

Author SHA1 Message Date
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
Martchus f9305819a7 Update translations 2018-04-02 21:26:05 +02:00
Martchus ce7a4421fa Consider isActiveFor() for process also when systemd unavailable 2018-04-02 20:52:50 +02:00
Martchus 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
Martchus b81c316d4a Improve message formatting in SingleInstance 2018-04-02 20:23:54 +02:00
Martchus ad98bfbc22 Improve syncthingctl log 2018-04-02 12:48:27 +02:00
Martchus c04fb96634 Update README.md 2018-04-01 23:26:29 +02:00
Martchus 8532fbcb57 Specify min. Qt 5 version for fileitemaction and plasmomid 2018-04-01 23:02:14 +02:00
Martchus c7ea5974e4 Allow editing config via syncthingctl 2018-04-01 23:01:37 +02:00
Martchus ac36e6955d Improve coding style in syncthingctl 2018-04-01 22:34:15 +02:00
Martchus 754cd0c2e1 Allow printing current config 2018-04-01 20:21:51 +02:00
Martchus e9e85e6ba9 Update translations 2018-03-31 22:36:31 +02:00
Martchus d2eb4addd9 Distinguish between local an remote sync in settings 2018-03-31 22:31:28 +02:00
Martchus 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
Martchus bfd51fcaff Refactor SyncthingConnection::readDirEvent() 2018-03-31 21:19:53 +02:00
Martchus d74738a8a4 Enable event logging for debugging purposes 2018-03-31 19:48:27 +02:00
Martchus 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
Martchus e6642245df Improve coding style in SyncthingConnectionSettings::loadHttpsCert() 2018-03-29 00:36:42 +02:00
Martchus 419e2971c1 plasmoid: Add context menu for top-level list views
Might be useful to add further actions because the
space for buttons is limited.
2018-03-26 22:56:55 +02:00
Martchus c1efb690ef Update translations 2018-03-24 17:06:47 +01:00
Martchus b12988e342 Apply clang-format from LLVM 6 2018-03-24 17:06:16 +01:00
Martchus 84f0f91a24 Show link-time dependencies in about dialog 2018-03-18 18:24:00 +01:00
Martchus 71bcdd0c45 Add notification images (DBus-only) 2018-03-18 03:09:07 +01:00
Martchus 107c8c2603 Document AppImage repo 2018-03-14 18:56:39 +01:00
Martchus 4483c42732 Pass settings also for bash-completion 2018-02-24 02:53:28 +01:00
Martchus 4a28ea31a5 Quote application path in desktop file correctly 2018-02-22 03:24:32 +01:00
Martchus 81b8a42ae4 Provide fallback for qEnvironmentVariable() when using old Qt 2018-02-21 23:37:34 +01:00