removed sounditem

This commit is contained in:
Jonas Zeunert
2018-12-11 14:55:57 +01:00
parent 336267b7cf
commit f1bb186faa
7 changed files with 10 additions and 39 deletions

View File

@@ -17,7 +17,7 @@ namespace items
{
Sound::Sound(std::shared_ptr<IOutputGPIOInterface> output_gpio_interface, uint8_t address, std::string name, std::chrono::milliseconds deactivation_time, u_int id) :
SoundItem(std::move(output_gpio_interface), address, std::move(name)), deactivation_time(deactivation_time), id(id)
Item(std::move(output_gpio_interface), address, std::move(name)), deactivation_time(deactivation_time), id(id)
{}
void Sound::play()

View File

@@ -9,7 +9,7 @@
#define _SRC_OUTPUT_SOUND_H_
#include "output/items/ISound.h"
#include "output/items/SoundItem.h"
#include "output/items/Item.h"
#include <memory>
#include <string>
@@ -23,7 +23,7 @@ namespace output
namespace items
{
class Sound : public SoundItem, public ISound
class Sound : public Item, public ISound
{
public:
u_int id;

View File

@@ -1,29 +0,0 @@
//
// Created by rhetenor on 23.11.18.
//
#ifndef FLIPPR_DRIVER_ISOUNDITEM_H
#define FLIPPR_DRIVER_ISOUNDITEM_H
#include "Item.h"
namespace flippR_driver
{
namespace output
{
namespace items
{
class SoundItem : public Item
{
public:
SoundItem(std::shared_ptr<IOutputGPIOInterface> output_gpio_interface, uint8_t address, std::string name) :
Item(std::move(output_gpio_interface), address, std::move(name)) {}
~SoundItem() override = default;
};
}
}
}
#endif //FLIPPR_DRIVER_ISOUNDITEM_H