| Import line: | Gio = imports.gi.Gio; | 
| GIR File: | Gio-2.0.gir | 
| C documentation: | GVolume | 
| Interface : | Volume | 
| None | 
| Method / Constructor | Defined By | |
|---|---|---|
| 
			can_eject
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if a volume can be ejected. 
			
				Checks if a volume can be ejected.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.Volume | |
| 
			can_mount
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if a volume can be mounted. 
			
				Checks if a volume can be mounted.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.Volume | |
| Ejects a volume. 
			
				Ejects a volume. This is an asynchronous operation, and is finished by calling g_volume_eject_finish() with the volume and GAsyncResult returned in the callback. 
 
 | Gio.Volume | |
| 
			eject_finish
				
				 (AsyncResult result) 
			
				
					 : 
					gboolean
					
				
			
		 Finishes ejecting a volume. 
			
				Finishes ejecting a volume. If any errors occured during the operation,
		    
				
			
			
			
			
				 
 
 | Gio.Volume | |
| 
			eject_with_operation
				
				 (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) 
			
				
					 : 
					none
					
				
			
		 Ejects a volume. 
			
				Ejects a volume. This is an asynchronous operation, and is finished by calling g_volume_eject_with_operation_finish() with the volume and GAsyncResult data returned in the callback. 
 
 | Gio.Volume | |
| 
			eject_with_operation_finish
				
				 (AsyncResult result) 
			
				
					 : 
					gboolean
					
				
			
		 Finishes ejecting a volume. 
			
				Finishes ejecting a volume. If any errors occurred during the operation,
		    
				
			
			
			
			
				 
 
 | Gio.Volume | |
| 
			enumerate_identifiers
				
				 () 
			
				
					 : 
					Array
					
				
			
		 Gets the kinds of identifiers that volume has. 
			
				Gets the kinds of identifiers that volume has. Use g_volume_get_identifer() to obtain the identifiers themselves. of strings containing kinds of identifiers. Use g_strfreev() to free. 
 | Gio.Volume | |
| 
			get_activation_root
				
				 () 
			
				
					 : 
					Gio.File
					
				
			
		 Gets the activation root for a GVolume if it is known ahead of mount time. 
			
				Gets the activation root for a GVolume if it is known ahead of mount time. Returns NULL otherwise. If not NULL and if volume is mounted, then the result of g_mount_get_root() on the GMount object obtained from g_volume_get_mount() will always either be equal or a prefix of what this function returns. In other words, in code GMount *mount; GFile *mount_root GFile *volume_activation_root; mount = g_volume_get_mount (volume); /* mounted, so never NULL */ mount_root = g_mount_get_root (mount); volume_activation_root = g_volume_get_activation_root(volume); /* assume not NULL */ then the expression (g_file_has_prefix (volume_activation_root, mount_root) || will always be TRUE. Activation roots are typically used in GVolumeMonitor implementations to find the underlying mount to shadow, see g_mount_is_shadowed() for more details. g_object_unref() to free. 
 | Gio.Volume | |
| 
			get_drive
				
				 () 
			
				
					 : 
					Gio.Drive
					
				
			
		 Gets the drive for the volume. 
			
				Gets the drive for the volume. The returned object should be unreffed with g_object_unref() when no longer needed. 
 | Gio.Volume | |
| 
			get_icon
				
				 () 
			
				
					 : 
					Gio.Icon
					
				
			
		 Gets the icon for volume. 
			
				Gets the icon for volume. The returned object should be unreffed with g_object_unref() when no longer needed. 
 | Gio.Volume | |
| Gets the identifier of the given kind for volume. 
			
				Gets the identifier of the given kind for volume. See the introduction for more information about volume identifiers. requested identfier, or NULL if the GVolume doesn't have this kind of identifier 
 
 | Gio.Volume | |
| 
			get_mount
				
				 () 
			
				
					 : 
					Gio.Mount
					
				
			
		 Gets the mount for the volume. 
			
				Gets the mount for the volume. The returned object should be unreffed with g_object_unref() when no longer needed. 
 | Gio.Volume | |
| 
			get_name
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the name of volume. 
			
				Gets the name of volume. be freed with g_free() when no longer needed. 
 | Gio.Volume | |
| 
			get_uuid
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the UUID for the volume. 
			
				Gets the UUID for the volume. The reference is typically based on the file system UUID for the volume in question and should be considered an opaque string. Returns NULL if there is no UUID available. The returned string should be freed with g_free() when no longer needed. 
 | Gio.Volume | |
| 
			mount
				
				 (MountMountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) 
			
				
					 : 
					none
					
				
			
		 Mounts a volume. 
			
				Mounts a volume. This is an asynchronous operation, and is finished by calling g_volume_mount_finish() with the volume and GAsyncResult returned in the callback. 
 
 | Gio.Volume | |
| 
			mount_finish
				
				 (AsyncResult result) 
			
				
					 : 
					gboolean
					
				
			
		 Finishes mounting a volume. 
			
				Finishes mounting a volume. If any errors occured during the operation, If the mount operation succeeded, g_volume_get_mount() on volume is guaranteed to return the mount right after calling this function; there's no need to listen for the 'mount-added' signal on GVolumeMonitor. 
 
 | Gio.Volume | |
| 
			should_automount
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Returns whether the volume should be automatically mounted. 
			
				Returns whether the volume should be automatically mounted.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.Volume | |
| Event | Defined By | |
|---|---|---|
| 
		changed (Volume self) 
                : 
					none
					
        
        
		 Emitted when the volume has been changed.
		   
		 
		    
			Emitted when the volume has been changed.
		    
			 
			
				 
 
 | Gio.Volume | |
| 
		removed (Volume self) 
                : 
					none
					
        
        
		 This signal is emitted when the GVolume have been removed.
		   
		 
		    
			This signal 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. 
 
 | Gio.Volume | |
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| Gio.Mount Method | 
			get_volume
				
				 () 
			
				
					 : 
					Gio.Volume
					
				
			
		 Gets the volume for the mount. | 
| Gio.VolumeMonitor Signal | 
			volume_added
				
				 (VolumeMonitor self, Volume volume) 
			
				
					 : 
					none
					
				
			
		 Emitted when a mountable volume is added to the system. | 
| Gio.VolumeMonitor Signal | 
			volume_changed
				
				 (VolumeMonitor self, Volume volume) 
			
				
					 : 
					none
					
				
			
		 Emitted when mountable volume is changed. | 
| Gio.VolumeMonitor Signal | 
			volume_removed
				
				 (VolumeMonitor self, Volume volume) 
			
				
					 : 
					none
					
				
			
		 Emitted when a mountable volume is removed from the system. | 
| Gio.VolumeMonitor Method | This function should be called by any GVolumeMonitor implementation when a new GMount object is created that is not associated with a GVolume object. | 
| Gio.VolumeMonitor Method | 
			get_volume_for_uuid
				
				 (String uuid) 
			
				
					 : 
					Gio.Volume
					
				
			
		 Finds a GVolume object by its UUID (see g_volume_get_uuid()) Free the returned object with g_object_unref(). |