1 #ifndef ENCODINGDETECTDIALOG_H
2 #define ENCODINGDETECTDIALOG_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7 class EncodingDetectDialog;
8 }
9 
10 namespace SubtitleComposer {
11 class EncodingDetectDialog : public QDialog
12 {
13 	Q_OBJECT
14 
15 public:
16 	explicit EncodingDetectDialog(const QByteArray &text, QWidget *parent = nullptr);
17 	~EncodingDetectDialog();
18 
19 	void addEncoding(const QString &name, int confidence);
selectedEncoding()20 	inline const QString & selectedEncoding() { return m_selectedEncoding; }
21 
22 private:
23 	Ui::EncodingDetectDialog *ui;
24 	QByteArray m_text;
25 	QString m_selectedEncoding;
26 };
27 }
28 
29 #endif // ENCODINGDETECTDIALOG_H
30