package com.tcl.factory.view;
import android.view.KeyEvent;

import com.tcl.factory.bsp.TVDefine;

public class DmodeDescramblerBox   extends SubMenu{
	public static  String MenuInfos_DmodeDescramblerBox[][]={
		{"ChinaDescramblerBoxMode1","OFF"},
		{"ChinaDescramblerBoxMode2","OFF"},
		{"ChinaDescramblerBoxMode2Delay",""},
	};
	public 	DmodeDescramblerBox()
	{
		super.menuInfos=MenuInfos_DmodeDescramblerBox;
		super.menuLabel = "Main menu\\Other\\DescramblerBox";
		super.setTAG();
		updateMenuInfos();
	} 

	public void KeyEvent(int keyCode,int pos)
	{
		switch(keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_LEFT:
		case KeyEvent.KEYCODE_DPAD_RIGHT:
		{
			switch(pos)
			{
			case 0: super.StatusHandler(TVDefine.ChinaDescramblerBoxMode1) ;break;
			case 1: super.StatusHandler(TVDefine.ChinaDescramblerBoxMode2) ;break;
			case 2: super.ValueHandler(TVDefine.ChinaDescramblerBoxMode2Delay, keyCode) ;break;
			}
		}
		break;
		default:
			break;
		}		
	}

	/* (non-Javadoc)
	 * Factory
	 */
	@Override
	public void updateMenuInfos() {
		// TODO Auto-generated method stub
		super.updateStatusInfo(TVDefine.ChinaDescramblerBoxMode1, 0);
		super.updateStatusInfo(TVDefine.ChinaDescramblerBoxMode2, 1);
		super.updateValueInfo(TVDefine.ChinaDescramblerBoxMode2Delay, 2);
	}

}