Commit Graph

43 Commits

Author SHA1 Message Date
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Pawel Olejniczak
caed213fcd [CP-1085] Collect sms threads notifications in outbox ep
When thread record is modified during connection
with Mudita Center, notification of that action
should be collected in outbox endpoint to
keep contacts data synchronized between MuditaOS
and Mudita Center.
2022-04-14 16:51:31 +02:00
Alek Rudnik
65d67e2690 [EGD-7948] Extend log dumping
Log are now dumped:
* on system shutdown including hard faults and aborts
* every 5 minutes

Fixed some logs
2021-11-16 17:56:28 +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
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
Alistair Francis
92e92d3ef2 [EGD-6946] Fix build for GCC11
Fix build issues identified when building on Fedora 34 using GCC11.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2021-08-02 13:05:10 +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
Michał Kamoń
ad52bab728 [EGD-6283] Fix to slow Application Desktop start
ApplicationDesktop start was slowed down by two synchronous DB calls:
-get unread threads count
-get unread calls count
Both were replaced with asynch versions.
2021-03-26 08:19:27 +01:00
RobertPiet
79d27c977c [EGD-5725] Sms threads pagination
Added pagination for sms threads
2021-02-25 19:55:02 +01:00
Pawel Olejniczak
f535268624 [EGD-5586] Clean up messages endpoint API
Introducing changes according to new messages endpoint api
proposal doc. All request have been updated, and some new were added.
Harness tests were updated too. These changes will be followed up with
pagination implementation.
2021-02-16 09:19:50 +01:00
PrzeBrudny
88939f8209 [EGD-4070] Messages listView sync db queries refactored to full async. (#837) 2020-10-26 14:02:13 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Bartek Cichocki
305d43a176 [EGD-3773] added A2DP playback backend 2020-10-14 09:23:53 +02:00
Przemyslaw Brudny
0eb1fd03e5 [EGD-3985] Removed unique_ptr to vector for DatabaseModel updateRecords Method. 2020-10-13 12:23:34 +02:00
Piotr Tanski
7e520b49a2 [EGD-3788] Fixes for message drafts feature after requirements elaboration. (#733) 2020-09-29 12:34:58 +02:00
Przemyslaw Brudny
b7eb4365ea [EGD-3799] Messages queries cleanups. 2020-09-23 15:02:04 +02:00
Piotr Tanski
8fd488b084 [EGD-3720] Database service API cleanup for messages application. (#720)
- Major cleanup of database query usage.
2020-09-22 12:59:32 +02:00
Marcin Smoczyński
6bb539b510 [EGD-3691] fix rt1051 release build errors (#691) 2020-09-14 15:25:46 +02:00
Marcin Smoczyński
204dd621ef [EGD-3532] identify thread with a number
Use phone number instead of contact number to identify a message thread
to allow having multiple threads for a contact if contact has multiple
numbers.
2020-09-11 11:14:03 +02:00
Bartek Cichocki
9eeeb6ae92 [EGD-3502] reworked endpoints and handlers
added endpoint listener to query
2020-09-02 17:26:01 +02:00
Przemyslaw Brudny
fa3968a3ee [EGD-3451] PR Changes. 2020-08-07 12:26:44 +02:00
Przemyslaw Brudny
010ecf6b37 [EGD-3451] Notifications and db messages for list refresh added to Phonebook and Messages. 2020-08-07 12:26:44 +02:00
Marcin Smoczyński
885fe1083a db: improve query handling
Introduce a new way to handle query responses allowing to deal with
races:
 - bind reponse with request,
 - handle responses with an observer-like interface.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-08-06 14:13:35 +02:00
alek
cd5e381bc2 [EGD-3402] pr fixes 2020-07-16 13:49:44 +02:00
alek
e53982a968 [EGD-3402] added Record base class for sms and thread table classes 2020-07-16 13:49:44 +02:00
alek
edeb310b62 [EDG-3402] minor clean up and error handling 2020-07-16 13:49:44 +02:00
Radoslaw Wicik
ad84b981d9 [EGD-3428] Fix db interface functions names - Table class 2020-07-16 10:55:07 +02:00
Alek Rudnik
26431f41e2 [EGD-2810] Added sms option to mark conversation as read/unread (#522)
* [EGD-2810] SMS - Added option to mark conversation as read/unread

* [EGD-2810] PR fixes
2020-07-13 14:39:36 +02:00
Alek Rudnik
3baa85363d Egd 2835 sms unread vs unseen notifications (#514)
* [EGD-2835] thread table based sms not read notifications

* [EGD-2835] removed redundant read field from sms db table

* [EGD-2835] clear unread status of a thread if thre thread is open

* [EGD-2835] updated database documentation

* [EGD-2835] added changelog
2020-07-10 11:57:19 +02:00
Mateusz Grzywacz
194085de0a [EGD-3348] subclass ThreadRecord from Record struct 2020-07-07 16:56:46 +02:00
pholat
23df384c55 EGD-3087 SMS Search implemented (#374)
* EGD-3087 WIP adding SMS Querry

* EGD-3087 Added query virtual interface on Service top layer

Service shouldn't implement query logic and should be proxying that.

additionally:
- small fixes in includes
- shared service db name same way as apps and event manager

* EGD-3087 Query - want to work on interface not on db

* EGD-3087 Query gluecode works fine. Our query in SMS search calls getBySMSQuery

Changes cut off before any potential orm interface layer

* EGD-3087 WIP Interface in use

* EGD-3087 Query for SMS search works as designed

* EGD-3087 Query results should be on screen

* EGD-3087 BUG workaround - need to deep refresh display to show data

* EGD-3087 Searching for text from input works fine

* EGD-3087 Showing results / or empty results depending on query

* EGD-3087 Pre PR fixups

* EGD-3087 Empty search - getting back to prewious window ignore current

* EGD-3087 PR applied

* EGD-3087 PR - style fixed

* EGD-3087 Review - DB ListView handling moved to separate function

* EGD-3087 Workaround: crash on use after free fix

* EGD-3087 PR stylistic changes

* EGD-3087 PR cleanup applied

* EGD-3087 Added test for Query interface

* EGD-3087 renamed getByQuery to getQuery & finished tests

* EGD-3087 Post rebase fixup

* EGD-3087 PR - moved ListView request part to separate function

* EGD-3087 PR Fixups

* EGD-3087 Post rebase style fix

* EGD-3087 Added variable for DB service stack & const to getter function
2020-05-27 13:49:50 +02:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski
967b6056b6 [EGD-2392] SMS app - get thread for selected contact 2020-01-10 14:15:28 +01:00
Mati
c18aa279f9 Added SMS & Threads records high-level API 2019-06-10 09:08:55 +02:00
Mati
2918195e2c Slight change in records API(constructors) 2019-06-07 14:16:57 +02:00
Mati
f50a54e289 DB interfaces optimization.
Fixed compilation errors & warnings
2019-06-07 12:13:40 +02:00
Mati
5af5026166 SMSrecord api updates, added new method to Table interface 2019-06-05 15:07:38 +02:00
Mati
4c407979c7 WiP: smsrecord implementation + tests 2019-06-05 14:39:45 +02:00
Mati
b65ca68b78 SMSRecord + ThreadRecord implementation 2019-06-05 12:31:42 +02:00
Mati
9eebf9f658 WiP: ThreadRecord implementation 2019-06-04 16:25:26 +02:00
Mati
df4441884f Interface template 2019-05-29 10:11:54 +02:00