5dd0761042
With this commit every class in the storage kit is now documented in the Haiku book! Thanks to Ingo, Axel, Vincent Dominguez, Tyler Dauwalder, and everyone who helped document these classes.
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
/*
|
|
* Copyright 2002-2010, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _VOLUME_ROSTER_H
|
|
#define _VOLUME_ROSTER_H
|
|
|
|
|
|
#include <Application.h>
|
|
#include <SupportDefs.h>
|
|
#include <Volume.h>
|
|
|
|
|
|
class BVolume;
|
|
class BMessenger;
|
|
|
|
|
|
class BVolumeRoster {
|
|
public:
|
|
BVolumeRoster();
|
|
virtual ~BVolumeRoster();
|
|
|
|
status_t GetNextVolume(BVolume* volume);
|
|
void Rewind();
|
|
|
|
status_t GetBootVolume(BVolume* volume);
|
|
|
|
status_t StartWatching(
|
|
BMessenger messenger = be_app_messenger);
|
|
void StopWatching();
|
|
BMessenger Messenger() const;
|
|
|
|
private:
|
|
virtual void _SeveredVRoster1();
|
|
virtual void _SeveredVRoster2();
|
|
|
|
private:
|
|
int32 fCookie;
|
|
// The iteration cookie for next_dev()
|
|
// Initialized to 0
|
|
BMessenger* fTarget;
|
|
// BMessenger referring to the target to
|
|
// which the watching notification
|
|
// messages are sent. The object is
|
|
// allocated and owned by the roster,
|
|
// or NULL if not watching.
|
|
uint32 _reserved[3];
|
|
// FBC
|
|
};
|
|
|
|
|
|
#endif // _VOLUME_ROSTER_H
|