Commit Graph

143 Commits

Author SHA1 Message Date
Przemyslaw Brudny
dfafd1fb5f [EGD-7987] Closing window refactor
Closing window refactor.
2021-11-22 11:05:44 +01:00
Wojtek Rzepecki
7afd68ac76 [EGD-7852] Fix batteryr screens switch
fix of switch from dead/charging battery screens
2021-10-25 16:36:38 +02:00
Kuba
6e12e5834f [EGD-7738] Fix modem reset
Fixed modem reset procedur so now it will not stuck in cellular
init on factory fresh phone. Also removed T3/T4 board recognition.
2021-10-21 18:45:43 +02:00
Przemyslaw Brudny
3b84af2746 [EGD-7631] PhoneLock timer system time independence refactor
Refactored PhoneLock to be independent of system time.
Refactored refresh options for notification receive on
Windows.
2021-09-30 17:01:53 +03:00
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Wojtek Rzepecki
1e8082e02c [EGD-7570] Add Alarm Clock status bar indicator
Added indicator on status bar if any alarm is on
2021-09-23 13:15:02 +02:00
Wojtek Rzepecki
4c19fa16b3 [EGD-7612] Add alarm popup
Added alarm popup window. Added ImageBoxWithText
widget.
2021-09-22 15:51:17 +02:00
Artur Śleszyński
b15006a94c [CP-564] Make desktop endpoints a separate lib
In order to have different sets of endpoints for different products,
we need to separate endpoints from the desktop service.
2021-09-21 10:41:37 +02:00
Mateusz Grzegorzek
58dd02cff1 [BH-861] Cleanup Application split - part I
1. Prepare Pure and Bell specific `Application`
   classes and add them to `app` target:

- `products/BellHybrid/apps/Application.cpp`
- `products/PurePhone/apps/Application.cpp`

2. Update `CMakeLists.txt` files.
3. Move `ApplicationBell` implementation to Bell-specific
   `Application` class and remove `ApplicationBell` files.
4. Change Bell apps parent classes from `ApplicationBell`
  to Bell-specific `Application` class.
5. Rename `Application` to `ApplicationCommon` in the rest of the files.
2021-09-13 11:58:10 +02:00
Piotr Tański
0079bc9695 [EGD-7238] Fixed applications deinit handers
All apps deinit handlers should call the base function.
2021-09-09 12:51:22 +02:00
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Mateusz Grzegorzek
ed68fc92ec [BH-754] Split ServiceDB
- rename ServiceDB to ServiceDBCommon,
- create separate ServiceDB for Pure and Bell,
- move Pure-specific functionality
from `ServiceDBCommon` to Pure `ServiceDB`
2021-08-20 10:47:29 +02:00
Marek Niepieklo
bd06eacbda [CP-403] Replace old update code
Removed update related code
Removed update test scripts
2021-08-05 17:11:24 +02:00
DariuszSabala
4201fcaea6 [BH-384] Turned application desktop to library
Defined separated cmake library, private and public include
directories and dependencies, isolated public headers from private,
cleaned up include paths and defined which targets depend on new
library, cleaned up include paths
2021-07-14 17:07:50 +02:00
Paweł Joński
a7fba1b343 [BH-374] Librarize application-antenna
Add apps-common, librarize application-antenna
2021-06-17 12:54:02 +02:00
Wiktor S. Ovalle Correa
eb026fe8b0 [EGD-6907] Introduce ModemState in Cellular
We should not use Cellular's internal states to drive
other system parts, especially applications
2021-06-08 18:42:37 +02:00
Przemyslaw Brudny
b7e710ef9e [EGD-6867] Renamed TopBar into StatusBar
Renamed TopBar into StatusBar.
2021-06-04 12:24:30 +02:00
Wojtek Rzepecki
56a17e7814 [EGD-6854] Add missing tethering windows
Added missing windows for tethering
based on UI design
2021-06-01 15:25:30 +02:00
Przemyslaw Brudny
bc737e93f6 [EGD-5885] Added SimLockHandler
Refactored LockWindow TitleBar handling. Added Sim pin request
block on lockedPhone. Added Sim info popup added when pin
changed. Updated assets. Removed old PinLock structures.
Cleared LockBox structures. Removed old settings sim setters.
New CellularMessage adaptation. Cleared Lock structure.
2021-05-26 20:09:33 +02:00
Michał Kamoń
0f3fb7c152 [EGD-6736] Add app's state dependent autoLock mechanism
This PR provides the implementation of the auto-locking mechanism that
is dependent on an application's current auto-locking policy. Three
auto-lock policies have been introduced:

* DetermineByWindow
* DetermineByAppState
* PreventPermanently

Also changed the AutoLockWindow set/get auto-lock time value to the
message-based approach.
2021-05-26 08:31:33 +02:00
Pawel.Paprocki
040550f3b7 [BH-356] Move TPLIB (microtar) to separate directory
Move microtar to lib, amend CMAKE files
2021-05-24 09:44:29 +02:00
DariuszSabala
339f3d52fa [BH-364] Move TPLIB magic_enum to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-21 11:12:20 +02:00
tomaszkrosnowski
dcd0ebe0a1 [EGD-6338] Fix NAT widget visibility
Make sure that NAT (Network Access Technology) widget is visible on top
bar ONLY during call.
2021-05-21 01:27:54 +02:00
Wiktor S. Ovalle Correa
b2ca227fd5 [EGD-6746] Use new SimCard implementation
Switch to SimCard implementation provided by previous commit
2021-05-20 17:52:48 +02:00
Michał Kamoń
48f7cf171d [EGD-6755] Add updated notification icons
This PR adds/updates notification icons to latest version provided
by designs.

Also this PR provides new implementation for CallLogDetailsWindow.
The window was using one of the icons updated. To avoid making
temporary corrections on the icon's hardcoded (x,y,w,h) properties,
the entire window was redesign to use up-to-date ModuitaOS GUI
features.
2021-05-19 08:10:49 +02:00
Michał Kamoń
f2ce6e946b [EGD-6707] Add single number message notification
This PR provides implementation of home screen notification for
`notSeen` messages received from a single number. The "single-number:
`notSeen` message notification distinct from "multiple-number"
notification with the following features:
 - displaying formatted contact name
 - `onActivated` it switches to respective thread window (instead of
 all thread window) in `ApplicationMessages`

 The PR also introduced some `ActiveNotificationsModel` code refactor
 to align the implementation with `Single Responsibility Principle`
2021-05-18 17:19:30 +02:00
Adam Dobrowolski
b38adceced [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
Removed dependency from freertos in test global file
EntryPath tests updated and compilation slimed
2021-05-18 13:25:54 +02:00
Przemyslaw Brudny
bcdaf15ed1 [EGD-6740] Availability and Change handled by PhoneLockHandler
Availability and Change in phoneLock handled by
PhoneLockHandler. Removed old implementation from
onBoarding and Settings. Cleared language assets.
2021-05-14 13:07:49 +02:00
Przemysław Brudny
e71a044bd3 [EGD-6019] Revert of two commits
This reverts commit b6416b15da.
This reverts commit e2f3882d8a.
2021-05-14 09:54:36 +02:00
Adam Dobrowolski
b6416b15da [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
2021-05-13 18:22:44 +02:00
Michał Kamoń
0bad6d643b [EGD-6657] ApplicationDesktop clean-up
This PR cleans-up `ApplicationDesktop` after recent changes in
home screen notifications handling.
2021-05-07 15:41:14 +02:00
Przemyslaw Brudny
9a17c5fc3c [EGD-6676] PhoneLock handling with ServiceDesktop
Replaced old PhoneLock handler in ServiceDesktop with new
interactions with Application Manager PhoneLockHandler.
2021-05-05 13:55:14 +02:00
Przemyslaw Brudny
1abd6b18e2 [EGD-6641] Added Notifications to LockedPhone popup
Added NotificationsModel to LockedPhone popup window.
2021-04-29 18:21:50 +02:00
Przemyslaw Brudny
25ba341e6c [EGD-5884] Added Lock Screen popup handling
Moved lock screen window to popup. Split DesktopMainWindow into
two parts (popup and regular). Added LockPhoneHandler into
ApplicationManager.
2021-04-29 12:06:59 +02:00
Przemyslaw Brudny
182f694ac2 [EGD-6637] Cleanup locks structure
Renaming existing locks namespace and created proper directory
structure.
2021-04-27 16:19:02 +02:00
Michał Kamoń
eec4370cdc [EGD-5703] Fix SimCard topBar icon on Desktop
In initial design a `TobBar`'s SimCard icon with number is supposed
to display on the home screen only if there are two cards inserted.
Because of the hardware limitations (there is no way of telling if
there is a single or two cards inserted) the established consensus is
that home screen should not display SimCard widget unless it's
indication error state.

Although in the task description there is only home screen mentioned,
the behaviour was established for all `ApplicationDesktop`'s windows.
2021-04-27 08:14:17 +02:00
Michał Kamoń
d0f5f74366 [EGD-6456] ListView based desktop notification
This PR provides following changes in notifications:
- notifications were extracted as widget for pop-up-based
locked-screen implementation
- notifications are ListView based implemented
- the most recent notification is displayed on the top of the list
2021-04-22 15:51:59 +02:00
Maciej Janicki
8ea8626e8d [EGD-6426] Fix sim card not being detected
Adds selected sim read from settings.
2021-04-21 10:08:18 +02:00
Adam Dobrowolski
940989833f [EGD-6527] Internationalization API unification
Single api to rule i18n
all calls to localistaion in cpp files unified
cut off ass many dependencies in i18n header as possible
2021-04-20 20:07:44 +02:00
Piotr Tański
e129299146 [EGD-6486] Fix for settings not avaialble at phone startup
Fixed the comparison function of EntryPath objects.
2021-04-14 13:02:48 +02:00
Przemyslaw Brudny
cbd74648d0 [EGD-6494] Application Manager on action switch fix
Application Manager switch on Action no longer causes to
newly opened application main window switch but it
calls declared action handler.
2021-04-13 10:59:29 +02:00
Piotr Tański
81adfe41ab [EGD-6347] Refactored phone modes handling in applications
PhoneModeObserver doesn't work properly in applications.
Applications have to handle the phone mode changes via AppMgr.
Phone mode and tethering handlers separated.
2021-04-12 14:54:55 +02:00
Bartosz Cichocki
22809d630b [EGD-6208] Add blocking phone mode changes during tethering
When the tethering is enabled, the phone mode shouldn't change,
now, any attempt ends with a notification
2021-04-12 12:56:36 +02:00
Mateusz Grzegorzek
7b8f1712f2 [EGD-6433] Implement SIM PIN enable request
Implement SIM PIN enable/disable request
in PinLockHandler
2021-04-08 16:20:41 +02:00
Mateusz Grzegorzek
42426e3efe [EGD-4736] Change PIN windows
Implement changing SIM PIN code flow
2021-04-08 13:55:26 +02:00
Piotr Tański
4f0c3c82af [EGD-6209] Tethering confirmation popup added
Provided a tethering confirmation popup.
The popup shows up once a USB cable is connected to a PC.
2021-04-08 09:26:46 +02:00
Pawel Olejniczak
4b35b13fe9 [EGD-4734] Add PIN settings window
This window displays switch button for
disabling/enabling pin code for sim card.
Its also starting point for changing pin code.
Added actions for enabling and disabling
pin code for sim card.
Added method for checking if pin code is
set for sim card.
2021-04-07 19:09:20 +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
tomaszkrosnowski
49de2d2c29 [EGD-6314] Phone mode widget visibility
Phone mode widget will be visible only on main screen, while entering
numbers or in emergency call mode. Also it will be disabled whenever NAT
widget is enabled.
2021-03-24 22:49:26 +01:00
tkros
1860bf210f [EGD-5744] Phone mode status bar widget
Added phone mode widget to top bar. The widget is mutually exclusive
with NAT widget. Phone mode is determined using phone mode observer.
2021-03-23 19:38:57 +01:00