2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* StorageContainer.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX StorageContainer definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_STORAGE_STORAGECONTAINER_
|
|
|
|
|
#define _XFX_STORAGE_STORAGECONTAINER_
|
|
|
|
|
|
|
|
|
|
#include <System/Delegates.h>
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#include <System/Interfaces.h>
|
2010-12-04 16:14:34 +00:00
|
|
|
|
#include <System/IO/DirectoryInfo.h>
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#include "../Enums.h"
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
using namespace System::IO;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Storage
|
|
|
|
|
{
|
|
|
|
|
class StorageDevice;
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// Represents a logical collection of storage files.
|
2010-12-27 01:01:25 +00:00
|
|
|
|
class StorageContainer : public IDisposable, virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2011-06-09 12:57:16 +00:00
|
|
|
|
friend class StorageDevice;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
private:
|
|
|
|
|
bool isDisposed;
|
|
|
|
|
DirectoryInfo containerFolder;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
StorageDevice* device;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
PlayerIndex_t playerIndex;
|
|
|
|
|
char* titleName;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
|
|
|
|
void Dispose(bool disposing);
|
2011-11-07 01:29:50 +00:00
|
|
|
|
virtual ~StorageContainer();
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
public:
|
2011-06-09 12:57:16 +00:00
|
|
|
|
EventHandler Disposing;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
bool IsDisposed();
|
|
|
|
|
char* Path();
|
2011-11-07 01:29:50 +00:00
|
|
|
|
StorageDevice* getStorageDevice();
|
2010-12-04 16:14:34 +00:00
|
|
|
|
static char* TitleLocation();
|
|
|
|
|
char* TitleName();
|
|
|
|
|
|
|
|
|
|
void Delete();
|
|
|
|
|
void Dispose();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_STORAGE_STORAGECONTAINER_
|