mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-05 05:37:25 -04:00
30 lines
748 B
C++
30 lines
748 B
C++
/*
|
|
* @file SwitchData.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 15 cze 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_SWITCHDATA_HPP_
|
|
#define MODULE_APPS_SWITCHDATA_HPP_
|
|
|
|
namespace gui {
|
|
|
|
//class template that stores information that was sent along with switch message
|
|
class SwitchData {
|
|
protected:
|
|
std::string description = "";
|
|
public:
|
|
|
|
SwitchData() {};
|
|
SwitchData( std::string description ) : description{description} {};
|
|
virtual ~SwitchData() {};
|
|
virtual const std::string& getDescription() { return description; };
|
|
virtual void setDescription( const std::string desc ) { description = desc; };
|
|
};
|
|
|
|
} /* namespace gui */
|
|
|
|
#endif /* MODULE_APPS_SWITCHDATA_HPP_ */
|