mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
implements disk unmount error interface
Change-Id: I2ad2f90c2b6cb4ea2c21ced85ea430f2531ac12c
This commit is contained in:
parent
42831a2c94
commit
3d39dc0b60
Notes:
Deepin Code Review
2016-08-04 08:13:49 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Thu, 04 Aug 2016 08:13:49 +0000 Reviewed-on: https://cr.deepin.io/14916 Project: dde/dde-dock Branch: refs/heads/master
@ -98,7 +98,7 @@ public Q_SLOTS: // METHODS
|
|||||||
|
|
||||||
Q_SIGNALS: // SIGNALS
|
Q_SIGNALS: // SIGNALS
|
||||||
void Changed(int in0, const QString &in1);
|
void Changed(int in0, const QString &in1);
|
||||||
void Error(const QString &in0, const QString &in1);
|
void Error(const QString &uuid, const QString &info);
|
||||||
// begin property changed signals
|
// begin property changed signals
|
||||||
void DiskListChanged();
|
void DiskListChanged();
|
||||||
};
|
};
|
||||||
|
@ -23,6 +23,7 @@ DiskControlWidget::DiskControlWidget(QWidget *parent)
|
|||||||
setStyleSheet("background-color:transparent;");
|
setStyleSheet("background-color:transparent;");
|
||||||
|
|
||||||
connect(m_diskInter, &DBusDiskMount::DiskListChanged, this, &DiskControlWidget::diskListChanged);
|
connect(m_diskInter, &DBusDiskMount::DiskListChanged, this, &DiskControlWidget::diskListChanged);
|
||||||
|
connect(m_diskInter, &DBusDiskMount::Error, this, &DiskControlWidget::unmountFinished);
|
||||||
|
|
||||||
QMetaObject::invokeMethod(this, "diskListChanged", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, "diskListChanged", Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
@ -65,3 +66,8 @@ void DiskControlWidget::unmountDisk(const QString &diskId) const
|
|||||||
{
|
{
|
||||||
m_diskInter->Unmount(diskId);
|
m_diskInter->Unmount(diskId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DiskControlWidget::unmountFinished(const QString &uuid, const QString &info)
|
||||||
|
{
|
||||||
|
qDebug() << uuid << info;
|
||||||
|
}
|
||||||
|
@ -19,6 +19,7 @@ signals:
|
|||||||
private slots:
|
private slots:
|
||||||
void diskListChanged();
|
void diskListChanged();
|
||||||
void unmountDisk(const QString &diskId) const;
|
void unmountDisk(const QString &diskId) const;
|
||||||
|
void unmountFinished(const QString &uuid, const QString &info);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QVBoxLayout *m_centeralLayout;
|
QVBoxLayout *m_centeralLayout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user