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_
|
|
|
|
|
|
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;
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// Represents a storage device for user data, such as a memory unit or hard drive.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
class StorageDevice : public Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
private:
|
2011-06-09 12:57:16 +00:00
|
|
|
|
friend class XFX::GamerServices::Guide;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
PlayerIndex_t _playerIndex;
|
2011-11-07 01:29:50 +00:00
|
|
|
|
unsigned int _deviceIndex;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
StorageDevice(unsigned int deviceIndex, PlayerIndex_t playerIndex);
|
|
|
|
|
virtual ~StorageDevice();
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
public:
|
2012-09-28 20:36:02 +00:00
|
|
|
|
long long FreeSpace() const;
|
|
|
|
|
bool IsConnected() const;
|
|
|
|
|
long long TotalSpace() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
int GetType() const;
|
|
|
|
|
StorageContainer* OpenContainer(const char* titleName);
|
2010-12-27 01:01:25 +00:00
|
|
|
|
};
|
2010-12-04 16:14:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_STORAGE_STORAGEDEVICE_
|