2013-08-13 20:04:25 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* StorageContainer.h *
|
|
|
|
* *
|
|
|
|
* XFX::Storage::StorageContainer class definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_STORAGE_STORAGECONTAINER_
|
|
|
|
#define _XFX_STORAGE_STORAGECONTAINER_
|
|
|
|
|
|
|
|
#include <System/Event.h>
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
#include <System/IO/DirectoryInfo.h>
|
|
|
|
#include "../Enums.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
using namespace System::IO;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Storage
|
|
|
|
{
|
|
|
|
class StorageDevice;
|
2013-08-13 20:04:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a logical collection of storage files.
|
|
|
|
*/
|
|
|
|
class StorageContainer : public IDisposable, public Object
|
2013-05-05 18:18:41 +02:00
|
|
|
{
|
|
|
|
friend class StorageDevice;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool isDisposed;
|
|
|
|
DirectoryInfo containerFolder;
|
2013-08-13 20:04:25 +02:00
|
|
|
StorageDevice* device;
|
|
|
|
PlayerIndex_t playerIndex;
|
|
|
|
String titleName;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
void Dispose(bool disposing);
|
|
|
|
virtual ~StorageContainer();
|
|
|
|
|
|
|
|
public:
|
|
|
|
EventHandler Disposing;
|
|
|
|
|
2013-08-13 20:04:25 +02:00
|
|
|
bool IsDisposed() const;
|
|
|
|
const String Path() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
StorageDevice* getStorageDevice() const;
|
2013-08-13 20:04:25 +02:00
|
|
|
static const String TitleLocation();
|
|
|
|
const String TitleName() const;
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
void Delete();
|
|
|
|
void Dispose();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_STORAGE_STORAGECONTAINER_
|