summaryrefslogtreecommitdiffstats
path: root/editfiledialog.h
blob: e4f91aea3aac242c6663e2191d3bae12e409d130 (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
29
30
31
32
33
34
35
36
37
38
/*
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version
  2 of the License, or (at your option) any later version.
*/

#ifndef EDITFILEDIALOG_H
#define EDITFILEDIALOG_H

#include <QDialog>
#include <QHash>

class QLineEdit;
class QComboBox;

class EditFileDialog : public QDialog {
    Q_OBJECT
    public:
        explicit EditFileDialog(QWidget *parent = nullptr);
        void initDlg(QString md5sum, QString fullPath);

    public slots:
        virtual void accept();

    private:
        void setupGui();
        QLineEdit *mFileName;
        QLineEdit *mMd5Sum;
        QLineEdit *mDvdNo;
        QLineEdit *mQuality;
        QLineEdit *mDuration;
        QComboBox *mFileType;
        QHash<int, QString> mFiletypeMap;
        int mDurationSecs;
};

#endif // EDITFILEDIALOG_H