// Path: src/com/zhongyun/viewer/utils/Constants.java
// public class Constants {
// 
// 	public static final String INTENT_CID = "cid";
// 	public static final String INTENT_CAMERA_NAME = "camera_name";
// 	
// 	public static final String BARCODE_SPLITER = "&";
// 	public static final String BARCODE_DEVICE_ID = "deviceid=";
// 	public static final String BARCODE_CID = "cid=";
// 	public static final String BARCODE_NAME = "name=";
// 	public static final String BARCODE_USER_NAME = "username=";
// 	public static final String BARCODE_PASSWORD = "password=";
// 
// 	public static final String VIDEO_MP4 = ".mp4";
// 	public static final String IMG_JPG = ".jpg";
// 	public static final String RECORD_VIDEO_PATH = "ZhongYun/recordVideo";
// 	public static final String CAPTURE_IAMGE_PATH = "ZhongYun/capture";
// 	public static final String LOCAL_ICON_PATH = "ZhongYun/icon";
// 	public static final String LOCAL_CID_ICON_PATH = "ZhongYun/cid_icon";
// 	
// 	public static final String CONNECTIVITY_CHANGE_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
// 	public static final String CONNECTIVITY_SESSION_STATE = "zhongyun.viewer.session_state";
// }


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.RelativeLayout;
import com.ichano.rvs.viewer.constant.RvsRecordType;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;
//					showToast(R.string.warnning_request_failed);
//					finish();
//				}
//			}
			initView();
		}
	}
	private void initView(){
		findViewById(R.id.relayout_time_recording_video).setOnClickListener(this);
		relayout_alarm_video = (RelativeLayout)findViewById(R.id.relayout_alarm_video);
		relayout_alarm_video.setOnClickListener(this);
		findViewById(R.id.relayout_time_loacal_video).setOnClickListener(this);
		findViewById(R.id.relayout_time_loacal_pic).setOnClickListener(this);
//		if(avsInfoBean.getBasicInfo().getStreamerType() == Constants.SER_TYPE_IPC_LINUX &&  !AvsTool.isNewStreamerVersion(cidStr)){
			findViewById(R.id.opt).setVisibility(View.GONE);
//			relayout_alarm_video.setVisibility(View.GONE);
//			findViewById(R.id.line_1).setVisibility(View.GONE);
//		}
	}
	public void onClick(View v) {
		super.onClick(v);
		int id = v.getId();
		 if (id == R.id.relayout_time_loacal_video) {
			startActivity(new Intent(this, LocalVideoList.class).putExtra("type", 1));
		} else if(id == R.id.relayout_time_loacal_pic){
			startActivity(new Intent(this, LocalVideoList.class).putExtra("type", 2));
		} else if (id == R.id.relayout_time_recording_video) {
            Intent intent1 = new Intent();
            intent1.putExtra("video_type", RvsRecordType.TIMINGRECORD.intValue());
            intent1.setClass(this, AtHomeCameraVideolistNaoCan.class);
// Path: src/com/zhongyun/viewer/utils/Constants.java
// public class Constants {
// 
// 	public static final String INTENT_CID = "cid";
// 	public static final String INTENT_CAMERA_NAME = "camera_name";
// 	
// 	public static final String BARCODE_SPLITER = "&";
// 	public static final String BARCODE_DEVICE_ID = "deviceid=";
// 	public static final String BARCODE_CID = "cid=";
// 	public static final String BARCODE_NAME = "name=";
// 	public static final String BARCODE_USER_NAME = "username=";
// 	public static final String BARCODE_PASSWORD = "password=";
// 
// 	public static final String VIDEO_MP4 = ".mp4";
// 	public static final String IMG_JPG = ".jpg";
// 	public static final String RECORD_VIDEO_PATH = "ZhongYun/recordVideo";
// 	public static final String CAPTURE_IAMGE_PATH = "ZhongYun/capture";
// 	public static final String LOCAL_ICON_PATH = "ZhongYun/icon";
// 	public static final String LOCAL_CID_ICON_PATH = "ZhongYun/cid_icon";
// 	
// 	public static final String CONNECTIVITY_CHANGE_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
// 	public static final String CONNECTIVITY_SESSION_STATE = "zhongyun.viewer.session_state";
// }


// Path: src/com/zhongyun/viewer/video/RecordingVideoTypeList.java
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.RelativeLayout;
import com.ichano.rvs.viewer.constant.RvsRecordType;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;

//					showToast(R.string.warnning_request_failed);
//					finish();
//				}
//			}
			initView();
		}
	}
	private void initView(){
		findViewById(R.id.relayout_time_recording_video).setOnClickListener(this);
		relayout_alarm_video = (RelativeLayout)findViewById(R.id.relayout_alarm_video);
		relayout_alarm_video.setOnClickListener(this);
		findViewById(R.id.relayout_time_loacal_video).setOnClickListener(this);
		findViewById(R.id.relayout_time_loacal_pic).setOnClickListener(this);
//		if(avsInfoBean.getBasicInfo().getStreamerType() == Constants.SER_TYPE_IPC_LINUX &&  !AvsTool.isNewStreamerVersion(cidStr)){
			findViewById(R.id.opt).setVisibility(View.GONE);
//			relayout_alarm_video.setVisibility(View.GONE);
//			findViewById(R.id.line_1).setVisibility(View.GONE);
//		}
	}
	public void onClick(View v) {
		super.onClick(v);
		int id = v.getId();
		 if (id == R.id.relayout_time_loacal_video) {
			startActivity(new Intent(this, LocalVideoList.class).putExtra("type", 1));
		} else if(id == R.id.relayout_time_loacal_pic){
			startActivity(new Intent(this, LocalVideoList.class).putExtra("type", 2));
		} else if (id == R.id.relayout_time_recording_video) {
            Intent intent1 = new Intent();
            intent1.putExtra("video_type", RvsRecordType.TIMINGRECORD.intValue());
            intent1.setClass(this, AtHomeCameraVideolistNaoCan.class);
            intent1.putExtra(Constants.INTENT_CID, cidStr);