Commit Graph

58 Commits

Author SHA1 Message Date
alek
36e2d92b36 [EGD-3249] fixed two calls to messageSwitchPreviousApplication during call abort
Added safety check in ApplicationManager::handleSwitchPrevApplication
2020-06-01 14:48:08 +02:00
alek
5c5c9174cd [EGD-2830] fixed copy and simplified API 2020-05-28 14:13:12 +02:00
alek
b46fc6ba07 [EGD-2830] add no SIM notification in call app 2020-05-28 14:13:12 +02:00
alek
432e3ad7e2 [EGD-3237] fixed return type of switchWindow and returnToPreviousWindow 2020-05-27 09:55:11 +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
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
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
Marcin Smoczyński
f2eb9bb37a [EGD-2594] apps/call: add libphonenumber support
Augment handling phone numbers with libphonenumber:
 - add "as you type" formatting to phone numbers,
 - normalize phone number handling by using libphonenumber's phone
 number representation.

Clean up the code by moving application logic back to the application
and window data back to the window and reordering includes.

Application's stack size has been increased due to formatter stack
utilization level.
2020-04-08 18:23:45 +02:00
Alek-Mudita
1446a4bff8 Egd 2539 duration class (#258)
* [GED-2539] Timestamp : changed buffer to heap one

[EGD-2539] implemented 1st version of Duration class

[EGD-2539] added autoformating of the output

[EGD-2539] clean up

[EGD-2539] used duration in call and calllog
added Duration operators

[EGD-2539] add better duartions to calllog.db

[EGD-2539] format file

* [EGD-2539] fixes after rebase

* [EGD-2539] displayed format follows design guidline

* [EGD-2539] added UT for duration class and necessary FW fixes

* [EGD-2539] fixed tim_conversion UT

* [EGD-2539] PR fixes

* [EGD-2539] added move constructor to UTF8 class

* [EGD-2539] added checking for nullptr in fillContactData

* [EGD-2539] PR fixes
2020-03-25 17:14:00 +01: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
Alek-Mudita
dc3d655abe Egd 2566 signal strength indicator (#214)
* [EGD-2566] refactored cellular notification recogniton

* [EGD-2566] add new conversion to dBm

* [EGD-2566] added dBm to bar calculations
some minor fixes connected to signal strength
put static data in event store

* [EGD-2566] removed magic number

* [EGD-2566] PR fixes

* [EGD-2566] PR fixes

* [EGD-2566] missing rebase fix

* [EGD-2566] moved Signal Strength to separate file.

* [EGD-2566] missing return

* [EGD-2566] update signalstrength without message sending

* [EGD-2566]  reverted USE_DAEFAULT_BAUDRATE to 1

* [EGD-2566][fix] missing change for closing  end call window

* [EGD-2566] fix for proper checking for CSQ. Verbose setting of singla strength in Store

* [EGD-2566] fixed inlude in ScopeDTime.

* [EGD-2566]  added mutex in GSM store

* [EGD-2566] missing change

* [EGD-2566] reverted USE_DAEFAULT_BAUDRATE

* [EGD-2566] PR fixy
2020-03-13 16:42:42 +01:00
Alek-Mudita
e3296bb4e8 Egd 2946 add proper rejected call handling (#220)
* [EGD-2046] fixed rejected call status.
Hangup call as asnychronous call
Code clean up.

* [EGD-2964] code refactored

* [EGD-2946] missing rejexted call type name

* [EGD-2946] call app - time duration use RTC
fix #ifdef in AudioServiceApi
Minor gui fixec in call window
2020-03-12 10:46:22 +01:00
Alek-Mudita
017d1812ab Egd 2581 adding new contact from callapp with validation (#207)
* [EGD-2581] [fix] added phonebook const windows names

* [EGD-2581] Dialog - added "No" handler

* [EGD-2581] added contact checking before adding and notfication that it exists

* [EGD-2581] added contact edition action

* [EGD-2581] moved duplicated contact dialog window to phonebook
2020-03-09 10:00:34 +01:00
Alek-Mudita
6c8d1f15ff [EGD-2935] added missing NO ANSWER notification (#200) 2020-03-02 14:17:57 +01:00
Alek-Mudita
8585ea8cf4 Call app - contact recognition (#169)
* [EGD-2569] added # and * as numeric inputs

* [EGD-2569] added '+' input sign

* [EGD-2569] created defines with window names for call app

* [EGD-2547] contact recognition during call

* [EGD-2547] moved UiCommon

* [fix][EGD-2547] fix for setting empty UTF string to text gui field

* [EGD-2547] adding new contact from call enter window

* [EGD-2547] minor clean up and added param validation

* [EGD-2547] easier method to add contact

* [EGD-2569] added new keyboard profile (numeric with special signs)
Desktop is passing it properly to Call app.

* [EGD-2569] added transaltor to enternumberwindow

* [EGD-2569] reverted unnecessary changes

[EGD-2569] revert

[EGD-2569] revert of not needed changes

* [EGD-2569] fix in phone.kprof

* [EGD-2547] unified API to call and send sms

* [EGD-2547]  changed default to true

* [EGD-2547] minor clean up.

* [EGD-2569] revert changes in PinLockWindow.cpp

* [EGD-2569][fix] eneter as null char

* [EGD-2547] PR fixes

[EGD-2547] code review fixes / refactored UiCommon

[EGD-2547] more code review fixes

[EGD-2547] rem not needed cast

* [EGD-2547] PR fixes

* [EGD-2547] splitting of UiCommon

* [EGD-2547] typo fix

* [EGD-2547] revereted one line conversion from char to string.
2020-02-28 09:37:25 +01: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
Alek
262fe3809f [EGD-555] callapp name clean up 2020-01-21 11:42:36 +01:00
Alek
5a46f8e50f [EGD-555] fixed messageSwitchToCall API 2020-01-21 11:42:36 +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
26a98bce1e [AppManagement] Getting through previus windows by list
* removed first main window as first window in call app
* moved window switching to application from window
2020-01-10 14:15:28 +01:00
Mateusz Grzywacz
aeaf39191b [EGD-2368] moved all AppTimer objects definitions to init list, to get rid of default AppTimer() ctor 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz
33ac431af4 [EGD-2368] Approach 2: timer object for use in Application. 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz
c09df40905 [EGD-2368] Approach 1: list of timers 2020-01-02 14:53:34 +01:00
Adam Dobrowolski
9e6402e228 [EGD-2335] Addeed codestyle to changed code chunks 2019-12-09 11:19:37 +01:00
Adam Dobrowolski
6cfde644d5 [WIP] [EGD-2335] Removed redundant state in ApplicationManager Application wrapper
* Both Application and ApplicationManager had the same Application::State
state. Unified.
* Removed map of applications to applications list in ApplicationManager
2019-12-09 11:19:37 +01:00
Alek-Mudita
d0d7383e54 Fix tickhandler in call application (#101)
* [fix] for tick handler and oninput methods

* enhanced logging on back button
2019-12-03 12:21:19 +01:00
RomanKubiak
5e491d4a63 [WiP] [EDG-2167] Working CMUX, call in/out. Code to be cleaned 2019-11-19 12:53:29 +01:00
Alek-Mudita
4f9360b5f1 Egd 2252 no outgoing call number (#68)
* EGD-2252 fixed lack of number during outgoing call

* EGD-2252 one notfication type

* EGD-2252 some call switch data clean up
2019-11-07 19:25:20 +01:00
Alek
006bc3d129 EGD-2180 Issue with gui::ShowMode 2019-10-15 23:18:02 +02:00
Robert Borzecki
30846bfefa wip: Calling from phonebook. 2019-09-18 14:02:21 +02:00
Robert Borzecki
1dccf32a8d Added translation for call application.
Added flag to applications to prevent from locking the phone.
Changed look of call window.
2019-09-06 06:50:55 +02:00
Robert Borzecki
175798a3bc Added circles to call window. 2019-09-04 08:44:02 +02:00
Mateusz
e8babd16d5 WiP: Removed unneeded WakeUp/GoSleep handlers
WiP: Added new handler - > SwitchPowerMode
2019-08-29 11:40:31 +02:00
Robert Borzecki
9a815a2cfc Updated Application and Launcher templates. 2019-08-28 12:21:18 +02:00
Mateusz
1a59b7b6cb #MATI SUPER FIX, fixed async msg handling in DataReceivedHandler 2019-08-12 12:18:59 +02:00
Robert Borzecki
c6cb949b8e Added Notes database. 2019-08-08 11:54:34 +02:00
Robert Borzecki
7f4a029883 Merge branch 'master' of github.com:muditacom/PurePhone into application-starting 2019-08-08 00:21:29 +02:00
Robert Borzecki
a37fd22e05 Signal refreshing in all windows in application. 2019-08-07 23:18:32 +02:00
Robert Borzecki
7a4af994af WIP: refreshing signal strength. 2019-08-07 12:07:17 +02:00
Robert Borzecki
a9abf5cad6 Merge branch 'EGD-2011_audio_routing' of github.com:muditacom/PurePhone into application-starting 2019-08-07 08:42:04 +02:00
Robert Borzecki
fd3c4b8b15 Added routing in incoming call. 2019-08-07 07:16:31 +02:00
Robert Borzecki
841bf4407a Added message icon and call duration clock. 2019-08-06 23:23:05 +02:00
Robert Borzecki
a642076e28 Added signal strength handling. 2019-08-06 12:19:14 +02:00
Robert Borzecki
e0eebd3765 Fixed stack problem in call application. 2019-08-06 11:18:41 +02:00
Robert Borzecki
039689585d Fixing calling logic. 2019-08-05 18:05:50 +02:00
Robert Borzecki
fefda66337 Added stub class for text widget. 2019-08-05 06:28:45 +02:00
Robert Borzecki
cdde8bec0e Added new version of screens. 2019-07-19 12:03:27 +02:00
Robert Borzecki
b901d77b34 Changes to kickstarter viewer application. 2019-07-18 13:52:08 +02:00