GVolumeIface

Interface for implementing operations for mountable volumes.

struct GVolumeIface {}

Members

Variables

canEject
bool function(GVolume* volume) canEject;

Checks if a #GVolume can be ejected.

canMount
bool function(GVolume* volume) canMount;

Returns true if the #GVolume can be mounted.

changed
void function(GVolume* volume) changed;

Changed signal that is emitted when the volume's state has changed.

eject
void function(GVolume* volume, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) eject;

Ejects a given #GVolume.

ejectFinish
bool function(GVolume* volume, GAsyncResult* result, GError** _err) ejectFinish;

Finishes an eject operation.

ejectWithOperation
void function(GVolume* volume, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectWithOperation;

Starts ejecting a #GVolume using a #GMountOperation. Since 2.22.

ejectWithOperationFinish
bool function(GVolume* volume, GAsyncResult* result, GError** _err) ejectWithOperationFinish;

Finishes an eject operation using a #GMountOperation. Since 2.22.

enumerateIdentifiers
char** function(GVolume* volume) enumerateIdentifiers;

Returns an array strings listing the kinds of identifiers which the #GVolume has.

gIface
GTypeInterface gIface;

The parent interface.

getActivationRoot
GFile* function(GVolume* volume) getActivationRoot;

Returns the activation root for the #GVolume if it is known in advance or null if it is not known.

getDrive
GDrive* function(GVolume* volume) getDrive;

Gets a #GDrive the volume is located on. Returns null if the #GVolume is not associated with a #GDrive.

getIcon
GIcon* function(GVolume* volume) getIcon;

Gets a #GIcon for the #GVolume.

getIdentifier
char* function(GVolume* volume, const(char)* kind) getIdentifier;

Returns the identifier of the given kind, or null if the #GVolume doesn't have one.

getMount
GMount* function(GVolume* volume) getMount;

Gets a #GMount representing the mounted volume. Returns null if the #GVolume is not mounted.

getName
char* function(GVolume* volume) getName;

Gets a string containing the name of the #GVolume.

getSortKey
const(char)* function(GVolume* volume) getSortKey;

Gets a key used for sorting #GVolume instance or null if no such key exists. Since 2.32.

getSymbolicIcon
GIcon* function(GVolume* volume) getSymbolicIcon;

Gets a symbolic #GIcon for the #GVolume. Since 2.34.

getUuid
char* function(GVolume* volume) getUuid;

Gets the UUID for the #GVolume. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns null if there is no UUID available.

mountFinish
bool function(GVolume* volume, GAsyncResult* result, GError** _err) mountFinish;

Finishes a mount operation.

mountFn
void function(GVolume* volume, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountFn;

Mounts a given #GVolume. #GVolume implementations must emit the #GMountOperation::aborted signal before completing a mount operation that is aborted while awaiting input from the user through a #GMountOperation instance.

removed
void function(GVolume* volume) removed;

The removed signal that is emitted when the #GVolume have been removed. If the recipient is holding references to the object they should release them so the object can be finalized.

shouldAutomount
bool function(GVolume* volume) shouldAutomount;

Returns true if the #GVolume should be automatically mounted.