Files

36 lines
567 B
C++
Raw Permalink Normal View History

#pragma once
2017-12-19 00:12:41 +01:00
2017-12-23 10:48:56 +01:00
#include <QLabel>
2017-12-19 00:12:41 +01:00
#include <QDate>
#include <QUrl>
2017-12-19 00:17:48 +01:00
#include "replies/getreportreply.h"
2017-12-19 00:12:41 +01:00
class QAction;
class MainWindow;
2017-12-23 10:48:56 +01:00
class ReportsWidget : public QLabel
2017-12-19 00:12:41 +01:00
{
Q_OBJECT
public:
explicit ReportsWidget(MainWindow &mainWindow);
private Q_SLOTS:
void dateChanged(const QDate &date);
void refresh();
void finished();
void openReport();
private:
MainWindow &m_mainWindow;
QAction *m_actionOpenReport;
QAction *m_actionRefreshReport;
QDate m_date;
QUrl m_url;
2017-12-19 00:17:48 +01:00
std::unique_ptr<GetReportReply> m_reply;
2017-12-19 00:12:41 +01:00
};