Commit Graph
395 Commits
Author SHA1 Message Date
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
Marcin Smoczyński c9062e83e0 doc: cleanup readme files for doxygen 2020-04-28 17:34:00 +02:00
Radoslaw Wicik 49ca4257da [EGD-3151] Add fixes for SIM detection
Add proper passing SERIAL_PORT info
Convert cmux to unique_ptr in module-cellular
2020-04-27 17:24:24 +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 c88bddd7df [EGD-3086] refactor and minor fixes 2020-04-17 15:05:32 +02:00
Adam Dobrowolski 32f51fd796 EGD-3056 PR review applied 2020-04-15 16:50:19 +02:00
Adam Dobrowolski 51e8dac933 EGD-3056 Linux power manager stub - added missing override for Reboot & fixed typo in ServiceCellular 2020-04-15 16:50:19 +02:00
Adam Dobrowolski b7db6a57ed EGD-3056 Added message to continue system shutdown on power plug ejection 2020-04-15 16:50:19 +02:00
Adam Dobrowolski 62d8f4c094 EGD-3056 Improved events logs 2020-04-15 16:50:19 +02:00
Adam Dobrowolski 2561f265a1 EGD-3056 EventManager split to files
1. So that including message for EventManager would work wihtout include
   paths for module-gui for SystemManager
2. Faster compilation
3. Removed redundant code (DataReceivedHandler) it was the same
   implementation just copied
2020-04-15 16:50:19 +02:00
Adam Dobrowolski 2cee195e09 EGD-3056 subscribtion based execution (on typeid) added and works fine
Till now there was no clear way to register hanlder for message in
Service, with this approach one can register function/lambda handler
for Message which encurages handling messages in functions rather than
in hudge switch cases.
With aproach like this our Messages resembe something between Command
and State pattern. In state pattern `Message` would be `Event` send,
whereas Service would be `Context`.
2020-04-15 16:50:19 +02:00
Adam Dobrowolski 8342d813a3 EGD-3056 Created EventManager serivce name constant in inline string 2020-04-15 16:50:19 +02:00
Radoslaw Wicik f4a9bee7c5 Add modem firware version info 2020-04-14 14:30:29 +02:00
Pawel Olejniczak 7e77f095c4 [EGD-3070] Better error handling and few minor improvements suggested by reviewers 2020-04-10 14:40:29 +02:00
Pawel Olejniczak 184f699fca [EGD-3070] Prevent searching db for an empty speeddial number 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
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
kkleczkowskiandKuba Kleczkowski 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
Marcin Smoczyński f7c8af86c8 renderer: disable address sanitizer
Disable address sanitizier due to a bug in sigc library which results in
false positive report in the PurePhone process.
2020-04-08 18:07:57 +02:00
Adam Dobrowolski 4b938794f6 EGD-3055 Service cellular ask for time after logging to netwrok 2020-04-08 12:23:53 +02:00
Adam Dobrowolski 4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Alek-Mudita 36be49c15b Egd 3046 unexpected reset (#274)
* [EGD-3046] fix HF handler
added boot reason printing and clearing

* [EGD-3046] added prining of  GPR_5 on checking boot reason

* [EGD-3046] added halt if debugging

* [EGD-3046] halt if debugging only in exit

* [EGD-3046] rename

* [EGD-3046] added DEBUG check

* [EGD-3046] fixed formatting

* [EGD-3046] fixed includes
2020-04-01 16:34:56 +02:00
Mateusz Grzywacz 035e29c407 [EGD-3047] T4 gsm status pin mux pull-up value 2020-03-31 13:07:49 +02:00
Mateusz Grzywacz 85702d9647 review fixes 2020-03-26 22:08:26 +01:00
Mateusz Grzywacz 13f8faef5b [EGD-3032] charger fixes - remove temp battery level polling 2020-03-26 22:08:26 +01:00
Adam Dobrowolski e75fa39df2 EGD-3034 PR applied 2020-03-26 15:25:01 +01:00
Adam Dobrowolski e39045aa52 cellular_state Better naming, removed unused enum 2020-03-26 15:25:01 +01:00
Adam Dobrowolski 8526c051ce cellular_state ServiceCellular states moved to states 2020-03-26 15:25:01 +01: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
pholat 91e05fcf65 fix gtk & FileAttributes 2020-03-25 15:28:52 +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
Mateusz Grzywacz 6c9ebb83c3 [EGD-2961] vibrator CMake target fix 2020-03-24 15:16:24 +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
Mateusz Grzywacz 5f261dc20d [EGD-3012] T4 - gsm Status IRQ 2/2 + SIM refactor (common queue) 2020-03-23 16:47:54 +01:00
Mateusz Grzywacz faa6d72dea [EGD-2961] T4 - vibrator conf (pinmux) + off @ init 2020-03-23 16:47:54 +01:00
Radoslaw Wicik 8dea0d7675 [EGD-2981] Add UT target: check
Clean CMake tests targets
2020-03-20 16:46:11 +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
Mateusz Grzywacz 58c11d6ded [EGD-2999] Antenna Select fix 2020-03-19 14:16:44 +01:00
rkubiak01 2444a9545f Added signal strength (normalized to bars) to DeviceInfo 2020-03-18 14:07:53 +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
rkubiak01 2ac0fb756d desktop app changes #211 fix bundle #1 2020-03-13 11:34:32 +01:00
rkubiak01 39c93f6b09 Desktop app changes:
- endpoints split to files
- implemneted device info
- battery made obsolete should be deleted
- storage endpoint might not be neededm, for
  debug purposes only
- update not implemented
- sys::Service * is passed to endpoints
- added uuid as part of the core protocol
- body of the message is made available to endpoints
2020-03-13 11:34:32 +01:00
Adam Dobrowolski 49e2c98126 EGD-2848 Made wait on polling fail in cellular initialization, added AT+CRC to sim init 2020-03-12 15:24:39 +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
Adam Dobrowolski c2c30b696d EGD-2848 It works 2020-03-12 15:24:39 +01:00