Commit Graph

100 Commits

Author SHA1 Message Date
Carl Schwan
924a1fed21 Port away from QNetworkConfigurationManager
QNetworkConfigurationManager was removed from Qt6 and it's better to
check the status of the sync job anyway. Only two issues:

* The timeout in quotient is quite high so it might take up to one
  minute before the message appear.
* Only sync job are listened but since they are continuously done, this
  is not a big issue and other job are affected by the same issue of an
  high timeout anyway.

Fix #414
2021-12-25 17:55:48 +00:00
Tobias Fella
8722c99c93 Remove unused function 2021-12-15 01:04:51 +01:00
Fushan Wen
59430cce89 Add support for minimizing to system tray on startup
If the user wants to automatically launch NeoChat when the system
starts up, the user may also want to minimize the window to system tray
on startup. So a new option named "Minimize to system tray on startup"
is added.

The option is only visible on desktop platforms, and is only enabled
when "Close to system tray" is checked.

In order to restore window geometry for the first time the user opens
the window if the option is checked,

1. a new function named `restoreWindowGeometry` is added, and
   `restoreWindowGeometryConnections` will be enabled if the option is
   checked, and will be disabled after the window debuts.
2. `saveWindowGeometryConnections` will be enabled if the option is not
   checked, and will be disabled if checked and enabled after the window
   debuts.
2021-12-13 22:05:20 +08:00
Carl Schwan
d1bbb5e3f7 Use non blocking passord reading
This also remove the do while loop that might cause problem and expose
the error message to the user.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-12 22:13:19 +00:00
Tobias Fella
d494eb1c63 Use Quotient's accountregistry 2021-11-01 19:36:39 +00:00
Aleix Pol
265fcbfead Fix wayland activation
Adds support for xdg_activation_v1 when calling the application from the
system tray by using KStatusNotifier which supports it.
Listens to XDG_ACTIVATION_TOKEN as it's passed when we are started from
dbus.
2021-09-07 11:27:13 +00:00
Nicolas Fella
589dfe0343 Re-run clang-format 2021-08-23 19:38:56 +02:00
Carl Schwan
efb70287b9 Add setting page 2021-06-07 11:49:35 +02:00
Nicolas Fella
bd5f6c9c9e remove spurious QMenu include 2021-05-26 03:07:13 +02:00
Nicolas Fella
6e04d343b7 Use QGuiApplication instead of QApplication where appropriate 2021-05-26 03:05:00 +02:00
Carl Schwan
0dbb56ba1e Fix creating broken direct chat for user with a direct chat already open
Just enter the existing room instead of trying to create a new one but
broken.

Fix !237
2021-05-23 21:46:40 +02:00
Tobias Fella
7a065c18b6 Port away from KDeclarative 2021-05-11 20:56:53 +02:00
Carl Schwan
873ab328dc Move room management from Controller to RoomManager 2021-05-08 01:17:19 +02:00
Carl Schwan
5f8795c41f Automatically enter room when joining it
Related to #352 but needs an additional Quotient patch to works
2021-05-07 22:37:16 +02:00
Carl Schwan
757cc99ff0 Add indicator for lack of internet connectivity
Fix #315
2021-05-07 03:36:40 +02:00
Tobias Fella
89056ed6c1 Move the ActionsHandler instance to the RoomPage
This is required since when using a RoomWindow, the ActionsHandler from the RoomManager is used, which means that the wrong room is used.
2021-04-17 20:47:01 +00:00
Tobias Fella
00681a8abe Refactor error handling and move unrelated functions out of ActionsHandler 2021-04-16 10:07:10 +00:00
Tobias Fella
2cb81d1276 Unify License header style in C++ 2021-04-06 19:25:06 +02:00
Arnav Rawat
b6787ae242 Allow the avatar to be changed
This Merge Request allows an avatar to be set through the userEditSheet
The parts in controller.cpp decode the url and check whether the image
is valid, through qimagereader.
2021-03-05 00:31:44 +00:00
Carl Schwan
481a2e3681 Don't show "Close in System Tray button" on Android
Fix #273
2021-02-26 14:15:33 +01:00
Tobias Fella
464c48540e Improve first-run UX
- Replace LoginPage with step-by-step approach to support different login flows
- Implement login using SSO
2021-02-07 21:23:31 +00:00
Tobias Fella
1cb6b3bbd6 Consistently use pragma once in all headers 2021-02-04 23:14:54 +01:00
Yuri Chornoivan
a82b9dc14e Fix minor typos 2021-01-09 09:19:11 +02:00
Carl Schwan
cd1bec9977 Introduce the ActionsHandler 2021-01-08 23:12:09 +00:00
Carl Schwan
8224d3ae9f Save and restore window size 2020-12-30 13:19:16 +00:00
Tobias Fella
e6b97e3350 Fix accountCount not updating correctly 2020-12-30 13:17:22 +00:00
Tobias Fella
bd00a73aa9 Ask for consent to terms and conditions if required 2020-12-30 13:17:14 +00:00
Carl Schwan
1f065e46cf Simplify shortcuts code in hamburger menu 2020-12-28 12:35:50 +01:00
Tobias Fella
c449a8fafe Apply clang-format 2020-12-25 22:23:35 +01:00
Tobias Fella
8e2cdc8f08 Implement a device management page 2020-12-16 23:37:49 +00:00
Tobias Fella
e1775f94c6 Make clicking on notifications open the room they're coming from
Implements #28
2020-12-03 13:52:04 +00:00
Carl Schwan
21cd37c21e Completely rework login job
Now .well-know is obsolete and also error message are correctly
displayed
2020-12-03 00:34:10 +01:00
Carl Schwan
29fe130f6d Use standard Ctrl+Shift+Comma shortcut for showing settings
Fix: #42
2020-12-01 15:45:41 +01:00
Carl Schwan
136a8f2af8 Clang-tidy + clang-format 2020-11-27 00:26:39 +01:00
Tobias Fella
0b8db12543 Don't use trayicon on android 2020-11-23 00:03:49 +01:00
Nicolas Fella
7ec6f83bcb Remove unused include 2020-11-22 16:13:40 +01:00
Carl Schwan
8f358b7680 Immediately display connect errors in the login page
This is using a Kirigami.InlineMessage component.
2020-11-22 11:02:56 +01:00
Tobias Fella
e2f6853258 Port away from QNetworkConfigurationmanager 2020-11-15 20:13:17 +00:00
Tobias Fella
16c64ad67f Rename Controller.connection to activeConnection 2020-11-12 12:26:08 +01:00
Tobias Fella
26b2071e11 Handle revoked tokens better 2020-11-12 11:19:13 +00:00
Tobias Fella
d8dde6e082 Add license headers to code files 2020-11-11 15:17:23 +00:00
Carl Schwan
53397bf970 fix some clazy warning and deprecations 2020-11-10 19:52:22 +01:00
Tobias Fella
c2c49c69fe Code cleanup 2020-11-08 22:08:56 +01:00
Tobias Fella
cbeafddfd4 Add accounts management page 2020-11-08 18:12:14 +00:00
Nicolas Fella
00b6908f25 Correct some whitespace issues 2020-11-04 19:43:56 +01:00
Tobias Fella
f7a218d6a5 Add AboutPage 2020-11-04 02:12:57 +00:00
Tobias Fella
2d1a7d6500 Make the Controller a singleton 2020-11-04 01:43:13 +00:00
Carl Schwan
8b3f89cf2e Fix a bunch of clazy warnings 2020-11-03 15:15:16 +00:00
Carl Schwan
abea051f1c s/slots/Q_SLOTS and s/signals/Q_SIGNALS 2020-11-03 12:09:06 +01:00
Carl Schwan
ce69506cf6 s/emit/Q_EMIT 2020-11-03 12:03:06 +01:00