mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
committed by
GitHub
parent
45bd23ca5c
commit
9475b93d9f
@@ -47,6 +47,25 @@ Effect::~Effect()
|
||||
_imageStack.clear();
|
||||
}
|
||||
|
||||
bool Effect::isInterruptionRequested()
|
||||
{
|
||||
return _interupt || getRemaining() < 0;
|
||||
}
|
||||
|
||||
int Effect::getRemaining()
|
||||
{
|
||||
// determine the timeout
|
||||
int timeout = _timeout;
|
||||
|
||||
if (timeout > 0)
|
||||
{
|
||||
timeout = _endTime - QDateTime::currentMSecsSinceEpoch();
|
||||
return timeout;
|
||||
}
|
||||
|
||||
return timeout;
|
||||
}
|
||||
|
||||
void Effect::setModuleParameters()
|
||||
{
|
||||
// import the buildtin Hyperion module
|
||||
|
Reference in New Issue
Block a user