-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebdavconfigdialog.h
More file actions
48 lines (36 loc) · 1.1 KB
/
webdavconfigdialog.h
File metadata and controls
48 lines (36 loc) · 1.1 KB
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
#ifndef WEBDAVCONFIGDIALOG_H
#define WEBDAVCONFIGDIALOG_H
#include <QDialog>
#include <QMessageBox>
#include "webdavsyncmanager.h"
namespace Ui {
class WebDAVConfigDialog;
}
class WebDAVConfigDialog : public QDialog
{
Q_OBJECT
public:
explicit WebDAVConfigDialog(QWidget *parent = nullptr);
~WebDAVConfigDialog();
// 设置同步管理器
void setSyncManager(WebDAVSyncManager *syncManager);
private slots:
void accept() override;
void onTestConnection();
void onSyncNowClicked();
void updateSyncDirectionFromUI();
void updateUIFromSettings();
// WebDAVSyncManager信号处理槽
void onSyncStatusChanged(WebDAVSyncManager::SyncStatus status);
void onSyncProgress(int percent, const QString &message);
void onSyncFinished(bool success);
void onSyncError(const QString &error);
private:
Ui::WebDAVConfigDialog *ui;
WebDAVSyncManager *m_syncManager;
// 测试连接或同步时禁用界面
void setUIEnabled(bool enabled);
// 更新同步状态UI
void updateSyncStatusUI();
};
#endif // WEBDAVCONFIGDIALOG_H