mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Removed bootsequence library
Former-commit-id: 5f3f927236a26ae00299a8e7a914e98ace3b328a
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
///
|
||||
/// Pure virtual base class (or interface) for boot sequences. A BootSequence is started after the
|
||||
/// Hyperion deamon is started to demonstrate the proper functioninf of the attached leds (and lets
|
||||
/// face it because it is cool)
|
||||
///
|
||||
class BootSequence
|
||||
{
|
||||
public:
|
||||
|
||||
///
|
||||
/// Empty virtual destructor for abstract base class
|
||||
///
|
||||
virtual ~BootSequence()
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
///
|
||||
/// Starts the boot sequence writing one or more colors to the attached leds
|
||||
///
|
||||
virtual void start() = 0;
|
||||
};
|
@@ -1,29 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
// Jsoncpp includes
|
||||
#include <json/json.h>
|
||||
|
||||
// Bootsequence includes
|
||||
#include <bootsequence/BootSequence.h>
|
||||
|
||||
// Hyperion includes
|
||||
#include <hyperion/Hyperion.h>
|
||||
|
||||
///
|
||||
/// Factory for settings based construction of a boot-sequence
|
||||
///
|
||||
class BootSequenceFactory
|
||||
{
|
||||
public:
|
||||
|
||||
///
|
||||
/// Creates a BootSequence using the given configuration (and Hyperion connection). Ownship of
|
||||
/// the returned instance is transferred
|
||||
///
|
||||
/// @param[in] hyperion The Hyperion controlling the leds
|
||||
/// @param[in] jsonConfig The boot-sequence configuration
|
||||
///
|
||||
/// @return The bootsequence (ownership is transferred to the caller
|
||||
///
|
||||
static BootSequence * createBootSequence(Hyperion * hyperion, const Json::Value & jsonConfig);
|
||||
};
|
Reference in New Issue
Block a user