mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 16:38:31 -04:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/*
|
|
* @file ApplicationSesttings.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 8 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_APPLICATION_SETTINGS_APPLICATIONSETTINGS_HPP_
|
|
#define MODULE_APPS_APPLICATION_SETTINGS_APPLICATIONSETTINGS_HPP_
|
|
|
|
#include "Application.hpp"
|
|
|
|
namespace app {
|
|
|
|
/*
|
|
*
|
|
*/
|
|
class ApplicationSettings: public app::Application {
|
|
public:
|
|
ApplicationSettings( std::string name="ApplicationSettings");
|
|
virtual ~ApplicationSettings();
|
|
sys::Message_t DataReceivedHandler(sys::DataMessage* msgl) override;
|
|
sys::ReturnCodes InitHandler() override;
|
|
sys::ReturnCodes DeinitHandler() override;
|
|
sys::ReturnCodes WakeUpHandler() override;
|
|
sys::ReturnCodes SleepHandler() override;
|
|
|
|
void createUserInterface() ;
|
|
void destroyUserInterface();
|
|
};
|
|
|
|
class ApplicationSettingsLauncher : public ApplicationLauncher {
|
|
public:
|
|
ApplicationSettingsLauncher() : ApplicationLauncher("ApplicationSettings", true) {};
|
|
bool run(sys::SystemManager* sysmgr) override {
|
|
return sysmgr->CreateService(std::make_shared<ApplicationSettings>(name),sysmgr, 1000);
|
|
};
|
|
};
|
|
|
|
} /* namespace app */
|
|
|
|
#endif /* MODULE_APPS_APPLICATION_SETTINGS_APPLICATIONSETTINGS_HPP_ */
|