// 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/widget/ToggleButton.java
// public interface OnToggleChanged{
// 	/**
// 	 * @param on
// 	 */
// 	public void onToggle(boolean on);
// }


import com.ichano.rvs.viewer.StreamerInfoMgr;
import com.ichano.rvs.viewer.Viewer;
import com.ichano.rvs.viewer.bean.RvsAlarmRecordInfo;
import com.ichano.rvs.viewer.bean.RvsTimeRecordInfo;
import com.ichano.rvs.viewer.bean.ScheduleSetting;
import com.ichano.rvs.viewer.bean.StreamerInfo;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;
import com.zhongyun.viewer.widget.ToggleButton.OnToggleChanged;
import android.app.AlertDialog;
import android.app.TimePickerDialog;
import android.app.TimePickerDialog.OnTimeSetListener;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.FrameLayout;
import android.widget.TextView;
import android.widget.TimePicker;
import android.widget.ToggleButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
        eDataText = (TextView)findViewById(R.id.show_end_time_txt);
        mSensit = (TextView) findViewById(R.id.sensit);
        mOpenBtn1 = (com.zhongyun.viewer.widget.ToggleButton) findViewById(R.id.open_btn1);
        mSunBtn1 = (ToggleButton) findViewById(R.id.sun_btn);
        mMonBtn1 = (ToggleButton) findViewById(R.id.mon_btn);
        mTueBtn1 = (ToggleButton) findViewById(R.id.tue_btn);
        mWedBtn1 = (ToggleButton) findViewById(R.id.wed_btn);
        mThuBtn1 = (ToggleButton) findViewById(R.id.thu_btn);
        mFriBtn1 = (ToggleButton) findViewById(R.id.fri_btn);
        mSatBtn1 = (ToggleButton) findViewById(R.id.sat_btn);
        
        mSwitchText = (TextView)findViewById(R.id.text_switch);

    }

    private void setBtnEvent() {
        sDataText.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                showTimeDlg(sDataText);
            }
        });
        eDataText.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                showTimeDlg(eDataText);
            }
        });
// 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/widget/ToggleButton.java
// public interface OnToggleChanged{
// 	/**
// 	 * @param on
// 	 */
// 	public void onToggle(boolean on);
// }


// Path: src/com/zhongyun/viewer/setting/TimeView.java
import com.ichano.rvs.viewer.StreamerInfoMgr;
import com.ichano.rvs.viewer.Viewer;
import com.ichano.rvs.viewer.bean.RvsAlarmRecordInfo;
import com.ichano.rvs.viewer.bean.RvsTimeRecordInfo;
import com.ichano.rvs.viewer.bean.ScheduleSetting;
import com.ichano.rvs.viewer.bean.StreamerInfo;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;
import com.zhongyun.viewer.widget.ToggleButton.OnToggleChanged;
import android.app.AlertDialog;
import android.app.TimePickerDialog;
import android.app.TimePickerDialog.OnTimeSetListener;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.FrameLayout;
import android.widget.TextView;
import android.widget.TimePicker;
import android.widget.ToggleButton;
import android.widget.CompoundButton.OnCheckedChangeListener;

        eDataText = (TextView)findViewById(R.id.show_end_time_txt);
        mSensit = (TextView) findViewById(R.id.sensit);
        mOpenBtn1 = (com.zhongyun.viewer.widget.ToggleButton) findViewById(R.id.open_btn1);
        mSunBtn1 = (ToggleButton) findViewById(R.id.sun_btn);
        mMonBtn1 = (ToggleButton) findViewById(R.id.mon_btn);
        mTueBtn1 = (ToggleButton) findViewById(R.id.tue_btn);
        mWedBtn1 = (ToggleButton) findViewById(R.id.wed_btn);
        mThuBtn1 = (ToggleButton) findViewById(R.id.thu_btn);
        mFriBtn1 = (ToggleButton) findViewById(R.id.fri_btn);
        mSatBtn1 = (ToggleButton) findViewById(R.id.sat_btn);
        
        mSwitchText = (TextView)findViewById(R.id.text_switch);

    }

    private void setBtnEvent() {
        sDataText.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                showTimeDlg(sDataText);
            }
        });
        eDataText.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                showTimeDlg(eDataText);
            }
        });
        mOpenBtn1.setOnToggleChanged(new OnToggleChanged() {