2002-07-24 01:39:49 +04:00
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//
|
|
|
|
// File Name: VolumeRoster.h
|
|
|
|
//
|
|
|
|
// Description: BVolumeRoster class
|
|
|
|
// ----------------------------------------------------------------------
|
2002-12-09 15:45:59 +03:00
|
|
|
/*!
|
|
|
|
\file VolumeRoster.h
|
|
|
|
BVolumeRoster interface declarations.
|
|
|
|
*/
|
2002-08-12 11:24:02 +04:00
|
|
|
#ifndef _VOLUME_ROSTER_H
|
|
|
|
#define _VOLUME_ROSTER_H
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
#include <Application.h>
|
2002-07-24 01:39:49 +04:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <Volume.h>
|
|
|
|
|
|
|
|
#ifdef USE_OPENBEOS_NAMESPACE
|
|
|
|
namespace OpenBeOS {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class BVolume;
|
|
|
|
class BMessenger;
|
|
|
|
|
|
|
|
class BVolumeRoster {
|
2002-12-09 15:45:59 +03:00
|
|
|
public:
|
|
|
|
BVolumeRoster();
|
|
|
|
virtual ~BVolumeRoster();
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
status_t GetNextVolume(BVolume *volume);
|
|
|
|
void Rewind();
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
status_t GetBootVolume(BVolume *volume);
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
status_t StartWatching(BMessenger messenger = be_app_messenger);
|
|
|
|
void StopWatching();
|
|
|
|
BMessenger Messenger() const;
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
private:
|
2003-02-11 21:17:25 +03:00
|
|
|
virtual void _SeveredVRoster1();
|
|
|
|
virtual void _SeveredVRoster2();
|
2002-07-24 01:39:49 +04:00
|
|
|
|
2002-12-09 15:45:59 +03:00
|
|
|
int32 fCookie;
|
|
|
|
BMessenger *fTarget;
|
|
|
|
uint32 _reserved[3];
|
2002-07-24 01:39:49 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef USE_OPENBEOS_NAMESPACE
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2002-08-12 11:24:02 +04:00
|
|
|
#endif // _VOLUME_ROSTER_H
|