haiku/headers/private/storage/Session.h
Ingo Weinhold d8c074b218 Small changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-01 18:12:03 +00:00

68 lines
1.6 KiB
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#ifndef _SESSION_H
#define _SESSION_H
#include <DiskDeviceVisitor.h>
#include <fs_device.h>
#include <ObjectList.h>
#include <Point.h>
#include <String.h>
class BDiskDevice;
class BPartition;
extern const char *B_INTEL_PARTITIONING;
class BSession {
public:
BDiskDevice *Device() const;
off_t Offset() const;
off_t Size() const;
int32 CountPartitions() const;
BPartition *PartitionAt(int32 index) const;
int32 Index() const;
uint32 Flags() const;
bool IsAudio() const;
bool IsData() const;
bool IsVirtual() const;
const char *PartitioningSystem() const;
int32 UniqueID() const;
BPartition *VisitEachPartition(BDiskDeviceVisitor *visitor);
status_t GetPartitioningParameters(const char *partitioningSystem,
BString *parameters,
BPoint dialogCenter = BPoint(-1, -1),
bool *cancelled = NULL);
status_t Partition(const char *partitioningSystem, const char *parameters);
status_t Partition(const char *partitioningSystem,
BPoint dialogCenter = BPoint(-1, -1),
bool *cancelled = NULL);
static status_t GetPartitioningSystemList(BObjectList<BString> *list);
private:
BSession();
~BSession();
BSession(const BSession &);
BSession &operator=(const BSession &);
private:
BDiskDevice *fDevice;
BObjectList<BPartition *> fPartitions;
int32 fUniqueID;
session_info fInfo;
};
#endif // _SESSION_H