diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-12 15:10:41 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-12 15:47:36 -0400 |
| commit | ebbc900755b09862be95d29d2a02b8abd1792a3a (patch) | |
| tree | 0b49cd9669e62cf04c6489d341a53eb0679d120d /src/statusbar.h | |
| parent | 853c95b921f4fc3beb8daf71d79b44aa1ab06c92 (diff) | |
added a few helper classes for user accounts and stats
moved the api label to the status bar
refactored a bunch of copy/pasted code in NexusInterface to use shouldThrottle() and throttledWarning()
Diffstat (limited to 'src/statusbar.h')
| -rw-r--r-- | src/statusbar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/statusbar.h b/src/statusbar.h index f3ad3081..47a0e56d 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -4,12 +4,18 @@ #include <QStatusBar> #include <QProgressBar> +struct APIStats; +class APIUserAccount; +class Settings; + class StatusBar { public: StatusBar(QStatusBar* bar); void setProgress(int percent); + void updateAPI(const APIStats& stats, const APIUserAccount& user); + void checkSettings(const Settings& settings); private: QStatusBar* m_bar; |
