2013-08-13 20:04:25 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Guide.h *
|
|
|
|
* *
|
|
|
|
* XFX::GamerServices::Guide class definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_GAMERSERVICES_GUIDE_
|
|
|
|
#define _XFX_GAMERSERVICES_GUIDE_
|
|
|
|
|
|
|
|
#include <System/Collections/Generic/Interfaces.h>
|
|
|
|
#include <System/Delegates.h>
|
|
|
|
#include <System/Interfaces.h>
|
2013-10-03 14:40:24 +02:00
|
|
|
#include <System/Nullable.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
#include <System/TimeSpan.h>
|
|
|
|
#include <System/Types.h>
|
|
|
|
#include <Storage/StorageDevice.h>
|
|
|
|
#include "Enums.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
using namespace System::Collections::Generic;
|
|
|
|
using namespace XFX::Storage;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace GamerServices
|
|
|
|
{
|
2013-08-13 20:04:25 +02:00
|
|
|
/**
|
|
|
|
* Provides access to the Guide user interface.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class Guide
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static bool _isVisible;
|
|
|
|
|
|
|
|
// Private constructor to prevent instantiation
|
|
|
|
Guide();
|
|
|
|
|
|
|
|
public:
|
|
|
|
static bool IsScreenSaverEnabled;
|
|
|
|
static bool IsVisible();
|
|
|
|
static NotificationPosition_t NotificationPosition;
|
|
|
|
|
|
|
|
static IAsyncResult* BeginShowKeyboardInput(const PlayerIndex_t player, String& title, String& description, String& defaultText, AsyncCallback callback, Object* state);
|
|
|
|
static IAsyncResult* BeginShowMessageBox(const PlayerIndex_t player, String& title, String& text, IEnumerable<String>* buttons, const int focusButton, const MessageBoxIcon_t icon, AsyncCallback callback, Object* state);
|
|
|
|
static IAsyncResult* BeginShowStorageDeviceSelector(int sizeInBytes, int directoryCount, AsyncCallback callback, Object* state);
|
|
|
|
static IAsyncResult* BeginShowStorageDeviceSelector(AsyncCallback callback, Object* state);
|
|
|
|
static IAsyncResult* BeginShowStorageDeviceSelector(const PlayerIndex_t player, const int sizeInBytes, const int directoryCount, AsyncCallback callback, Object* state);
|
|
|
|
static IAsyncResult* BeginShowStorageDeviceSelector(const PlayerIndex_t player, AsyncCallback callback, Object* state);
|
|
|
|
static void DelayNotifications(const TimeSpan timespan);
|
2013-08-20 11:14:55 +02:00
|
|
|
static String EndShowKeyboardInput(IAsyncResult* result);
|
2013-10-03 14:40:24 +02:00
|
|
|
static Nullable<int> EndShowMessageBox(IAsyncResult* result);
|
2013-05-05 18:18:41 +02:00
|
|
|
static StorageDevice EndShowStorageDeviceSelector(IAsyncResult* result);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GAMERSERVICES_GUIDE_
|