blob: eba4824e6db8576d58d6af7c5003fbb39de46f02 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*
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 ARCHIVEEDITDIALOG_H
#define ARCHIVEEDITDIALOG_H
#include <QDialog>
#include <QDirModel>
class ArchiveFileWidget;
class ListEditor;
class CoverEditor;
class ListModel;
class MovieModel;
class QPushButton;
class CoverItem;
class ListModel;
class ArchiveEditDialog : public QDialog {
Q_OBJECT
public:
ArchiveEditDialog(ListModel *genre, ListModel *actors, QWidget *parent = 0, Qt::WindowFlags f = 0);
~ArchiveEditDialog() {};
void setFiles(const QStringList &files);
void setMovieModel(MovieModel *model) { mMovieModel = model; };
private slots:
void archive();
void guess();
private:
bool checkInput(int genre, const QList<int> &actors, const QStringList &files, const QString &title, const QString &movie, int quality);
bool checkMd5(const QHash<QString, QString> &md5sums, const QStringList &files);
const CoverItem coverItem(const QString &filePath, const QString type, const QString &md5) const;
ArchiveFileWidget *mFileWidget;
ListEditor *mGenreEditor;
ListEditor *mActorsEditor;
CoverEditor *mCoverEditor;
ListModel *mGenreModel;
ListModel *mActorsModel;
MovieModel *mMovieModel;
QDirModel *mDirModel;
QPushButton *mGuess;
QPushButton *mArchive;
QPushButton *mClose;
};
#endif
|