Files
MuditaOS/module-gui/gui/SwitchData.hpp
2019-09-18 14:02:21 +02:00

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_ */