Documentation | StorageKit | VolumeRoster
SYNOPSIS
Perl
use HaikuR1::VolumeRoster; my $roster = Haiku::VolumeRoster->new(); my $boot = $roster->GetBootVolume();
Python
from import HaikuR1.StorageKit import VolumeRoster roster = VolumerRoster() boot = roster.GetVolumeRoster()
DESCRIPTION
Exposes the BVolumeRoster
object.
For more information on VolumeRoster, see the Be Book class description, the Be Book overview, and the Haiku Book class description.
METHODS
Constructor
Creates a VolumeRoster.
Perl
HaikuR1::VolumeRoster->new();
Python
VolumeRoster()
Monitoring
StartWatching
StopWatching
Messenger
Allows you to watch for the mounting and unmounting of volumes.
This is a wrapper around the functionality provided by the Node Monitor.
Perl
$volumeroster->StartWatching($messenger); $volumeroster->StopWatching(); $volumeroster->Messenger();
Python
volumeroster.StartWatching(name) volumeroster.StopWatching() volumeroster.Messenger()
messenger
A Messenger, representing the target that will receive the messages.
Volumes
GetNextVolume
Rewind
GetBootVolume
GetNextVolume
and Rewind
allow you to iterate through the volumes. (It
will get both mounted and unmounted volumes).
Volumes
is not part of the Haiku API. It is a convenience method implemented
in the glue code, allowing you to get all the volumes at once, wrapped up in a
native list.