#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "m3u8d.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_RunDownload_clicked();

    void on_pushButton_SaveDir_clicked();

    void on_pushButton_StopDownload_clicked();

    void on_pushButton_curlMode_clicked();

    void on_lineEdit_M3u8Url_textChanged(const QString &arg1);

private:
    Ui::MainWindow *ui;
    RunOnUiThread m_syncUi;
    std::map<std::string, std::vector<std::string>> m_HeaderMap;
};

#endif // MAINWINDOW_H
