renamed impl to detail
This commit is contained in:
57
FlippR-Driver/src/output/items/detail/Sound.h
Normal file
57
FlippR-Driver/src/output/items/detail/Sound.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Sound.h
|
||||
*
|
||||
* Created on: Aug 2, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef _SRC_OUTPUT_SOUND_H_
|
||||
#define _SRC_OUTPUT_SOUND_H_
|
||||
|
||||
#include "output/items/Sound.h"
|
||||
#include "Item.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
#include <future>
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class SoundBoardPinController;
|
||||
|
||||
namespace items
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class Sound : public Item, public items::Sound
|
||||
{
|
||||
public:
|
||||
u_int id;
|
||||
|
||||
public:
|
||||
Sound(std::shared_ptr<SoundBoardPinController> pin_controller, uint8_t address, std::string name, std::chrono::milliseconds deactivation_time, u_int id);
|
||||
~Sound() override = default;
|
||||
|
||||
void play() override;
|
||||
|
||||
private:
|
||||
const std::chrono::milliseconds deactivation_time;
|
||||
|
||||
const std::shared_ptr<SoundBoardPinController> pin_controller;
|
||||
|
||||
std::future<void> play_task;
|
||||
|
||||
private:
|
||||
virtual void playTask();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} /* namespace output */
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user