Commit Graph

75 Commits

Author SHA1 Message Date
Martchus f75966aadc Fix warnings 2021-03-20 22:39:40 +01:00
Martchus 975e86c895 Allow backend libraries to be used from other projects
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.

This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.

With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
Martchus 2eaddb0464 cli: Print own device always on top to fix test failures
* Otherwise tests fail when the name of the own device preceeds the other
  device names
* See https://github.com/Martchus/PKGBUILDs/issues/102
2021-01-11 18:49:35 +01:00
Martchus da911c6350 Refactor overall status compution
* Allow configuring the information to consider for computing the overall
  status via SyncthingStatusComputionFlags
    * Add flag to allow considering the status of remote devices for
      https://github.com/Martchus/syncthingtray/issues/74
    * Show only plain "idle" status when no flags are present for
      https://github.com/Martchus/syncthingtray/issues/76
* Set the default flags to keep the default behavior as-is
2020-12-31 02:48:18 +01:00
Martchus 3b49e9e312 Support Qt 6 (commit 174154b) 2020-09-04 01:09:18 +02:00
Martchus dc7d9b815f Adapt to changes in c++utilities 2019-06-14 19:15:26 +02:00
Martchus 64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
Martchus d88df866d2 Adapt to c++utilities v5 2019-05-04 21:05:21 +02:00
Martchus 646d9363da Don't show stats for pause dirs in CLI 2019-02-16 00:34:18 +01:00
Martchus b9a65ef113 Remove redundant poll interval defaults 2018-10-25 18:23:37 +02:00
Martchus fbad874471 Revert "cli: Ignore that version might be missing"
This reverts commit 7ba6afba74.
2018-10-25 01:00:01 +02:00
Martchus 7ba6afba74 cli: Ignore that version might be missing 2018-10-21 00:05:01 +02:00
Martchus 1c6bd37b9d cli: Take --no-color into account when displaying status 2018-10-20 23:42:18 +02:00
Martchus 2e67e6b2de Use signals for logAvailable() and qrCodeAvailable() 2018-10-20 22:08:25 +02:00
Martchus f0a2d60906 cli: Abort editing config if nothing has changed 2018-09-15 18:42:14 +02:00
Martchus 3731933c37 Show file system watcher delay in CLI 2018-09-15 18:28:44 +02:00
Martchus de9259e545 Show whether filesystem watcher active 2018-09-15 18:25:02 +02:00
Martchus 45ef2518e8 Apply clang-format 2018-08-04 15:47:43 +02:00
Martchus f3e7b5fe8b cli: Show more overall information 2018-07-30 23:01:04 +02:00
Martchus 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
Martchus 0acfdd7002 Use "rescan disabled" instead of "0 s" 2018-07-05 17:40:36 +02:00
Martchus 7166f6532a Display overall status info in CLI 2018-07-05 17:39:35 +02:00
Martchus 2fcc94f567 Handle new folder types
See https://github.com/syncthing/syncthing/pull/4942
2018-05-12 23:08:57 +02:00
Martchus f6428e4ff7 Print dirs and devs sorted in syncthingctl status 2018-05-01 01:10:00 +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 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 ad98bfbc22 Improve syncthingctl log 2018-04-02 12:48:27 +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 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 4483c42732 Pass settings also for bash-completion 2018-02-24 02:53:28 +01:00
Martchus 914aac6e39 Make bash completion faster by requesting only config 2018-02-19 03:22:47 +01:00
Martchus 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
Martchus b9c87a9bba Show remote progress in cli 2018-01-25 00:03:31 +01:00
Martchus 9017de6e1d Allow --all-dirs and --all-devs in wait-for-idle 2018-01-24 23:16:35 +01:00
Martchus 8bd8dc53b3 Fix resumeing/pausing devices 2018-01-24 23:08:09 +01:00
Martchus 45b242b91a Simplify CLI code 2018-01-24 23:07:53 +01:00
Martchus cccc73407c cli: Prevent initializing shell completion if not required 2018-01-10 19:50:21 +01:00
Martchus 2625f7b08b cli: Allow specifying directory (items) by path
However, relative paths can only be matched to Syncthing dirs
for the local instance.
2017-10-16 19:43:38 +02:00
Martchus 312ebd26d2 cli: Support timeout and min. idle time in wait-for-idle
So wait-for-idle is useful even when the status returned
by Syncthing is flaky.
2017-09-30 19:00:36 +02:00
Martchus 3e9e933411 cli: Show directory and device names in shell completion 2017-09-30 18:51:29 +02:00
Martchus ce8c005478 Use at least operator<<(ostream,const Failure&)
if custom error handling is still required.
2017-09-29 17:19:35 +02:00
Martchus ac8cd977cc Improve error and callback handling in CLI 2017-09-26 16:48:47 +02:00
Martchus fd64581029 Find specified operation using new method 2017-09-26 16:48:09 +02:00
Martchus 69ce6fee21 cli: Print newline after request (in error case) 2017-09-26 15:44:07 +02:00