forked from acoustid/acoustid-fingerprinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogressdialog.h
44 lines (36 loc) · 970 Bytes
/
progressdialog.h
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
#ifndef FPSUBMIT_PROGRESSDIALOG_H_
#define FPSUBMIT_PROGRESSDIALOG_H_
#include <QDialog>
#include <QProgressBar>
#include <QLabel>
#include "fingerprinter.h"
class ProgressDialog : public QDialog
{
Q_OBJECT
public:
ProgressDialog(QWidget *parent, Fingerprinter *fingerprinter);
~ProgressDialog();
public slots:
void setProgress(int value);
void togglePause(bool);
void stop();
void onFileListLoadingStarted();
void onFingerprintingStarted(int count);
void onCurrentPathChanged(const QString &path);
void onFinished();
void onNetworkError(const QString &message);
void onAuthenticationError();
void onNoFilesError();
protected:
void closeEvent(QCloseEvent *event);
private:
void setupUi();
Fingerprinter *m_fingerprinter;
QPushButton *m_closeButton;
QPushButton *m_pauseButton;
QPushButton *m_stopButton;
QProgressBar *m_progressBar;
QLabel *m_mainStatusLabel;
QLabel *m_currentPathLabel;
};
#endif