Commit Graph

37 Commits

Author SHA1 Message Date
Dawid Wojtas
1839b2c6b4 [BH-1861] Backend for quotes on home screen
Implement a backend for getting and shuffle
the quote for home screen clock face.
2024-02-22 12:07:30 +01:00
rrandomsky
d84671140f [MOS-1007] Fix for no popup when contact cannot be saved because of same nubers
Fix for fix. It add popup when user try to save contact witch practically
the same numners  (even if having a country code is only difference)
2023-09-07 11:57:06 +02:00
rrandomsky
e07f2db550 [MOS-864] Fix for country code in new contact based on deleted one
Fix for scenario when contact with some number with/without country code
was deleted, and new contact with same number but without/with country
code is added and then new contact have same prefix as deleted one.
Now new contact will have number exacly like provided.
2023-02-01 14:18:20 +01:00
Pawel Olejniczak
b50eea9ed9 [CP-1427] Cleanup leftovers after old backup restore implementation
The synchronization mechanism has been freed from the constraints
of the old backup and restore implementation.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
0a9846e4a8 [MOS-694] Move DB initialization from OS to build scripts
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
d6a63be1fe [CP-1484] Add new mechanism for data synchronization between MOS and MC
This mechanism is similar to the current backup implementation,
but is stripped of irrelevant data that is not required by the
MC to perform data synchronization.
2023-01-19 16:41:56 +01:00
Maciej-Mudita
e6bc56f362 [MOS-787] Fix crash when syncing with Mudita-Center
When Pure had large databases - exceeding 2MB, a crash occurred
during synchronization with Mudita-Center.
2023-01-13 09:12:23 +01:00
Kuba Kleczkowski
46210e0afb [MOS-390] Fixed emergency number recognition
Emergency contact is now recognized when typed mannualy.
2023-01-04 16:16:27 +01:00
rrandomsky
0342eb50c8 [MOS-737] Fix for adding a country code prefix to existing contact
Adding or removing country code from existing contacts number is
changing now number record itself, exactly when changed number
is placed in DB, instead to create new number record, to avoid
miss match during matching numbers.
2022-12-21 14:55:30 +01:00
Bartosz Cichocki
839d6f301b [MOS-593] Fix backup issues with DB
Backup had some issues when filesystem was not clearly closed.
After that, sqlite was not commiting the transaction while
doing VACUUM INTO query, which caused fail on the next
query. Fixed by commiting the transaction when there's
any ongoing one during backup.
2022-07-14 10:52:10 +02:00
Adam Dobrowolski
3343f02809 [MOS-266] Call StateMachine implementation
With some tests, documentation and so on
2022-05-02 15:54:33 +02:00
wojtekrzepecki
bb0ccb218d [MOS-227] Fix DnD first call crash
fixed call when making first call from unknown number
when Pure is in DnD mode
2022-02-16 14:46:22 +01:00
wojtekrzepecki
853b0787df [EGD-8227] Refactor quotes db
refactoring of quotes db layout to conform with
given requirements
2022-02-02 09:50:24 +01:00
Pawel Olejniczak
dc3f65f30e [EGD-7656] Return contact record after adding new contact
Fixed issue that apeared when user switched to contact
edition via Contact details -> Contact Options just after
adding new contact. Contact record without correct ID
was passed through windows, which caused to open
Add new contact window instead of Edit.
2021-11-02 14:56:49 +01:00
Piotr Tański
9820a00cbc [EGD-7474] Contacts management fixes
Fixed managing contacts on the DB side.
2021-10-04 15:06:22 +02:00
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Jakub Pyszczak
c494f5c1b4 [EGD-7006] Removed sensitive data from db
Sensitive data removed from logs in module db and service db.
2021-06-30 15:52:47 +02:00
Wojtek Rzepecki
bf3cc2f23c [EGD-6955] Add calls notifications in DND
Add notifications for incoming calls in DND
phone mode according to design.
2021-06-30 13:19:33 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Jakub Pyszczak
d724442366 [EGD-5171] Utils to string fix
Fixed utils to string function to work with 8 bit integers.
Also nodiscard attribute added there.
2021-05-26 13:52:50 +02:00
Alek Rudnik
457e9b4fc8 [EGD-3542] Fix issue with sending text messages form new message window
Fixed too short timeout for sending sms
Fixed flow for switching to thred window to asynchornous one
Fixed some minor issues connected to new sms error handling
2021-05-07 16:24:27 +02:00
Wiktor S. Ovalle Correa
55c41de597 [EGD-6575] Rename Unicast with timeout as UnicastSync
Using Unicast with timeout is dangerous and strongly discouraged.
This change allows for more precise tracking of such cases.
2021-04-20 09:57:58 +02:00
Wiktor S. Ovalle Correa
14a01945b6 [EGD-6485] ServiceDB cleanup
Remove old unused ServiceDB API and deprecate its remains still being
in use.
2021-04-12 13:35:51 +02:00
Tomasz Langowski
fbc28f4cfe [EGD-5322] Add send message test (long sms, special characters)
Add send message test (long sms, special characters)

[EGD-5322] Add send message test (long sms, special characters)

Add send message test (long sms, special characters)
2021-02-09 09:17:52 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
mkamonMdt
9bf26e0e25 [EGD-4889] Fix add/edit contact from dial window
Original behaviour (from dial window) was that user-provided number
was send to db with partial match query. This could cause more than
one result, with no further selection rule. Solution to this
particular behavior was to switch to full number match query.

Additionally problem with unrecognizable prefixes in user-provided
numbers was solved.
2021-01-26 09:57:04 +01:00
Pawel Olejniczak
652fc46c94 [EGD-5369] Fix for incorrect assertions in DBServiceAPI
This hotfix removes unnecessary assertions from DBServiceAPI.
The whole file will be refactored/deleted in near future.
2021-01-21 15:59:12 +01:00
Piotr Tański
6c900d7b38 [EGD-5166] Add query-callback synchronization mechanism
Receiver object cancels the callbacks at the end of its lifecycle.
2021-01-13 12:11:56 +01:00
Pawel Olejniczak
87f118fd86 [EGD-4317] Fix newly added contact recognized as a duplicate
of temporary contact. Newly added contact is no longer considered
as a duplicate of a temporary one.
It simply replaces the temporary contact, if its number matches.
2021-01-11 12:59:24 +01:00
Piotr Tanski
4e0f72e70a [EGD-4696] Several stabilization patches. (#1192) 2020-12-15 15:30:13 +01:00
RobertPiet
54bb1d4a7f [EGD-4343] use new settings in ServiceAudio (#997)
* [EGD-4343] ServiceAudio moved to new settings
2020-12-04 14:10:44 +01:00
RobertPiet
675dc59c9a [EGD-3572] SettingsTable exchanged to settings::Settings (#968) (#1044)
[EGD-3572] Application has an instance of Settings - removed from derived apps
[EGD-3572] Application is the owner of Settings handling for its windows/widgets
[EGD-3572] Settings header moved to service-db public section
2020-11-27 15:38:19 +01:00
KacperLewandowski
6533aba24e [EGD-4073] Alarms database rework (#1006)
Adaptation to the query approach.
2020-11-26 12:27:57 +01:00
RobertPiet
c25ad79421 Revert "[EGD-3572] SettingsTable exchanged to Settings::Settings (#968)" (#1035)
This reverts commit f11bc1f0d0.

Co-authored-by: Hubert Chrzaniuk <hubert.chrzaniuk@mudita.com>
2020-11-18 12:17:08 +01:00
RobertPiet
f11bc1f0d0 [EGD-3572] SettingsTable exchanged to Settings::Settings (#968)
[EGD-3572] Application has an instance of Settings - removed from derived apps
[EGD-3572] review issues resolved
[EGD-3572] shared_ptr -> unique_ptr
[EGD-3572] Primary Key for settings_tab:path
[EGD-3572] empty values handling
2020-11-18 10:40:29 +01:00
Radoslaw Wicik
998ceac48e [EGD-4217] Convert service-db to library 2020-11-13 12:18:33 +01:00