Files
DbZeiterfassung-exportplugin/exportdialog.h
T

44 lines
741 B
C++
Raw Normal View History

2018-11-16 22:01:13 +01:00
#pragma once
#include "zeiterfassungdialog.h"
2018-11-16 23:15:02 +01:00
// Qt includes
#include <QTextStream>
#include <QDate>
// system includes
#include <memory>
// forward declarations
class QFile;
2018-11-16 22:01:13 +01:00
namespace Ui { class ExportDialog; }
class MainWindow;
2018-11-16 23:15:02 +01:00
class GetBookingsReply;
2018-11-16 22:01:13 +01:00
class ExportDialog : public ZeiterfassungDialog
{
Q_OBJECT
public:
explicit ExportDialog(MainWindow &mainWindow, QWidget *parent = Q_NULLPTR);
~ExportDialog();
2018-11-16 23:15:02 +01:00
private Q_SLOTS:
void start();
void requestFinished();
2018-11-16 22:01:13 +01:00
private:
2018-11-16 23:15:02 +01:00
void nextDate();
2018-11-16 22:01:13 +01:00
Ui::ExportDialog *ui;
MainWindow &m_mainWindow;
2018-11-16 23:15:02 +01:00
std::unique_ptr<QFile> m_file;
QTextStream m_textStream;
QDate m_date;
QDate m_toDate;
std::unique_ptr<GetBookingsReply> m_reply;
2018-11-16 22:01:13 +01:00
};