blob: cc36c412d404649b2457a8c810e82375bce0f09d (
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 WEATHERMANAGER_H
#define WEATHERMANAGER_H
#include <QtCore/QFileSystemWatcher>
#include <QtGui/QImage>
#include "toqmanager.h"
class WeatherManager : public QObject
{
Q_OBJECT
public:
explicit WeatherManager(FmsManager *fms, ToqManager *toq);
private:
QImage constructImage(const QJsonObject &obj);
private slots:
void doRefresh();
private:
ToqManager *_toq;
FmsManager *_fms;
QString _file;
QFileSystemWatcher *_watcher;
QTimer *_refreshTimer;
};
#endif // WEATHERMANAGER_H
|