From 87a208d305198c97e7665445ece26e7ca90315d4 Mon Sep 17 00:00:00 2001 From: Anika Raemer Date: Sun, 14 Mar 2021 14:48:34 +0100 Subject: [PATCH] update todos --- LenaPi/EnergySaver.cpp | 1 - LenaPi/main.cpp | 23 ++++++++--------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/LenaPi/EnergySaver.cpp b/LenaPi/EnergySaver.cpp index b3d97e7..bedfaf7 100644 --- a/LenaPi/EnergySaver.cpp +++ b/LenaPi/EnergySaver.cpp @@ -59,7 +59,6 @@ void EnergySaver::initTimer(int interval) /** * @brief Behavior on timeout: shut down RaspberryPi. - * @todo Call shutdown script. */ void EnergySaver::onTimeout() { diff --git a/LenaPi/main.cpp b/LenaPi/main.cpp index 5d7e419..51fd337 100644 --- a/LenaPi/main.cpp +++ b/LenaPi/main.cpp @@ -7,25 +7,18 @@ int main(int argc, char *argv[]) { /** - * @todo To add an image viewer: - * - introduce an image context in qml -> can be switched via toggle buttons in each view - * - introduce NavigationControllerBase with all basic functions of the current NavigationController - * - derive MusicNavigationController and ImageNavigatioController - * - NavigationController than holds instances of UiStateModel, ImageNavigationController and - * MusicNavigationController. - * - connect toggle buttons to UiStateModel - * - * Aim: - * - Add an imageViewer but allow listening to Music while using it. - * - When modifying music keep state of image viewer, keep state of player when switching to - * imageViewer -> musicPlayer and imageViewer are independent parts of this software! - * USE SEPARATE BRANCH FOR DEVELOPMENT! + * @todo Add command line parser + * https://doc.qt.io/qt-5/qcommandlineparser.html + * - set root path by commandline option + * - set mode via commandline option + * -- RasPi -> no volumeControl or exit Button + * -- Desktop -> volumeControl and exit Button + * -- in future probably also MobileApp + * - set energy saver timeout */ QGuiApplication app(argc, argv); QQmlApplicationEngine engine; - /// @todo add config parser to determine root path. - /// @todo add reaction to system signal reload config. NavigationController navController; navController.setContext(engine.rootContext()); navController.init("/home/ar/source/lenaMusic/");