2016-07-19 11:21:29 +08:00
|
|
|
#ifndef DISKCONTROLWIDGET_H
|
|
|
|
#define DISKCONTROLWIDGET_H
|
|
|
|
|
|
|
|
#include "dbus/dbusdiskmount.h"
|
|
|
|
|
2016-07-19 15:08:16 +08:00
|
|
|
#include <QScrollArea>
|
2016-07-20 15:43:12 +08:00
|
|
|
#include <QVBoxLayout>
|
2016-07-19 11:21:29 +08:00
|
|
|
|
2016-07-19 15:08:16 +08:00
|
|
|
class DiskControlWidget : public QScrollArea
|
2016-07-19 11:21:29 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DiskControlWidget(QWidget *parent = 0);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void diskCountChanged(const int count) const;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void diskListChanged();
|
2016-07-20 16:30:56 +08:00
|
|
|
void unmountDisk(const QString &diskId) const;
|
2016-08-04 16:02:40 +08:00
|
|
|
void unmountFinished(const QString &uuid, const QString &info);
|
2016-07-19 11:21:29 +08:00
|
|
|
|
|
|
|
private:
|
2016-07-20 15:43:12 +08:00
|
|
|
QVBoxLayout *m_centeralLayout;
|
|
|
|
QWidget *m_centeralWidget;
|
2016-07-19 11:21:29 +08:00
|
|
|
DBusDiskMount *m_diskInter;
|
|
|
|
|
|
|
|
DiskInfoList m_diskInfoList;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISKCONTROLWIDGET_H
|