/* 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 #include 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 mFiletypeMap; int mDurationSecs; }; #endif // EDITFILEDIALOG_H