2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* StorageDevice.h *
|
|
|
|
* *
|
|
|
|
* XFX::Storage::StorageDevice class definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_STORAGE_STORAGEDEVICE_
|
|
|
|
#define _XFX_STORAGE_STORAGEDEVICE_
|
|
|
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
#include "../Enums.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace GamerServices
|
|
|
|
{
|
|
|
|
class Guide;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Storage
|
|
|
|
{
|
|
|
|
class StorageContainer;
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents a storage device for user data, such as a memory unit or hard drive.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class StorageDevice : public Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
friend class XFX::GamerServices::Guide;
|
|
|
|
|
|
|
|
PlayerIndex_t _playerIndex;
|
|
|
|
unsigned int _deviceIndex;
|
|
|
|
|
|
|
|
StorageDevice(unsigned int deviceIndex, PlayerIndex_t playerIndex);
|
|
|
|
virtual ~StorageDevice();
|
|
|
|
|
|
|
|
public:
|
|
|
|
long long FreeSpace() const;
|
|
|
|
bool IsConnected() const;
|
|
|
|
long long TotalSpace() const;
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
|
|
|
StorageContainer* OpenContainer(const String& titleName);
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_STORAGE_STORAGEDEVICE_
|