mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T164, show (by LED) when consolidating data
* added LED in info bar * signal in background updater and * connecting them
This commit is contained in:
@@ -45,6 +45,7 @@ namespace BlackCore
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
m_inWork = true;
|
||||
|
||||
emit this->consolidating(true);
|
||||
const int cycle = m_cycle;
|
||||
switch (cycle)
|
||||
{
|
||||
@@ -72,6 +73,7 @@ namespace BlackCore
|
||||
}
|
||||
++m_cycle %= 5;
|
||||
m_inWork = false;
|
||||
emit this->consolidating(false);
|
||||
}
|
||||
|
||||
void CBackgroundDataUpdater::triggerInfoReads()
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace BlackCore
|
||||
*/
|
||||
class BLACKCORE_EXPORT CBackgroundDataUpdater : public BlackMisc::CContinuousWorker
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Log categories
|
||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||
@@ -35,6 +37,10 @@ namespace BlackCore
|
||||
//! Constructor
|
||||
CBackgroundDataUpdater(QObject *owner);
|
||||
|
||||
signals:
|
||||
//! Consolidation
|
||||
void consolidating(bool started);
|
||||
|
||||
private:
|
||||
int m_cycle = 0; //!< cycle
|
||||
bool m_inWork = false; //!< indicates a running update
|
||||
|
||||
Reference in New Issue
Block a user