Commit Graph

41 Commits

Author SHA1 Message Date
Marcin Zieliński
00fd29f8bd [MOS-477] Add the call log erasing option
Add the call log erasing option
2022-05-25 10:55:14 +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
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
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
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Maciej Janicki
6851c04e12 [EGD-5976] Add tethering cellular disabling
This commit adds disabling of URC messages during
tethering mode. It also adds call and sms logging after
tethering is disabled.
2021-06-01 09:03:23 +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
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
Piotr Tański
724505bb92 [EGD-2653] Update list of call logs in chunks
Automatically update the list of call logs in chunks.
2021-03-11 13:08:03 +01:00
Hubert Chrzaniuk
3cc558b02a [EGD-2931] Fix private number incoming calls
The change adjusts both cellular service as well as
call and call log applications to handle properly
incoming calls from private numbers.
2021-02-12 10:32:15 +01:00
Jakub Pyszczak
cee68d98eb [EGD-5529] Added CLCC parser
New cmd mechanism implementation of CLCC parser.
Unit tests implementation for the parser.
Refactor of searching for active outgoing call
in service cellular.
2021-02-11 13:37:52 +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
Bartek Cichocki
ef7cb08cc0 [EGD-3566] added calllog handling in service-desktop
[EGD-3566] implemented calllogGet query

[EGD-3566] fixed callogGet query

[EGD-3566] added CalllogGetCount query handling

[EGD-3566] added CalllogRemove query handling

[EGD-3566] added CalllogGetByContactID query handling

[EGD-3566] added tests
2020-09-22 09:07:10 +02:00
Radoslaw Wicik
1a919db2ed [EGD-2974] Support for temporary contacts as a group 2020-09-15 15:04:10 +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
7dcae592d7 [EGD-3599] added missing queries to calllog DB
[EGD-3599] PR fix
2020-09-09 08:41:10 +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
Mateusz Grzywacz
17c9d3ee7b [feature] use .isValid() to validate all interface entires 2020-07-20 14:10:11 +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
Marcin Smoczyński
0936930063 [EGD-2593] improved matching contact by numbers
Introduced format aware phone number comparison to allow improved
matching phone numbers with contacts.

Phone numbers are also displayed formatted on a phonebook/calllog
list view and on detailed contact info view.

Entered and e164 number are verified to match each other during
processing db request.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-17 14:01:38 +02:00
Marcin Smoczyński
a4a8315b97 fix empty calllog list item
Fix empty calllog title when number comes in national format. The
problem was caused by:
 1. making assumption that every number from cellular network comes in
 e164 format which is not true,
 2. using e164 number when looking for contact matching calllog entry
 without checking if e164 exists for calllog entry.
Fix problem by:
a.d.1 - replacing `PhoneNumber::viewFromE164` with less strict
`PhoneNumber::Parse` method which basically is a convenience method
which creates `PhoneNumber` entity and uses it to create a `View`.
a.d.2 - instead of fetching e164 directly introduce `getNonEmpty` method
of a View, which returns e164 number if it is present and entered number
otherwise.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-05-18 17:31:57 +02:00
Alek Rudnik
89eeba99eb Egd 3188 new sms enhancments (#355)
* [EGD-3188] new sms window - fix layout and functionalities

* [EGD-3188] sending sms from calllog and phonebook

* [EGD-3188] aborting the incoming call via sending sms template
Unufy sms ui common actions to use libphone number only
added default option to contactrecrord::getformattedname method

* [EGD-3188] fix for siwtching back from sms template window when the call is aborted

* [EGD-3188] PR fixes
2020-05-12 20:19:07 +02:00
Pawel Olejniczak
2014feabc7 [EGD-3155] Add changes suggested by reviewers 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
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
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
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
a8573a404c Apply new style 2020-03-17 10:03:16 +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
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
dc9b2b67db [EGD-2892] Added getCount for unreached calls & unread SMS and used it in Desktop 2020-02-27 17:10:03 +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
7d0913bde8 EGD-2117 changes according to code review 2019-11-20 11:14:44 +01:00
Alek
de3f7de44e EGD-2117 initial version of calllog application 2019-11-20 11:14:44 +01:00