From 800e59617fc1b5d9cde151403979fccd7531689b Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Wed, 28 May 2003 21:41:28 +0000 Subject: [PATCH] Removed as of v2.0 of the DiskDevice API. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3373 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/storage/Session.h | 84 ------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 headers/private/storage/Session.h diff --git a/headers/private/storage/Session.h b/headers/private/storage/Session.h deleted file mode 100644 index 6d837f2be0..0000000000 --- a/headers/private/storage/Session.h +++ /dev/null @@ -1,84 +0,0 @@ -//---------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -//--------------------------------------------------------------------- - -#ifndef _SESSION_H -#define _SESSION_H - -#include -#include -#include -#include -#include - -class BDiskDevice; -class BPartition; - -extern const char *B_INTEL_PARTITIONING; - -class BSession { -public: - ~BSession(); - - BDiskDevice *Device() const; - - off_t Offset() const; - off_t Size() const; - int32 BlockSize() 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); - - BPartition *PartitionWithID(int32 id); - - status_t GetPartitioningParameters(const char *partitioningSystem, - BString *parameters, - BRect dialogCenter = BRect(), - bool *cancelled = NULL); - status_t Partition(const char *partitioningSystem, const char *parameters); - status_t Partition(const char *partitioningSystem, - BRect dialogCenter = BRect(), - bool *cancelled = NULL); - -private: - BSession(); - BSession(const BSession &); - BSession &operator=(const BSession &); - - void _Unset(); - status_t _Unarchive(BMessage *archive); - status_t _Update(BMessage *archive); - - void _SetDevice(BDiskDevice *device); - - bool _AddPartition(BPartition *partition); - -private: - friend class BDiskDevice; - friend class BDiskDeviceList; - - BDiskDevice *fDevice; - BObjectList fPartitions; - int32 fUniqueID; - int32 fChangeCounter; - int32 fIndex; -// TODO: Only offset, size and flags are used. Cleanup! - session_info fInfo; - BString fPartitioningSystem; -}; - -#endif // _SESSION_H