Commit Graph
120 Commits
Author SHA1 Message Date
Pawel Olejniczak 443ea202e8 [EGD-3155] Remove label with second address line 2020-05-08 08:57:29 +02:00
Pawel Olejniczak 0aa71cd476 [EGD-3155] Fix style issue 2020-05-08 08:57:29 +02:00
Pawel Olejniczak 2014feabc7 [EGD-3155] Add changes suggested by reviewers 2020-05-08 08:57:29 +02:00
Pawel Olejniczak 6eed387019 [EGD-3155] Update db unit tests according to last changes with contact address 2020-05-08 08:57:29 +02:00
Pawel Olejniczak c97d3201d9 [EGD-3155] Fix contact name formatting 2020-05-08 08:57:29 +02:00
Pawel Olejniczak 1656969f9a [EGD-3155] Unify formatting contact name 2020-05-08 08:57:29 +02:00
Pawel Olejniczak f797b17b2a [EGD-3155] Adjust address id field names and change its type to integer 2020-05-08 08:57:29 +02:00
Pawel Olejniczak 8a713cf22b [EGD-3155] Adjust contact address in structures and DB api to be aligned with designs 2020-05-08 08:57:29 +02:00
Marcin Smoczyński c47923d70a [EGD-3107] Call number validation
Use specialized class to to pass phone number between apps and services
instead of ambigious std::string. Introduced class (utils::PhoneNumber)
wraps calls to libphonenumber providing more convienient interface.
However using libphonenumber directly may be resource hungry in terms
of stack, heap and cpu usage, so helper class has been introduced to
pass information about phone numbers (utils::PhoneNumber::View). It is
designed to maintain integrity thus can be created from an instance of
utils::PhoneNumber only or moved/copied to.

Add new field to the calllog db holding e164 formatted number. Both
entered and e164 numbers will be needed to be able to match with
contacts correctly.

Add constexpr information about country codes (utils::country).
2020-05-05 00:51:53 +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
Pawel Olejniczak b60ff1f5b3 [EGD-2950] Add implementation of ContactRecordInterface::Update 2020-04-29 10:23:57 +02:00
Marcin Smoczyński c9062e83e0 doc: cleanup readme files for doxygen 2020-04-28 17:34:00 +02:00
Alek Rudnik 699cb141e3 Egd 3168 fix for quote sign in db qeury (#335)
* [EDG-3168] fix for quote mark in DB queries

* [EGD-3168] replaced all %s with %q
2020-04-27 14:28:37 +02:00
Pawel Olejniczak a3e45d70e1 [EGD-3153] Remove redundant copyDataToContact
[EGD-3153] Use number user/e164 where it should be used
[EGD-3153] Disable saving secondary number
2020-04-24 09:36:36 +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
Alek Rudnik 55ec93cccf [EGD-2986] fixed module db UT (#326)
* [EGD-2986] fixed module db UT

* [EGD-2986] missing change

* []EGD-2986] add BD init check

* [EGD-2986] fix in threads table
2020-04-23 12:41:30 +02:00
Alek Rudnik 62c37c4107 [EGD-2798] use either e164 number or name (#321) 2020-04-22 11:16:22 +02:00
Pawel Olejniczak bb983ffc00 [EGD-3070] Fix formatting 2020-04-10 14:40:29 +02:00
Pawel Olejniczak 9954823186 [EGD-3070] Fix Speed dial field issues, and resolve confusion between user and e164 nuber fields 2020-04-10 14:40:29 +02:00
Adam Dobrowolski 4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +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
Adam Dobrowolski cbc13c4e74 EGD-3026 Added logging of sqlite error on start 2020-03-24 14:17:12 +01:00
Adam Dobrowolski cf2b8be8cd EGD-3026 Final ID unification 2020-03-24 14:17:12 +01:00
Adam Dobrowolski 09adf35eb5 EGD-3026 Database record unified ID field name 2020-03-24 14:17:12 +01:00
Adam Dobrowolski 7674b44385 EGD-3026 PR applied, fixed buid for release 2020-03-24 14:17:12 +01:00
Adam Dobrowolski abe6813ce6 EGD-3026 Wall Werror and Wextra added to project 2020-03-24 14:17:12 +01:00
Przemyslaw Brudny 8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Radoslaw Wicik 8dea0d7675 [EGD-2981] Add UT target: check
Clean CMake tests targets
2020-03-20 16:46:11 +01:00
Radoslaw Wicik a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski 7858fcc2f1 EGD-2848 Phone selects default SIM based on settings. If none - after unlock select sim (in settings) 2020-03-12 15:24:39 +01:00
Alek-Mudita 8c39cf8d20 Egd-2546 display contact details (#216)
* [EGD-2546] added contact details/addition per contact type

* [EGD-2546] gui::Option - controlability of displaying arrow

* [EGD-2546] rewritten calllof options window to OptionsWindon framework

* [EGD-2546] minor clean up

* [EGD-2546] clean up

* [EGD-2546] PR fixes

* [EGD-2546] new namespace for gui options

* [EGD-2546] PR fixes

* [EGD-2546] PR fix
2020-03-12 12:35:01 +01:00
kkleczkowski e4b7e9202e Egd 2507 settings date (#164)
* [EGD-2507] Wip on Date and Time window.

* [EGD-2507] Utlis, timeDateFormat in settings.db.

* [EGD-2507] - WiP on DateTimeWindow.

* [EGD-2507] dateTimeWindow layout + time validation + database_v2.md update.

* [EGD-2507] Code clean-up.

* [EGD-2507] Fixes after rebase, unused include removed.

* [ EGD-2507 ] PR suggestions.

* [ EGD-2507 ] Fixed missing 0 minutes, pr suggestions.

* [EGD-2507-settings-date] Fixes after rebase.
2020-03-05 14:32:06 +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
Adam Dobrowolski 4545b8ce8f Revert "[EGD-2892] added missing elements in contacts table"
This reverts commit 357aa8d3f1.
2020-02-28 12:58:44 +01:00
Adam Dobrowolski dc9b2b67db [EGD-2892] Added getCount for unreached calls & unread SMS and used it in Desktop 2020-02-27 17:10:03 +01:00
Adam Dobrowolski 357aa8d3f1 [EGD-2892] added missing elements in contacts table 2020-02-27 17:10:03 +01:00
rkubiak01 5454345227 country code fixes 2020-02-24 07:41:08 -05:00
Radoslaw Wicik 0400e5c18b [EGD-2886] Unify and repair build system. 2020-02-19 14:55:14 +01:00
rkubiak01 fee840ddb6 [EGD-2520] fix in sql query to search for any substring 2020-02-11 06:17:38 -05:00
Mateusz Grzywacz 8d0b50735f [feature] add separate folders in CMake conf & change type of a variable. rebuild.sh updated & docs on separate build folders 2020-02-03 14:12:47 +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
Adam Dobrowolski e5ae9e8fb2 [EGD-2394] [DB] SMSRecord sanitized
* Zeroed SMS record elements - to not add/read dumb ram values
* Added setter
* Added parent Record - first step for Records to have common parents
2020-01-31 14:05:42 +01:00
Adam Dobrowolski cee967514d [EGD-2394] [FIX] Querry sms by date descending 2020-01-31 14:05:42 +01:00
Alek-Mudita ea69daaebc Egd 2420 adding new calllog entry phase2 (#150)
* [EGD-2420] tokenizer refactoring
new class CellularCall

* [EDG-2420] new file added

* [EGD-2420] fixed include

* [EGD-2420] added new ModemCall type and its usage in Sevice Cellular.
missing dep in module-cellular.
Fix in tokenizer.

* [EGD-2420] get calllogrecordID one adding new entry to DB
number as contact name

* [EGD-2420] fixes at DB level api for update and delete
Outgoing call seems to add proper calllog entries now

* [EGD-2420][fix] fix for HF during call before full modem init

* [EGD-2420] incoming and missed calls are handled
code clean-up

* [EGD-2420] ModemCall::to_string

* [EGD-2420] added proper exceptions

* [EGD-2420] minor clean up

* [EGD-2420] split string with multichar delimiter

* [EGD-2420] done some TODOs

* [EGD-2420] PR fixes

* [EGD-2420] separation between cellularcall and cellularservice
PR fixes

* [EGD-2420] duration based on timestamp instead of timer

* [EGD-2420] new to_strings

* [EGD-2420] fixes after rebase

* [EGD-2420] operator<<

* [EGD-2420] changed split params

* [EGD-2420] changed returned db id

* [EGD-2420] comment with explantaion
2020-01-30 12:45:29 +01:00
Alek-Mudita 3d7611bd12 [EGD-2423] added numbertostring (#153)
* [EGD-2423] added numbertostring

* [EGD-2423] renamed to to_string
2020-01-30 10:17:35 +01:00
kkleczkowski 9811b7a044 Egd 2404 db modem (#137)
* [EGD-2404] Handling incoming SMS.

* [EGD-2404-db-modem] WiP onf db handling.

* [EGD-2404-db-modem] service-db notification + SmsDB::Add.

* WiP handling service-db notification in service-cellular.

* WiP on cellular<->db.

* Fix in usc2, handlig incoming message.

* Code cleanup pt 1.

* Improvements in service-csllular.

* Fixed compilation error on target, small cleanup.

* Small claenup.

* Fixes after rebase.

* Fixed incoming sms date parsing on target.

* Fix after rebase.

* PR suggestions added.

* dynamic_cast + nullptr check.
2020-01-21 10:49:18 +01:00
Alek-Mudita 9bc0e6f3c5 Egd 2420 adding new calllog entry phase 1 (#134)
* [EGD-2420]  minor fix in call app timer

* [EGD-2420] added missing dictionary definitions

* [EGD-2420] removed the same preprocesor defintions

* [fix][EGD-2420] for adding new entry to calllog DB.
It is workaournd as it looks like there is issue with printing 64bit variables in vsnprintf

* [EGD-2420] added new timer for call duration on cellular servcice.

* [EGD-2420] changed unnecessary LOG_ERRORs to LOG_DEBUGs

* [EGD-2420] changed logging levels

* [EGD-2420] added TODO
2020-01-15 15:05:25 +01:00
Adam Dobrowolski 967b6056b6 [EGD-2392] SMS app - get thread for selected contact 2020-01-10 14:15:28 +01:00
Adam Dobrowolski efccb4e1ce [FIX] Fixed crash on null string creation 2019-12-18 07:13:59 +01:00
Adam Dobrowolski 8c768bbd22 [FIX] fixed crash on bad interface access
not handled exceptions would crash system, added checks where std:: is
used
2019-12-18 07:13:59 +01:00