feat: add binding for g_volume_mount.

This commit is contained in:
Chris Xiong 2019-10-11 16:25:22 +08:00
parent 68d2e61e2c
commit 4f3994c944
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,7 @@ public:
bool canMount() const;
bool canEject() const;
bool shouldAutoMount() const;
void mount() const;
QExplicitlySharedDataPointer<DGioMount> getMount();

View File

@ -116,6 +116,13 @@ bool DGioVolume::shouldAutoMount() const
return d->getGmmVolumeInstance()->should_automount();
}
void DGioVolume::mount() const
{
Q_D(const DGioVolume);
d->getGmmVolumeInstance()->mount();
}
// Return value can be nullptr
QExplicitlySharedDataPointer<DGioMount> DGioVolume::getMount()
{