2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* StorageDevice.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX StorageDevice definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_STORAGE_STORAGEDEVICE_
|
|
|
|
|
#define _XFX_STORAGE_STORAGEDEVICE_
|
|
|
|
|
|
|
|
|
|
#include <System/Types.h>
|
2011-06-09 12:57:16 +00:00
|
|
|
|
#include <System/Object.h>
|
2010-12-04 16:14:34 +00:00
|
|
|
|
#include "../Enums.h"
|
|
|
|
|
|
2011-06-09 12:57:16 +00:00
|
|
|
|
using namespace System;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
2011-06-09 12:57:16 +00:00
|
|
|
|
namespace GamerServices
|
|
|
|
|
{
|
|
|
|
|
class Guide;
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace Storage
|
|
|
|
|
{
|
|
|
|
|
class StorageContainer;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a storage device for user data, such as a memory unit or hard drive.
|
|
|
|
|
/// </summary>
|
2011-06-09 12:57:16 +00:00
|
|
|
|
class StorageDevice : virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2011-06-09 12:57:16 +00:00
|
|
|
|
friend class XFX::GamerServices::Guide;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
private:
|
|
|
|
|
PlayerIndex_t _playerIndex;
|
2011-06-09 12:57:16 +00:00
|
|
|
|
uint _deviceIndex;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2011-06-09 12:57:16 +00:00
|
|
|
|
StorageDevice(uint deviceIndex, PlayerIndex_t playerIndex);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
long long FreeSpace();
|
|
|
|
|
bool IsConnected();
|
|
|
|
|
long long TotalSpace();
|
|
|
|
|
|
|
|
|
|
StorageContainer OpenContainer(char* titleName);
|
2010-12-27 01:01:25 +00:00
|
|
|
|
};
|
2010-12-04 16:14:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_STORAGE_STORAGEDEVICE_
|