Ref T489, display read state in model component for livery, airline, aircraft

* similar to model component
* distributor/countries too few data to benefit, hence not implemented
This commit is contained in:
Klaus Basan
2018-12-29 10:02:02 +01:00
committed by Mat Sutcliffe
parent ea7694248e
commit e810dfecf5
6 changed files with 75 additions and 21 deletions

View File

@@ -12,19 +12,18 @@
#ifndef BLACKGUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
#define BLACKGUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
#include "blackgui/blackguiexport.h"
#include "blackgui/components/enablefordockwidgetinfoarea.h"
#include "blackgui/overlaymessagesframe.h"
#include "blackgui/enableforviewbasedindicator.h"
#include "blackgui/blackguiexport.h"
#include "blackmisc/network/entityflags.h"
#include <QFrame>
#include <QObject>
#include <QScopedPointer>
class QWidget;
namespace BlackMisc { namespace Aviation { class CAircraftIcaoCode; } }
namespace Ui { class CDbAircraftIcaoComponent; }
namespace BlackMisc { namespace Aviation { class CAircraftIcaoCode; } }
namespace BlackGui
{
namespace Views { class CAircraftIcaoCodeView; }
@@ -34,7 +33,7 @@ namespace BlackGui
* DB aircraft ICAO data
*/
class BLACKGUI_EXPORT CDbAircraftIcaoComponent :
public QFrame,
public COverlayMessagesFrame,
public CEnableForDockWidgetInfoArea,
public CEnableForViewBasedIndicator
{
@@ -50,7 +49,6 @@ namespace BlackGui
//! Get the view
BlackGui::Views::CAircraftIcaoCodeView *view() const;
public slots:
//! Filter by ICAO as default
void filter(const BlackMisc::Aviation::CAircraftIcaoCode &icao);
@@ -58,6 +56,9 @@ namespace BlackGui
//! ICAO codes have been read
void onIcaoRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
//! Download progress for an entity
void onEntityDownloadProgress(BlackMisc::Network::CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url);
//! Reload models
void onReload();