Commit Graph

77 Commits

Author SHA1 Message Date
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
Radoslaw Wicik
f4a9bee7c5 Add modem firware version info 2020-04-14 14:30:29 +02:00
Alek Rudnik
09cf520c12 Egd 558 adjust volume during a call (#283)
* [EGD-558][fix] change error to info

* [EGD-558] added volume control of currently active audio operation

* [EGD-558] added ringing on incoming call

* [EGD-558] mini clean up in callwindow

* [EGD-558] removed reinterpret_casts and added some logging

* [EGD-558] rewritten methods to increment/decrement volume

* [EGD-558] clean up

* [EGD-558] moved volume control to application class
added nullptr checks

* [EGD-558] fixed types

* [EGD-558] added some audio debug logs

* [EGD-558] left a comment why ringing sound is currently disabled

* [EGD-558] PR fixes

* [EGD-558] PR fix

* [EGD-558] added propper error codes on pointer checking in Audio.cpp
2020-04-10 11:00:17 +02:00
kkleczkowski
b7312fbf07 [EGD-3050-antenna-app-improvements] Added new window in antenna test app, added new command in service-cellular. (#281)
Co-authored-by: Kuba Kleczkowski <dd>
2020-04-09 13:41:43 +02:00
Adam Dobrowolski
8526c051ce cellular_state ServiceCellular states moved to states 2020-03-26 15:25:01 +01:00
Adam Dobrowolski
e4de2a2410 SIM hot swap fixes and system abort on not enabled hot swap feature
* SIM hot swap should now properly show |x| in sim place when there is
  no SIM inserted in selected sim slot
* ServiceCellular now can inform on Fatal state desktop which will
  trigger window `Reboot` with no point of exit
* All windows in Desktop now have name in one place
* Access to cmux channels via enum class instead of String (which is errorprone)
2020-03-19 14:53:03 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski
e97a54f7ec EGD-2848 Initialize SIM after unlock 2020-03-12 15:24:39 +01:00
kkleczkowski
2868c87322 Egd 2854 antenna test app (#184)
* [EGD-2854-antenna-test-app] Antenna app + window.

* [EGD-2854-antenna-test-app] Cellular API, antenna app gui.

* [EGD-2854-antenna-test-app] Pin mux, small gui improvements.

* [EGD-2854-antenna-test-app] Compilation fix.

* [EGD-2854-antenna-test-app] PR suggestions.
2020-02-25 15:42:03 +01:00
Adam Dobrowolski
66467ab9d2 [EGD-2571] refactor - commands on GSM - SIM working 2020-02-18 07:39:16 +00:00
Adam Dobrowolski
55220c45a5 [EGD-2523] Added sim card indicator on topBar 2020-02-18 07:39:16 +00:00
Adam Dobrowolski
bce3b88904 [EGD-2571] Added GPIO command to harness 2020-02-18 07:39:16 +00:00
Adam Dobrowolski
ae915f3512 [EGD-2571] Clenup: removed MessageType static_casts, fixed debug.h defines. Added GPIO event 2020-02-12 13:31:13 +00:00
rkubiak01
7904fadd83 API added core database classes and layer handling for CountryCodes 2020-02-03 07:59:33 -05:00
Adam Dobrowolski
2568ba1a10 [EGD-2394] [DB] load SMS count & moved timestam check to class
* SMS count needed for showing num of sms
* timestamp copy/paste boilerplate can be removed
2020-01-31 14:05:42 +01:00
kkleczkowski
a657237395 [EGD-2522] Added GetOwnNumber and GetIMSI. Removed unused service-cellular meassages and unused types in messageType. (#146) 2020-01-27 12:20:07 +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
Adam Dobrowolski
967b6056b6 [EGD-2392] SMS app - get thread for selected contact 2020-01-10 14:15:28 +01:00
kkleczkowski
013422e519 Cellular messages (#110)
* WiP on porting sms to new cmux.

* [cellular-messages] WiP concatented messages.

* [cellular-messages] Sending sms and concatenated sms.

* [cellular-messages] WiP concatenated messages.

* [cellular-messages] Fixed deserialising multiple frames.

* [cellular-message] Demo app + cellular api.

* [cellular-message] Added text input selection

* [cellular-messages] Fixed font size.

* .gitignore update

* [cellular-messages] cleanup and rm source/version.hpp.

* [cellular-messages] PR suggestions.

* [cellular-messages] Fixed merge overwrites, rest of PR suggestions.

* [cellular-messages] Pr suggestions.

* [cellular-messages] PR suggestions again.
2019-12-17 09:51:05 +01:00
RomanKubiak
11acf5f8dc DATABASE: phonebook changes 2019-11-28 17:48:06 +01:00
RomanKubiak
61e95c9fc6 DATABASE: clang formatting before phonebook changes 2019-11-28 12:28:25 +01:00
kkleczkowski
b66ae1fa8b Edg 2286 browsing history of conversations (#92)
* WiP on thread view.

* Missing db code.

* Fixes in sericeDB, working on listView in threads window.

* Changes in thread Db message.

* Missing responseTo value bug tracking.

* Fixed threads DB getter.

* Show threads list.

* Added missing code in service-db.

* Small fixes.

* WiP listView swich page.

* Code clean-up.

* Code formatted.

* PR sugestions applied.
2019-11-27 10:09:03 +01:00
Adam Dobrowolski
77b542c992 [EDG-2135] LwIP: service added 2019-11-20 12:42:03 +01:00
Alek
de3f7de44e EGD-2117 initial version of calllog application 2019-11-20 11:14:44 +01:00
Adam Dobrowolski
079dfb5891 Bluetooth: Cleaned up actual code & added bluetooth start to settings 2019-10-25 14:53:36 +02:00
Robert Borzecki
6e4bf06046 Power off screen handling, contact verification functions. 2019-09-23 12:51:07 +02:00
Robert Borzecki
19ff030274 Added images for main phonebook window. 2019-09-20 11:20:11 +02:00
Robert Borzecki
9492c8f664 Crash on suspend. 2019-09-09 07:40:51 +02:00
Robert Borzecki
b866e4a63b Added backend for phone locking after specified window. 2019-08-30 06:40:50 +02:00
Robert Borzecki
aea42ac197 Moved eink and gui services start to application manager. 2019-08-27 07:59:55 +02:00
Robert Borzecki
317b99fc7d Added db routines for notes. 2019-08-12 10:11:05 +02:00
Mateusz
9155858a5f Merge remote-tracking branch 'origin/master' into EGD-2011_audio_routing 2019-08-07 21:35:42 +02:00
Kuba
e4ee6a8eed Last fixes. 2019-08-07 09:43:55 +02:00
Kuba
03e9f61618 Merge branch 'master' of github.com:muditacom/PurePhone into service-alarms 2019-08-07 09:31:58 +02:00
Kuba
e4b0559c82 Pull request suggestion solved. 2019-08-06 14:14:47 +02:00
Mateusz
11240bf9ee WiP: Fine-tuning gsm modem init procedure part3 2019-08-06 10:22:29 +02:00
Mati
210fdf0ec9 WiP: fine-tuning part2 2019-08-05 19:22:22 +02:00
Mati
c7c9ecfab8 Fine-tuning init procedure 2019-08-05 18:57:55 +02:00
Mateusz
a4148dca6e WiP: routing audio calls finally works
Added Mute/Unmute/Speakerphonectrl API
2019-08-05 12:23:51 +02:00
Mateusz
fce0de53ef WiP: routing tests 2019-08-05 08:05:40 +02:00
Mateusz
933854a704 WiP: added service-audio 2019-07-29 14:39:44 +02:00
Kuba
1c3d0001a9 Merge branch 'master' of github.com:muditacom/PurePhone into service-alarms 2019-07-26 12:19:59 +02:00
Kuba
2d8b447dee Multicast message from DBService. Added GetNext method to Alarms DB. 2019-07-18 16:30:29 +02:00
Mati
1ce9f8e93c Merge remote-tracking branch 'origin/master' into module-cell 2019-07-18 12:48:35 +02:00
Mati
12a271cdb8 Minor changes in init procedure 2019-07-18 11:33:16 +02:00
Kuba
2744e423c5 Merge branch 'master' of github.com:muditacom/PurePhone into service-alarms 2019-07-18 11:10:20 +02:00
Mati
616f92c897 Further improvements of async init procedure 2019-07-18 09:48:48 +02:00
Kuba
317d9a1f06 Added DBAlarm messages. Working on alarm evenets. 2019-07-17 14:51:42 +02:00
Lukasz Skrzypczak
52457abfba Merge branch 'master' of github.com:muditacom/PurePhone into PowerManager
# Conflicts:
#	env.cmake
#	source/main.cpp
2019-07-16 13:12:42 +02:00