forked from mirrors/gio-qt
feat: add binding for g_volume_mount.
This commit is contained in:
parent
68d2e61e2c
commit
4f3994c944
2 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,7 @@ public:
|
||||||
bool canMount() const;
|
bool canMount() const;
|
||||||
bool canEject() const;
|
bool canEject() const;
|
||||||
bool shouldAutoMount() const;
|
bool shouldAutoMount() const;
|
||||||
|
void mount() const;
|
||||||
|
|
||||||
QExplicitlySharedDataPointer<DGioMount> getMount();
|
QExplicitlySharedDataPointer<DGioMount> getMount();
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,13 @@ bool DGioVolume::shouldAutoMount() const
|
||||||
return d->getGmmVolumeInstance()->should_automount();
|
return d->getGmmVolumeInstance()->should_automount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DGioVolume::mount() const
|
||||||
|
{
|
||||||
|
Q_D(const DGioVolume);
|
||||||
|
|
||||||
|
d->getGmmVolumeInstance()->mount();
|
||||||
|
}
|
||||||
|
|
||||||
// Return value can be nullptr
|
// Return value can be nullptr
|
||||||
QExplicitlySharedDataPointer<DGioMount> DGioVolume::getMount()
|
QExplicitlySharedDataPointer<DGioMount> DGioVolume::getMount()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue