Commit Graph

43 Commits

Author SHA1 Message Date
Lucjan Bryndza
f60b9c0013 [EGD-5392] Add switch vfat to RO mode
VFAT partition should be mounted in RO mode by default
because writing to FAT filesystem is unsafe.
Writing is allowed only in the LFS filesystem.
If upgrade is needed FAT partition can be temporary
switched to RW mode using mount() syscall with REMOUNT flag
but it should be switched to RO mode again after upgrade.
2021-02-17 17:07:41 +01:00
jimmorrisson
6711e02bad [EGD-4446] Change: new filesystem handling implementation in module db. (#1052)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module database. It also contains minor fixes in module-db.
2020-12-05 10:40:27 +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
Tomek Sobkowiak
ee8a5e4ab9 [EDG-4346] Load script to init contacts database (#1013) 2020-11-22 17:31:56 +01:00
Tomek Sobkowiak
4ee0fee780 [EDG-4348] Load script to init calllog database (#1016) 2020-11-18 21:16:22 +01:00
Tomek Sobkowiak
add5ef8b72 [EDG-4351] Load script to init notifications database (#1030) 2020-11-18 21:06:21 +01:00
Tomek Sobkowiak
92965078c1 [EDG-4350] Load script to init notes database (#1023) 2020-11-18 20:55:00 +01:00
Tomek Sobkowiak
2aa015ca5e [EDG-4347] Load script to init sms database (#1015)
Co-authored-by: Radosław Wicik <60609724+rwicik@users.noreply.github.com>
2020-11-18 20:44:35 +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
Lucjan Bryndza
707b31ac3e [EGD-4264] directory reordering (#1001)
* [EGD-4264] VFS directory reordering

Currently VFS uses flat directory structure
for disc manager I need more sofisticated directory layout

* [EGD-4264] Remove redundant -Wno

* [EGD-4261] New purefs API

* [EGD-4264] Unittest fixes

* [EGD-4264] Directory relativity

* [EGD-4264] Relative path fixes

* [EGD-4264] Fix RT1051 compile errors

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-16 12:11:24 +01:00
Tomek Sobkowiak
6e248eb3ca [EDG-4349] Load script to init alarms database (#1000) 2020-11-13 11:08:46 +01:00
Przemyslaw Brudny
e131dae68f [EGD-3743] Removed old doxygen copyright statements from project. 2020-10-20 12:55:10 +02:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Radoslaw Wicik
1a919db2ed [EGD-2974] Support for temporary contacts as a group 2020-09-15 15:04:10 +02:00
jimmorrisson
472991c62a [EGD-3337] Create settings database table to be vertical not horizontal. 2020-09-02 10:03:31 +02:00
Tomas Rogala
78904a6b5d [EGD-3307] Review changes 2020-08-13 21:07:42 +02:00
tomasz
f82736aaba [EGD-3307] Add calendar db files 2020-08-13 21:07:42 +02:00
Radoslaw Wicik
ee685049ae [EGD-3386] Add contact flags to DB 2020-07-24 11:26:29 +02:00
Radoslaw Wicik
c2b8a33d4b [EGD-3428] Fix db interface functions names - Database class 2020-07-16 10:55:07 +02:00
Radoslaw Wicik
ad84b981d9 [EGD-3428] Fix db interface functions names - Table class 2020-07-16 10:55:07 +02:00
Alek Rudnik
d5c8cb0c5b Egd 3343 add notifications database (#465)
* [EGD-3158] added UT for CallogTable and CalllogRecord

* [EGD-3343] added notifications db
2020-06-25 13:47:31 +02:00
rkubiak01
2ec5094789 Calllog name fix 2020-05-11 11:58:36 +02:00
rkubiak01
7cac882c7a [2306] VFS: support .boot.ini and "current" and "previous" os types (#315)
* VFS: support .boot.ini and "current" and "previous" os types

* fixes for first batch of comments
- moved crc32 functions to a seperate file
- changed naming of constant with _
- removed one magic number
- crc methods now cross platform

* using smart pointer for buffer management

* created a simple USER_FILE macro for database names

* removed commented-out code

* style fixes

* Updated crc32 version

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* renamed USER_FILE to USER_PATH macro, this was also
bromen and was returning incorrect paths, std::filesystem::path
behavior is causing these issues.

* VFS: remove method changed

* fixed path for assets copy

* UNITTEST: vfs test fixed

* VFS: changed computeCRC32 return type to void

* Max supported partition to 2 (was 1)

* EOL in vfs.cpp

* nullptr check in computeCRC32
include for log.hpp fixed

* flash_eMMC merged properly

* CRC32 commit update

* testBuild

* fix newline at start of smsdb.cpp
removed test from cmake

* no user/ folder on the root of emmc causes sqlite3 to fault
this adds a create empty user call for rt1051

* flash script fixes
- do not use build-*/sys
- common.sh contains a static list of iles that land on the flash

Co-authored-by: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>
2020-05-08 10:27:17 +02:00
Alek Rudnik
16eaab6b50 Egd 3169 sms templates (#336)
* [EGD-3169] added sms templates model and item
fixed common class name convention

* [EGD-3169] added templates window
Passing template to new sms window is already working

* [EGD-3169] PR fixes from DB PR

* [EGD-3169] add universal callback for templates items

* [EGD-3169] requesting templates from more 2 windows

* [EGD-3169] missign change - display template in threads window

* [EGD-3169] minor fixes

* [EGD-3169] minimal clean up

* [EGD-3169] fixed some layout constatnt

* [EGD-3169] rem minor comments and logs

* [EGD-3089] rem redundant vector include

* [EGD-3169] PR fixes

* [EGD-3169] fixes afeter rebase

* [EGD-3169] workaround for list view issue - added 2 dump entries

* [EGD-3169] PR fixes

* [EGD-3169] style fixes

* [EGD-3169] fix for 0x0D char on enter in text widget

* [EGD-3169] PR fixes

* [EGD-3169] compilation issue
2020-04-30 13:48:23 +02:00
Alek Rudnik
393f41a89a Egd 3157 prepare sms template db table (#330)
* [EGD-3157] added new DB templates table

* [EGD-3157] added SMS template record

* [EGD-3157] added sms template tabels UT and fixes

* [EGD-3157] added sms template record UT

* [EGD-3157] error log in Database.cpp

* [EGD-3157] fixed usage pf printf specifiers

* [EGD-3157] fixed description in database md file

* [EGD-3157] remove redundant comments
2020-04-24 09:04:46 +02:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Alek-Mudita
b853087b3b Egd 2513 callog phonebook integration (#173)
* [EGD-2513] new API to create temparary contact entry if cannot be found
Calllog should search for contact.

* [EGD-2513] #pragma once in all headers file in module-db

* [EGD-2513] new constructor for CalllogRecord

* [EGD-2513] contact recognition for calllog DB API

* [EGD-2513] clean up

* [EGD-2513] displaying name and surname call and calllog

* [EGD-2513] enum instead bool

* [EGD-2513] fix in remporary contact creation

* [fix][EGD-2513] missing c_str

* [fix][EGD-2513] minor fixes in documentation

* [EGD-2513] unified entry read state for both sms and calllog dbs

* [EGD-2513] calllog db documentation

* [EGD-2513] code reviex fixed in ContactRecord
2020-03-02 16:43:29 +01:00
rkubiak01
bc45d728fc [EGD-2535] static country code data
initial commit for database structure in code
2020-02-03 07:59:33 -05:00
Alek
de3f7de44e EGD-2117 initial version of calllog application 2019-11-20 11:14:44 +01:00
Robert Borzecki
317b99fc7d Added db routines for notes. 2019-08-12 10:11:05 +02:00
Kuba
4046f4e324 Unit tests for Alarms database. Fixes and code cleanup for alarms database. 2019-07-16 14:48:12 +02:00
Kuba
0930ee0364 Working on database for Alarms. 2019-07-16 08:57:42 +02:00
Mati
37150d053c Launched DB on hardware 2019-06-06 14:53:35 +02:00
Mati
b2c3f4d53f Improved error handling 2019-06-06 12:06:30 +02:00
Mati
e37f26a3e9 Added DB service, implemented Settings API 2019-06-06 11:15:48 +02:00
Mati
18d84d4556 Added settings table 2019-06-06 08:00:05 +02:00
Mati
b5dab4db16 Minor changes 2019-05-28 15:19:03 +02:00
Mati
3c4abddcc2 Added the rest of contacts tables 2019-05-28 15:14:09 +02:00
Mati
3e717e2b01 Added ContactsNameTable 2019-05-28 13:58:16 +02:00
Mati
b9bd4372e7 Refactor,
Added ContactsTable
2019-05-28 13:27:54 +02:00