-
Notifications
You must be signed in to change notification settings - Fork 1
/
dircardproxy.h
37 lines (30 loc) · 998 Bytes
/
dircardproxy.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
#ifndef DIRCARDPROXY_H
#define DIRCARDPROXY_H
#include <QMap>
#include <QWidget>
class DirCard;
class QVBoxLayout;
class DirCardProxy : public QWidget {
Q_OBJECT
public:
explicit DirCardProxy(QWidget *parent = nullptr);
~DirCardProxy() override;
void addDirCard(DirCard *card, const int &id);
void addDirCard(QString filename,QString cloudname,quint64 datasize,QString bindtime,int syncStatus,const int &id);
void removeDirCard(const int &id);
void removeChecked();
void removeAll();
void modifyDirCard(quint64 datasize,QString bindtime,int id);
QVBoxLayout*filesLayout;
friend class DirCard;
private:
QMap<int, DirCard*> cardMap;
QWidget *parentWidget;
friend class FileManagePage;
signals:
void checkBoxToggled(bool checked); // 当DirCard中的复选框被勾选时发出的信号
void removeCard();
private slots:
void onCheckBoxStateChanged(int state); // 处理复选框状态变化的槽
};
#endif // DIRCARDPROXY_H