mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
refactoring and cleanup (#2)
* make hyperion to singelton. remove arguments for config and hyperion - both are gettable via Hyperion::getInstance * refactor hyperiond * remove qt4 comapt make zeroconf mandatory refactor hyperiond * xbmcchecker is now a singleton * cleanup in hyperiond zeroconf switchable between static and shared linking * fix xbmcchecker
This commit is contained in:
@@ -62,18 +62,15 @@ public:
|
||||
SATURATION_GAIN, VALUE_GAIN, THRESHOLD, GAMMA, BLACKLEVEL, WHITELEVEL
|
||||
};
|
||||
|
||||
///
|
||||
/// Constructs the Hyperion instance based on the given Json configuration
|
||||
///
|
||||
/// @param[in] jsonConfig The Json configuration
|
||||
///
|
||||
Hyperion(const Json::Value& jsonConfig, const std::string configFile);
|
||||
|
||||
///
|
||||
/// Destructor; cleans up resourcess
|
||||
///
|
||||
~Hyperion();
|
||||
|
||||
|
||||
static Hyperion* initInstance(const Json::Value& jsonConfig, const std::string configFile);
|
||||
static Hyperion* getInstance();
|
||||
|
||||
///
|
||||
/// Returns the number of attached leds
|
||||
///
|
||||
@@ -228,6 +225,8 @@ public slots:
|
||||
int setEffect(const std::string & effectName, const Json::Value & args, int priority, int timeout = -1);
|
||||
|
||||
public:
|
||||
static Hyperion *_hyperion;
|
||||
|
||||
static ColorOrder createColorOrder(const Json::Value & deviceConfig);
|
||||
/**
|
||||
* Construct the 'led-string' with the integration area definition per led and the color
|
||||
@@ -271,6 +270,14 @@ private slots:
|
||||
void update();
|
||||
|
||||
private:
|
||||
|
||||
///
|
||||
/// Constructs the Hyperion instance based on the given Json configuration
|
||||
///
|
||||
/// @param[in] jsonConfig The Json configuration
|
||||
///
|
||||
Hyperion(const Json::Value& jsonConfig, const std::string configFile);
|
||||
|
||||
/// The specifiation of the led frame construction and picture integration
|
||||
LedString _ledString;
|
||||
|
||||
|
Reference in New Issue
Block a user