-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
41 lines (33 loc) · 972 Bytes
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <DMainWindow>
#include <ddialog.h>
#include "currentdevicemanager.h"
DWIDGET_USE_NAMESPACE
class MainWindow : public DMainWindow
{
Q_OBJECT
public:
explicit MainWindow(DMainWindow *parent = 0);
~MainWindow();
private:
DDialog *m_dialogNewDeviceStateInvalid;
DDialog *m_dialogDetectDeviceFailed;
DDialog *m_dialogDeviceMountFailed;
DDialog *m_dialogMountProcessExecFailed;
DDialog *m_dialogUnmountProcessExecFailed;
DDialog *m_dialogFindFiles;
DDialog *m_dialogFilesDeleteFailed;
private:
void initDialogs();
private slots:
void onNewDeviceStateInvalid();
void onDetectDeviceFailed();
void onDeviceMountFailed(QString why);
void onMountProcessExecFailed();
void onUnMountProcessExecFailed();
void showFindFilesDialog();
void dismissFindFilesDialog();
void onMusicFilesDeletedFailed(QStringList failedFilesPath);
};
#endif // MAINWINDOW_H