summaryrefslogtreecommitdiff
path: root/src/statusbar.h
blob: bf14ba5785b1c1bda49755c066d1ba8d628d8fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef MO_STATUSBAR_H
#define MO_STATUSBAR_H

#include <QStatusBar>
#include <QProgressBar>

struct APIStats;
class APIUserAccount;
class Settings;

class StatusBar
{
public:
  StatusBar(QStatusBar* bar, QAction* notifications);

  void setProgress(int percent);
  void setHasNotifications(bool b);
  void updateAPI(const APIStats& stats, const APIUserAccount& user);
  void checkSettings(const Settings& settings);

private:
  QStatusBar* m_bar;
  QProgressBar* m_progress;
  QToolButton* m_notifications;
  QLabel* m_api;
};

#endif // MO_STATUSBAR_H