blob: 153e3d097f75f5b00abe78409968a01b982b7145 [file] [log] [blame]
#include "SimIcon.h"
namespace MGUI
{
SimIcon::SimIcon(ilixi::Widget* parent)
: SimpleIcon(parent),
_simState(SimUnknown)
{
setSimState(SimMissing);
}
SimIcon::~SimIcon()
{
}
SimState
SimIcon::getSimState() const
{
return _simState;
}
void
SimIcon::setSimState(SimState simState)
{
if (_simState != simState)
{
_simState = simState;
switch (_simState)
{
case SimActive:
setImage("simcard");
break;
case SimMissing:
setImage("simcard_missing");
break;
default:
break;
}
}
}
} /* namespace MGUI */