summaryrefslogtreecommitdiffstats
path: root/app_manager.cpp
Commit message (Collapse)AuthorAge
* Remove all references to render interval methodsBaseApp-classConfuSomu2021-08-14
| | | | | The main loop was reordered for a little optimisation as we cannot set free standingly(?) anymore the render interval to 0.
* Clear display when app is quit via return valueConfuSomu2021-08-11
| | | | The display was not correctly cleared before.
* Allow apps to close and quit themselves via returnConfuSomu2021-08-11
| | | | | | | | | value when returning from render(), btnpressed() or bgrefresh(). This can help free system ressources when apps do not need to be running anymore. The AppAttributes::destroy_on_exit is currently ignored to give apps more freedom. The main_clock app has had some changes done to test the new features.
* Remove one check used to see if app is already initConfuSomu2021-08-11
| | | | | | | There is already another check done in app_mgr::app_init(). Checking also in app_mgr::app_switch() is redundant. I am not sure if the verification should instead be done in app_switch(). I can move it later if required.
* Check if new fails when creating appConfuSomu2021-08-05
|
* Rename current_app to foreground_appConfuSomu2021-08-05
| | | | | This is a more descriptive name as there could be multiple apps that are currently open, or on-screen, such as a system UI or a status bar.
* Move app manager functions to a namespaceConfuSomu2021-08-05
| | | | This helps with compartmentalisation and organisation.
* Clean up app_manager and correctly clear the OLEDConfuSomu2021-08-01
| | | | when switching app.
* Transition app_settings to BaseApp classConfuSomu2021-08-01
| | | | | This change allows app_settings to be used under the new app architecture.
* Move function documentation to header fileConfuSomu2021-08-01
|
* Move bgrefresh of each app to app_manager functionConfuSomu2021-08-01
|
* Implement virtual getter for app attributesConfuSomu2021-08-01
| | | | | This is done to allow each app to be able to set their own app attributes without having them be overshadowed by BaseApp's defaults.
* Implement an app_manager that supports BaseAppConfuSomu2021-07-25
| | | | | | | | | and create classes for home_menu and main_clock apps. This commit has a lot of changes as multiple parts of the project had to be changed to support running apps that are based on the BaseApp class. It could not have been done in multiple commits as the progam would not be able to build and thus I would not be able to test the changes.
* Remove BaseApp ptr from open_apps after deleting itConfuSomu2021-06-25
|
* Move functions related to app lifecycle managmentConfuSomu2021-06-25
They have been moved to a new file, to provide better encapulation.