compiling but strange need to talk

This commit is contained in:
Jonas Zeunert
2018-12-11 12:11:43 +01:00
parent b0d649018e
commit 3103fb77c7
7 changed files with 70 additions and 10 deletions

View File

@@ -0,0 +1,29 @@
//
// Created by rhetenor on 23.11.18.
//
#ifndef FLIPPR_DRIVER_IDRIVERBOARDITEM_H
#define FLIPPR_DRIVER_IDRIVERBOARDITEM_H
#include "output/items/IItem.h"
#include <cstdint>
namespace flippR_driver
{
namespace output
{
namespace items
{
class IDriverBoardItem : public IItem
{
public:
~IDriverBoardItem() override = default;
};
}
}
}
#endif //FLIPPR_DRIVER_IDRIVERBOARDITEM_H

View File

@@ -0,0 +1,26 @@
//
// Created by rhetenor on 23.11.18.
//
#ifndef FLIPPR_DRIVER_ISOUNDITEM_H
#define FLIPPR_DRIVER_ISOUNDITEM_H
#include "IItem.h"
namespace flippR_driver
{
namespace output
{
namespace items
{
class ISoundItem : public IItem
{
public:
~ISoundItem() override = default;
};
}
}
}
#endif //FLIPPR_DRIVER_ISOUNDITEM_H

View File

@@ -9,6 +9,8 @@
#define _SRC_OUTPUT_SOUND_H_
#include "output/items/ISound.h"
#include "output/items/ISoundItem.h"
#include "Item.h"
#include <memory>
@@ -24,7 +26,7 @@ namespace output
namespace items
{
class Sound : public ISound, public Item
class Sound : public ISound, public Item, public ISoundItem
{
public:
u_int id;
@@ -33,6 +35,9 @@ public:
Sound(std::shared_ptr<IOutputGPIOInterface> output_gpio_interface, uint8_t address, std::string name, std::chrono::milliseconds deactivation_time, u_int id);
~Sound() override = default;
std::string get_name() override;
uint8_t get_address() override;
void play() override;
private: