6 #ifndef SWIFT_GUI_COMPONENTS_DBLOADOVERVIEWCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBLOADOVERVIEWCOMPONENT_H
10 #include <QScopedPointer>
19 class CDbLoadOverviewComponent;
41 void showVisibleDbRefreshButtons(
bool visible);
44 void showVisibleSharedRefreshButtons(
bool visible);
47 void showVisibleLoadAllButtons(
bool shared,
bool db,
bool disk);
53 void loadAllFromShared();
56 void loadAllFromResourceFiles();
63 virtual void resizeEvent(QResizeEvent *event)
override;
66 QScopedPointer<Ui::CDbLoadOverviewComponent> ui;
68 std::chrono::milliseconds(2500), 5 };
69 qint64 m_sharedLastCheck = -1;
70 bool m_sharedValueCheckInProgress =
false;
72 const QString m_imgOk =
":/diagona/icons/diagona/icons/tick.png";
73 const QString m_imgFailed =
":/diagona/icons/diagona/icons/cross-script.png";
76 void triggerLoadingFromDb(swift::misc::network::CEntityFlags::Entity entities);
79 void triggerLoadingFromSharedFiles(swift::misc::network::CEntityFlags::Entity entities);
82 bool isInitialized()
const;
85 void refreshDbPressed();
88 void refreshSharedPressed();
94 void setSharedUrlValues();
97 void dataLoaded(swift::misc::network::CEntityFlags::Entity entities,
101 void loadInfoObjects();
104 void adjustTextWidth();
107 static QString formattedTimestamp(
const QDateTime &dateTime);
110 static QString cacheTimestampForEntity(swift::misc::network::CEntityFlags::Entity entity);
113 static QString cacheCountForEntity(swift::misc::network::CEntityFlags::Entity entity);
116 static QString dbTimestampForEntity(swift::misc::network::CEntityFlags::Entity entity);
119 static QString dbCountForEntity(swift::misc::network::CEntityFlags::Entity entity);
122 static QString sharedFileTimestampForEntity(swift::misc::network::CEntityFlags::Entity entity);
125 static QString sharedCountForEntity(swift::misc::network::CEntityFlags::Entity entity);
128 static void admitCaches();
Enable widget class for load indicator.
Overview about load state of DB data.
bool isLoadInProgress() const
Is loading in progress.
Receive 1..n signals, collect them over time, and resend afer n milliseconds.
ReadState
State of operation.
High level reusable GUI components.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.