mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 23:29:58 +00:00
add socket activation for extensions (#118)
Option `X-AW-Socket` is used. Any message received by this socket will trigger extension update. If the option is set, `X-AW-Interval` will be ignored
This commit is contained in:
@ -30,6 +30,7 @@ CustomSource::CustomSource(QObject *parent, const QStringList args)
|
||||
|
||||
m_extScripts
|
||||
= new ExtItemAggregator<ExtScript>(nullptr, QString("scripts"));
|
||||
m_extScripts->initSockets();
|
||||
m_sources = getSources();
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ QuotesSource::QuotesSource(QObject *parent, const QStringList args)
|
||||
qCDebug(LOG_ESS) << __PRETTY_FUNCTION__;
|
||||
|
||||
m_extQuotes = new ExtItemAggregator<ExtQuotes>(nullptr, QString("quotes"));
|
||||
m_extQuotes->initSockets();
|
||||
m_sources = getSources();
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ RequestSource::RequestSource(QObject *parent, const QStringList args)
|
||||
|
||||
m_extNetRequest = new ExtItemAggregator<ExtNetworkRequest>(
|
||||
nullptr, QString("requests"));
|
||||
m_extNetRequest->initSockets();
|
||||
m_sources = getSources();
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ UpgradeSource::UpgradeSource(QObject *parent, const QStringList args)
|
||||
|
||||
m_extUpgrade
|
||||
= new ExtItemAggregator<ExtUpgrade>(nullptr, QString("upgrade"));
|
||||
m_extUpgrade->initSockets();
|
||||
m_sources = getSources();
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ WeatherSource::WeatherSource(QObject *parent, const QStringList args)
|
||||
|
||||
m_extWeather
|
||||
= new ExtItemAggregator<ExtWeather>(nullptr, QString("weather"));
|
||||
m_extWeather->initSockets();
|
||||
m_sources = getSources();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user