forked from mirrors/gio-qt
feat: add binding for g_volume_mount.
This commit is contained in:
parent
68d2e61e2c
commit
4f3994c944
@ -51,6 +51,7 @@ public:
|
||||
bool canMount() const;
|
||||
bool canEject() const;
|
||||
bool shouldAutoMount() const;
|
||||
void mount() const;
|
||||
|
||||
QExplicitlySharedDataPointer<DGioMount> getMount();
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user