#include "statushandle.h"
StatusHandle* StatusHandle::mInstance = 0;
StatusHandle* StatusHandle::One()
{
if( !mInstance )
{
mInstance = new StatusHandle();
}
return mInstance;
}
StatusHandle::StatusHandle()
{
}
StatusHandle::~StatusHandle()
{
}
void StatusHandle::PopMessage(eMessageType pStatus)
{
switch (pStatus)
{
case eSTATUS_SENSOR_RUNTIME_DLL_MISSING:
"The Kinect Windows SDK doesn't work, Please try to reinstall the SDK to fix this problem",
"OK");
break;
case eSTATUS_SENSOR_INITIALIZING:
"The device is connected, but still initializing",
"OK");
break;
case eSTATUS_SENSOR_NOTCONNECTED:
"The device is not connected",
"OK");
break;
case eSTATUS_SENSOR_NOTGENUINE:
"The device is not a valid Kinect",
"OK");
break;
case eSTATUS_SENSOR_NOTSUPPORTED:
"The device is an unsupported model",
"OK");
break;
case eSTATUS_SENSOR_INSUFFICIENTBANDWIDTH:
"The device is connected to a hub without the necessary bandwidth requirements",
"OK");
break;
case eSTATUS_SENSOR_NOTPOWERED:
"The device is connected, but unpowered",
"OK");
break;
case eSTATUS_SENSOR_NOTREADY:
"There was some other unspecified error",
"OK");
break;
default:
break;
}
}