45 lines
741 B
C++
45 lines
741 B
C++
#pragma once
|
|
|
|
#include "zeiterfassungdialog.h"
|
|
|
|
// Qt includes
|
|
#include <QTextStream>
|
|
#include <QDate>
|
|
|
|
// system includes
|
|
#include <memory>
|
|
|
|
// forward declarations
|
|
class QFile;
|
|
|
|
namespace Ui { class ExportDialog; }
|
|
class MainWindow;
|
|
class GetBookingsReply;
|
|
|
|
class ExportDialog : public ZeiterfassungDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExportDialog(MainWindow &mainWindow, QWidget *parent = Q_NULLPTR);
|
|
~ExportDialog();
|
|
|
|
private Q_SLOTS:
|
|
void start();
|
|
void requestFinished();
|
|
|
|
private:
|
|
void nextDate();
|
|
|
|
Ui::ExportDialog *ui;
|
|
|
|
MainWindow &m_mainWindow;
|
|
|
|
std::unique_ptr<QFile> m_file;
|
|
QTextStream m_textStream;
|
|
QDate m_date;
|
|
QDate m_toDate;
|
|
|
|
std::unique_ptr<GetBookingsReply> m_reply;
|
|
};
|