import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "../windowsList.js" as WindowsList import "../layoutList.js" as Layout import "mirrorlinkEvent.js" as MirrorEvent import "../Setting/Settinglist.js" as Setting import "../AC/AC.js" as AC import Label 2.0 HMIWindow{ //add by lizhe for half->full id:mirrorlink_main property bool mirrorlinkClose: false //add by lizhe for #157075 //ADD F0155 2016/10/12 mengyufeng begin property bool flickMaskFlag: false //ADD By qu-shh for auto display off start property bool display_flag:false //ADD By qu-shh for auto display off end //modify by Jiyulong for #210943 start 2017/10/13 property bool ipod_phoneLink_error:false //modify by Jiyulong for #210943 end Component.onCompleted: { //modify by Jiyulong for mh_restart start 2017/7/13 mirrorlinkCtrl.setPhonelinkExitFlag(false); //modify by Jiyulong for mh_restart end if(!systemCtrl.getWarningFlag())//ADD 2017/3/22 ld { mirrorlinkCtrl.startMirrorLinkApp(); flickMaskTimerOut.start() } systemCtrl.setGestureShieldState(Layout.GESTURE_POP,Layout.POP_ALL_NOT_AVAILABLE) flickMaskFlag=true windowID=WindowsList.MIRRORLINK_MAIN; //add by lizhe for half->full } //ADD F0155 2016/10/12 mengyufeng end //add by lizhe for half->full start Mirrorlink_Half{ id: half_window x:120 y:44 visible: !mirrorlink_main.bMaxWindow && (mirrorlinkCtrl.phoneIsConnected ===1)&& mirrorlinkCtrl.phonelinkStart } // HMILabel{ // width:700 // height:30 // font.pixelSize:28 // anchors.horizontalCenter:mirrorlink_main.horizontalCenter // anchors.verticalCenter: mirrorlink_main.verticalCenter // text: systemCtrl.iLanguage == 1?"请通过USB数据线或蓝牙连接车机和手机。":"Connect the Phone and Vehicle with USB cable and BT. " // visible: !mirrorlink_main.bMaxWindow && (mirrorlinkCtrl.phoneIsConnected ===0)&&mirrorlinkCtrl.phonelinkStart // } //add by lizhe for half->full end Mirrorlink_Instructions{ id: halfInstruction x:0 y:0 visible: !mirrorlink_main.bMaxWindow && (mirrorlinkCtrl.phoneIsConnected ===0)&&mirrorlinkCtrl.phonelinkStart closeed: mirrorlink_main.visible } HMILabel{ id:loading_label //changed by lizhe for half->full start x:390 //#162385 start y:bMaxWindow?312:156 //changed by lizhe for half->full end font.pixelSize:30 width:180 height:50 //naca #146081 //#162385 end text:systemCtrl.iLanguage == 1?qsTr("加载中..."):qsTr("Loading…") color: "white" clip:true //changed by lizhe visible:mirrorlinkCtrl.getPhonelinkStatus() ===1?false:true //changed by lizhe } HMILoading { id:powerloadTimer //changed by lizhe for half->full start x:450 y:bMaxWindow?451:225 //#162385 //changed by lizhe for half->full end visible: (1===mirrorlinkCtrl.getPhonelinkStatus() )?false:true } //add by lizhe for half->full start onMaxWindow: { if(mirrorlink_main.bMaxWindow && mirrorlinkCtrl.phonelinkStart) //changed by lizhe #150221 { bButtonBarVisiable = false; //naca 151622 if (!half_window.intoApp){ mirrorlinkCtrl.sendMessageToPhonelink(66,0); } mirrorlinkCtrl.sendMessageToPhonelink(51,1) } } //add by lizhe naca 151229 begin onMinWindow: { //changed by lizhe for #157075 begin bButtonBarVisiable = true; half_window.intoApp = false; mirrorlinkCtrl.setPhonelinkNaviStatus(0)//ADD 2017/4/25 ld if(!mirrorlinkClose) { ScreenManager.changeForm(Layout.FM_OPACITY_END,WindowsList.MIRRORLINK_MAIN) waitTime.start(); } //changed by lizhe for #157075 end } //add by lizhe naca 151229 end //add by lizhe for half->full end onVisibleChanged: { //add by lizhe for half->full start bFullWindow = false; bMainWindow = false; //add by lizhe for half->full end if(mirrorlink_main.visible==true) { //modify by Jiyulong for mh_restart start 2017/7/13 if( true == mirrorlinkCtrl.getPhonelinkExitFlag()) { loading_label.visible = true; powerloadTimer.visible = true; mirrorlinkCtrl.setPhonelinkExitFlag(false); if(!systemCtrl.getWarningFlag())//ADD 2017/3/22 ld { mirrorlinkCtrl.startMirrorLinkApp(); flickMaskTimerOut.start() } systemCtrl.setGestureShieldState(Layout.GESTURE_POP,Layout.POP_ALL_NOT_AVAILABLE) flickMaskFlag=true } //modify by Jiyulong for mh_restart end mirrorlinkClose = false; //add by lizhe for #157075 //add by lizhe for half->full start bNoSwitchBarVisiable = true //mirrorlink_main.opacity=0 half_window.intoApp = false; //add by lizhe for half->full end console.log("***********************************mirrorlink_main visible true***********************************") mirrorlinkCtrl.setAppCommonMediaInfo(); if((!systemCtrl.getWarningFlag())&&(mirrorlinkCtrl.phonelinkStart) ) //add by lizhe for half->full { if(mirrorlink_main.bMaxWindow ) { ScreenManager.changeForm(Layout.FM_OPACITY_START,WindowsList.MIRRORLINK_MAIN) //change by lizhe naca #130957 waitTime.start(); //change by lizhe naca #130957 mirrorlinkCtrl.sendMessageToPhonelink(51,1) } else { mirrorlinkCtrl.sendMessageToPhonelink(51,2) } } mirrorlinkCtrl.setPhonelinkNaviStatus(0)//ADD 2017/4/25 ld //naviCtrl.setNaviPhonelinkStatus(1); //ADD naviphonelink xbw 20170111 end //modify by Jiyulong for #210943 start 2017/10/13 if ( true == ipod_phoneLink_error || true == ipodCtrl.ipod_getScanErrorFlag()) { if( popDelayTimer.running == true) { popDelayTimer.restart() } else { popDelayTimer.start() } } //modify by Jiyulong for #210943 end } else if((mirrorlink_main.visible==false)&&(mirrorlinkCtrl.phonelinkStart) ) { console.log("***********************************mirrorlink_main visible false***********************************"); //chang by lizhe naca #137683 waitTime.start(); //chang by lizhe naca #137683 ScreenManager.changeForm(Layout.FM_OPACITY_END,WindowsList.MIRRORLINK_MAIN) //ADD By qu-shh for auto display off start if(display_flag) { systemCtrl.auto_Displayoff_Unshield() display_flag = false } //ADD By qu-shh for auto display off end } } function reqphonelinkShow() { ScreenManager.changeForm(Layout.FM_OPACITY_START,WindowsList.MIRRORLINK_MAIN); //add by lizhe for #157075 //console.log("***************reqphonelinkShow******1******") if(mirrorlinkCtrl.phonelinkStart) { if(mirrorlinkCtrl.getLinkUpdateStatus()) { //console.log("***************reqphonelinkShow******2******") systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerShow) } else { //console.log("***************reqphonelinkShow******3******") systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerShow) } if(mirrorlinkCtrl.getPhonelinkNaviStatus() && (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN)&7) !=4)//fod 2017/4/18 ld { //console.log("***************reqphonelinkShow******4******") systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerShow) } mirrorlinkCtrl.sendMessageToPhonelink(51,1); } } function reqLinkLowerShow() { //changed by lizhe 20161221 if(mirrorlinkCtrl.getPhonelinkNaviStatus()){ systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerLowerShow); } if(mirrorlinkCtrl.getLinkUpdateStatus()){ systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerLowerShow); } systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerLowerShow); //changed by lizhe 20161221 } //change by lizhe naca #130957 Timer{ id : waitTime interval: 10 onTriggered: { if (mirrorlink_main.visible==true &&mirrorlink_main.bMaxWindow) //add by lizhe for #157075 { //changed by lizhe naca #146648 if (checkStaus()){ reqphonelinkShow (); } else { reqLinkLowerShow(); } //changed by lizhe naca #146648 end } //add by lizhe for #157075 begin else if (mirrorlink_main.visible==true &&!mirrorlink_main.bMaxWindow) { //ScreenManager.changeForm(Layout.FM_OPACITY_END,WindowsList.MIRRORLINK_MAIN) systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerHide); systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerHide); systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerHide); //mirrorlinkCtrl.sendMessageToPhonelink(51,0); mirrorlinkCtrl.sendMessageToPhonelink(51,2) } //add by lizhe for #157075 end //chang by lizhe naca #137683 else { //ScreenManager.changeForm(Layout.FM_OPACITY_END,WindowsList.MIRRORLINK_MAIN) systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerHide) systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerHide) systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerHide) //add by lizhe 20161223 mirrorlinkCtrl.sendMessageToPhonelink(51,0) } //chang by lizhe naca #137683 } } //change by lizhe naca #130957 Timer{ id : sleepTime interval: 1000 onTriggered: { loading_label.visible = false powerloadTimer.visible=false; //add by lizhe naca #146092 if (mirrorlink_main.visible==true && !systemCtrl.getWarningFlag()) //add by lizhe naca #146092 { console.log("*****************onPhonelinkStatusChanged========2==") if(mirrorlink_main.bMaxWindow) //changed by #157410 { //console.log("*****************onPhonelinkStatusChanged========3==") mirrorlink_main.opacity = 0 //systemCtrl.changeApp(Layout.HMI_APP_PHONELINK) //changed by #157410 //ScreenManager.changeForm(Layout.FM_OPACITY_START,WindowsList.MIRRORLINK_MAIN) waitTime.start(); mirrorlinkCtrl.sendMessageToPhonelink(51,1) } else { mirrorlinkCtrl.sendMessageToPhonelink(51,2) } } else { } } } //fod 2017/4/18 ld begin Timer{ id : backHome interval: 50 onTriggered: { mirrorlinkCtrl.sendMessageToPhonelink(51,0); } } Timer{ id : flickMaskTimerOut interval: 10000 onTriggered: { //console.log("mirrorlink flickMaskTimerOut") if(flickMaskFlag==true){ systemCtrl.setGestureShieldState(Layout.GESTURE_POP,Layout.POP_ALL_AVAILABLE) flickMaskFlag=false //console.log("mirrorlink flickMaskTimerOut over") } } } //fod 2017/4/18 ld end Connections { target: systemCtrl onWarningFlagChange: { console.log("***********************************mirrorlink_main onWarningFlagChange**********************************") if((!systemCtrl.getWarningFlag()) && mirrorlink_main.visible==true && mirrorlinkCtrl.phonelinkStart) { if(mirrorlink_main.bMaxWindow) { reqphonelinkShow() ScreenManager.changeForm(Layout.FM_OPACITY_START,WindowsList.MIRRORLINK_MAIN) mirrorlinkCtrl.sendMessageToPhonelink(51,1); } } } } Connections { target: mirrorlinkCtrl onPhonelinkMessageSend: { //changed by lizhe for half->full start console.log("~~~~~~~~~~~type~~~~~~~~~~",type); console.log("~~~~~~~~~~~value~~~~~~~~~~",value); //ADD By qu-shh for auto display off start if((type == MirrorEvent.MSG_TYPE_LINK_NAVI_SHOW_FOREGROUND) || ((type == MirrorEvent.MSG_TYPE_LINK_MAP_STATUS) && (value == 1))) { if(!display_flag) { systemCtrl.auto_Displayoff_Shield() display_flag = true } } else { if(display_flag) { systemCtrl.auto_Displayoff_Unshield() display_flag = false } } //ADD By qu-shh for auto display off end switch(type) { case MirrorEvent.MSG_TYPE_LINK_STATUS: if (value == 0){ mirrorlinkClose = true; //add by lizhe for #157075 ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.MIRRORLINK_MAIN); } break; case MirrorEvent.MSG_TYPE_LINK_RUN_STATUS: if (value == 0){ loading_label.visible = true; powerloadTimer.visible=true; } else if (value == 1){ settingCtrl.setBackgroundForMirrorlink()//ADD #167353 baojinfeng 2017/05/31 begin loading_label.visible = false; powerloadTimer.visible=false; //naviCtrl.setNaviPhonelinkStatus(1); //ADD naviphonelink xbw 20170111 end if(flickMaskFlag==true){ //console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ mirrorlinkCtrl setGestureShieldState") systemCtrl.setGestureShieldState(Layout.GESTURE_POP,Layout.POP_ALL_AVAILABLE) flickMaskFlag=false } } else{ //do nothing } break; case MirrorEvent.MSG_TYPE_LINK_MAP_STATUS: if(mirrorlinkCtrl.getPhonelinkNaviStatus() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN)&7) !=4)//fod 2017/4/48 ld { if (checkStaus()) { systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerShow); } else { systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerLowerShow); } } break; case MirrorEvent.MSG_TYPE_LINK_CONNECT_STATUS: if (value == 0) { if ( Layout.HMI_SRC_APPLINK ==systemCtrl.getCurrentSource() || Layout.HMI_SRC_MIRROLINK_VIDEO ==systemCtrl.getCurrentSource()) { //MODIFY By qu-shh for add linkdummy source start systemCtrl.reqSource(Layout.HMI_SRC_LINK_DUMMY,Layout.HMI_SRC_START,Layout.HMI_SRC_Front); //MODIFY By qu-shh for add linkdummy source end } } break; //add by lizhe for navi mutex start case MirrorEvent.MSG_TYPE_LINK_NAVI_SHOW_FOREGROUND: naviCtrl.setNaviPhonelinkStatus(1); break; //add by lizhe for navi mutex end default: break; } //changed by lizhe for half->full end } onPhonelinkStatusChanged: { console.log("*****************onPhonelinkStatusChanged========mirrorlinkCtrl.phonelinkStart=="+mirrorlinkCtrl.phonelinkStart) if(mirrorlinkCtrl.phonelinkStart) { //if(mirrorlink_main.visible==true) delete by lizhe naca 148853 //{ console.log("*****************onPhonelinkStatusChanged========1==") //if(!systemCtrl.getWarningFlag()) delete by lizhe naca #146092 //{ sleepTime.start(); //} //} } } //add by lizhe for half->full start onSigPhonelinkHafChanged: { if(bMaxWindow) //naca 151622 { //changed by lizhe for #157075 begin ScreenManager.changeForm(Layout.FM_MINIMUM,windowID); bButtonBarVisiable = true; //naca 151622 //changed by lizhe for #157075 end } } // onSigFingerLeft: // { // if(mirrorlink_main.bMaxWindow) // { // //console.log("@@@@@@@@@@@@@@onSingleFingerGestureSignals_Left@@@@@@@@@@@@@@@@@@") // //mirrorlinkCtrl.sendMessageToPhonelink(51,0) // systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerLowerShow) // systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerLowerShow) // systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerLowerShow) // } // } // onSigFingerRight: // { // if(mirrorlink_main.bMaxWindow) // { // //console.log("@@@@@@@@@@@@@@onSingleFingerGestureSignals_Right@@@@@@@@@@@@@@@@@@"); // //mirrorlinkCtrl.sendMessageToPhonelink(51,0) // systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerLowerShow) // systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerLowerShow) // systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerLowerShow) // } // } //modify by Jiyulong for mh_restart start 2017/7/13 onPhoneLink_ScreenExit: { // console.log("---------- onPhoneLink_ScreenExit ----------------- =",WindowsList.MIRRORLINK_MAIN); if( true == mirrorlink_main.bMaxWindow) { // mirrorlinkClose = true; ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.MIRRORLINK_MAIN); // systemCtrl.homelineclose(); } else { ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.MIRRORLINK_MAIN); systemCtrl.homelineclose(); } } //modify by Jiyulong for mh_restart end } //add by lizhe for half->full end Connections { target:ScreenManager onFormchange:{ //changed by lizhe for half->full start console.log("------------------------------overlay----------------------------",formType); console.log("------------------------------overlay&7----------------------------",(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN)&7)); if (((ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &8) == 8)&& ((ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) != 0)&& ((ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) != 4)) { console.log ("------phonelink layer need show--------------------"); if(mirrorlink_main.visible) { if (formType === Layout.overlayerShow)//有POPUP显示 { if (!checkStaus()){ console.log("------------overlay show, MirrorLink layer lower show--------------"); reqLinkLowerShow() } } else { if (checkStaus())//check是否还有其他popup { if((!systemCtrl.getWarningFlag()) && (mirrorlinkCtrl.phonelinkStart) ) //changed by lizhe for #157075 { //change by lizhe naca #130957 waitTime.stop(); waitTime.start(); //change by lizhe naca #130957 } } //changed by lizhe #naca ST_Bug #137531 else { waitTime.stop(); } } } } else { //add by lizhe naca 151229 begin if( (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 0 || (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 4) { if(mirrorlink_main.visible && mirrorlink_main.bMaxWindow) { waitTime.stop(); //fod 2017/4/18 ld begin systemCtrl.changWindowlayer(Layout.PHONEUPGRADE_LAYER,Layout.LayerHide) systemCtrl.changWindowlayer(Layout.PHONELINK_LAYER,Layout.LayerHide) systemCtrl.changWindowlayer(Layout.PHONELINKNAVI_Layer,Layout.LayerHide) backHome.restart() //mirrorlinkCtrl.sendMessageToPhonelink(51,0); //fod 2017/4/18 ld end } } //add by lizhe naca 151229 end } } //changed by lizhe for half->full end } Connections { target: systemCtrl onPowerNotice :{ console.log("----MirrorLink--------onPowerNotice--------",status); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { if(status ===0 || status===2) { console.log("---MirrorLink------power-off----"); reqLinkLowerShow() } else if (status ===1 || status === 3) { console.log("---mirrorlink_main.qml------power-on-------"); if (checkStaus()) { reqphonelinkShow() } } else { console.log ("---mirrorlink_main.qml------status---error--------"); } } } //ADD 2017/3/22 ld onWarningFlagChange: { if(mirrorlink_main.visible) { mirrorlinkCtrl.startMirrorLinkApp(); flickMaskTimerOut.start() } } //ADD 2017/3/22 ld } Connections { target: acCtrl /*****倒车***************/ onCvbsStatusOn:{ console.log("------mirrorlink_main.qml-----DaoChe----on----------"); if (MirrorEvent.checkMaxWindow() ) //changed by lizhe for half->full { reqLinkLowerShow() } } onCvbsStatusOff:{ console.log("------mirrorlink_main.qml-----DaoChe----off----------"); if (MirrorEvent.checkMaxWindow() && (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } /*********空调*****BODY B************/ onShowAdjustment:{ console.log("----------ShowAdjustment-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { reqLinkLowerShow() } } onHideAdjustment:{ console.log("----------onHideAdjustment-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } /*********空调*****乘客温度区域************/ onShowPassengerTemp:{ console.log("----------ShowPassengerTemp-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { reqLinkLowerShow() } } onHidePassengerTemp:{ console.log("----------HidePassengerTemp-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } /*********空调*****驾驶员温度************/ onShowDriverTemp:{ console.log("----------ShowDriverTemp-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { reqLinkLowerShow() } } onHideDriverTemp:{ console.log("----------HideDriverTemp-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } // add by lizhe onShowDriverSeat:{ console.log("----------showDriverSeat-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { reqLinkLowerShow() } } onHideDriverSeat:{ console.log("----------hideDriverSeat-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } onShowPassengerSeat:{ console.log("----------showPassengerSeat-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) { reqLinkLowerShow() } } onHidePassengerSeat:{ console.log("----------hidePassengerSeat-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow() &&(ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2) //changed by lizhe for half->full { if (checkStaus()) { reqphonelinkShow() } } } // add by lizhe } Connections { target: settingCtrl onTellQuickLinkShow:{ console.log("----------TellQuickLinkShow-----------mirrorlink_main.qml----------"); if (MirrorEvent.checkMaxWindow()) //changed by lizhe for half->full { reqLinkLowerShow() } } onTellQuickLinkHide:{ console.log("----------TellQuickLinkHide-----------mirrorlink_main.qml----------"); //changed by lizhe for half->full start if (MirrorEvent.checkMaxWindow()) { if (checkStaus()) { console.log("-------------------------------------------------------",ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7); if((ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) === 2 ) { reqphonelinkShow(); } } } //changed by lizhe for half->full end } } //modify by Jiyulong for #210943 start 2017/10/13 Connections { target: ipodCtrl onIpod_scan_isError: { ipod_phoneLink_error = true if(true == mirrorlink_main.visible) { ScreenManager.showOverlay(WindowsList.MIRRORLINK_STATEERROR) } } onIpod_disconnect: { ipod_phoneLink_error = false popDelayTimer.stop() if(true == ScreenManager.isOverlayShowed(WindowsList.MIRRORLINK_STATEERROR) ) { ScreenManager.hideOverlay(WindowsList.MIRRORLINK_STATEERROR) } } } //modify by Jiyulong for #210943 end function checkStaus() { var status = false; /* console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.iCVBSStatus === AC.HMI_CVBS_OFF); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",systemCtrl.getPowerStatus()===Layout.POWER_ON); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.getAdjustmentPageStatus() === AC.AC_BODYB_PAGE_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.getDriverTempPageStatus() === AC.AC_BODYB_PAGE_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.getPassengerTempPageStatus() === AC.AC_BODYB_PAGE_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",!ScreenManager.checkHighOverlay(WindowsList.MIRRORLINK_MAIN)); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",settingCtrl.getQuickLinkShowState() === Setting.QUICK_LINK_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",!vrCtrl.vrGetVisibleStatus()); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.getDriverSeatPageStatus() === AC.AC_BODYB_PAGE_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",acCtrl.getPassengerSeatPageStatus() === AC.AC_BODYB_PAGE_HIDE); console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7); */ //changed by lizhe #naca ST_Bug #137531 if (acCtrl.iCVBSStatus === AC.HMI_CVBS_OFF && systemCtrl.getPowerStatus()===Layout.POWER_ON && acCtrl.getAdjustmentPageStatus() === AC.AC_BODYB_PAGE_HIDE && acCtrl.getDriverTempPageStatus() === AC.AC_BODYB_PAGE_HIDE && acCtrl.getPassengerTempPageStatus() === AC.AC_BODYB_PAGE_HIDE //&&!ScreenManager.checkHighOverlay(WindowsList.MIRRORLINK_MAIN)//for PC link && settingCtrl.getQuickLinkShowState() === Setting.QUICK_LINK_HIDE /*&& !vrCtrl.vrGetVisibleStatus()*/ && acCtrl.getDriverSeatPageStatus() === AC.AC_BODYB_PAGE_HIDE && acCtrl.getPassengerSeatPageStatus() === AC.AC_BODYB_PAGE_HIDE && (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) !== 0 && (ScreenManager.getFormInfo(WindowsList.MIRRORLINK_MAIN) &7) !== 4)//del by yx { status = true; return status; } return status; } //modify by Jiyulong for #210943 start 2017/10/13 Timer { id:popDelayTimer interval: 3000 running: false repeat: false onTriggered: { ScreenManager.showOverlay(WindowsList.MIRRORLINK_STATEERROR) } } //modify by Jiyulong for #210943 end }