summaryrefstree
path: root/usr/bin/qml/VR/HMIVR_Resident.qml
blob: 55a402099a5a529f2c3a143cf743c4c9343a8c45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import QtQuick 2.0
import Label 2.0

import "../com/neusoft/auto/widgets"
import "../eventsList.js" as EventsList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import "../home/moduleList.js" as ModuleList
import "../home/FuncList.js" as Func

Item
{
    id:vr_resident
    property int ivoice: settingControl.getVoicewakeup()
	property string vrLog: "[HMI_VR_QML][Resident]"

	signal vrSourceOk()
	signal vrSourceEnd()
	signal radioSourceOk()
	signal mediaSourceOk()

    Connections {
        target: vrControl
        onVrVoiceUpFlagChanged:
        {
            if(ret == true)
            {
                if(ivoice == 1)
                {
                    systemControl.onBtnDown(Func.SOURCE_VR,Func.SOURCE_START,Func.SOURCE_FRONT)
                    ScreenManager.changeLayout(EventsList.LT_CALL, Layout.VR, WindowsList.HMIVR_MAIN)
                }
            }
        }
    }
/*
	Connections {
		target: systemControl
		onAppVRSourceOk: {
            //console.debug(vrLog, "onAppVRSourceOk!")
			if(vrState == Func.SOURCE_START)
			{
                //console.debug(vrLog, "onAppVRSourceOk SOURCE_START")
				vrSourceOk()
			}
		   else
			{
                //console.debug(vrLog, "onAppVRSourceOk SOURCE_END")
				vrSourceEnd()
			}
		}

		onAppRadioSourceOk: {
            //console.debug(vrLog, "onAppRadioSourceOk!")
			radioSourceOk()
		}
		onAppLastBandRadio:{
            //console.debug(vrLog, "onAppRadioSourceOk!")
			radioSourceOk()
		}

		onAppIPODSourceOk: {
            //console.debug(vrLog, "onAppIPODSourceOk!")
			mediaSourceOk()
		}
		onAppUSBSourceOk: {
            //console.debug(vrLog, "onAppUSBSourceOk!")
			mediaSourceOk()
		}
	}
*/
}