blob: a5c381490b1f6481aa83fdeb1a9dba0ebc0c3a5f (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
|
import QtQuick 2.0
import "../../eventsList.js" as EventsList
import "../../com/neusoft/auto/widgets"
import "../../layoutList.js" as Layout
import "../../windowsList.js" as WindowsList
import "../../Setting/Settinglist.js" as Settinglist
import Label 2.0
HMIWindow
{
//y: 128
property int curCallLogIndex: 0
//property string testvals: "0"
property int curChoice: 0//5
property bool btBtnEnabledSta:btCtrl.btConnectState
//ADD #F0123 2016/12/08 wangshuang begin
property bool pop_loadingState:true
//ADD #F0123 2016/12/08 wangshuang end
Component.onCompleted:
{
windowID = WindowsList.BTP_RECENT
}
onVisibleChanged:
{
bFullWindow = true//ghy
//st bug 91073 start
if(visible==true)
{
bNoSwitchBarVisiable = true
//FOD 2018/09/26 by wangyuecheng for changeForm begin
//if((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0xf) == 3)
//FOD 2019/02/13 by wyc begin
/*if(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_BODYB)
//FOD 2018/09/26 by wangyuecheng for changeForm end
{
//FOD 2018/09/26 by wangyuecheng for changeForm begin
//if((ScreenManager.getFormInfo(WindowsList.BTP_HOME)&7) != 0)
if(ScreenManager.getFormInformation(WindowsList.BTP_HOME) != Layout.NOT_ACTIVE)
//FOD 2018/09/26 by wangyuecheng for changeForm end
{
back.visible = false
}
else
{
back.visible = true
}
}
else
{
back.visible = true
}*/
//ADD #128604 2016/12/08 wudm begin
back.visible = true
//FOD 2019/02/13 by wyc FOR 320038 318418 316954 end
if((true == btCtrl.btCallLogIsLoading)&&(true == btCtrl.btserviceIsHFP))
{
recentLoadingTextShowTimer.start()
}
//ADD #128604 2016/12/08 wudm begin
//FOD 2018/12/24 by changying begin
//console.log(curChoice+"cy")
if((btCtrl.btConnectState == true)&&(btCtrl.btPhoneCallLogCounts == 0) && (curChoice == 0)){
no_Recents.visible = true
no_Missed.visible = false
} else if ((btCtrl.btConnectState == true)&&(btCtrl.clMissedNum == 0 )&& (curChoice == 1))
{
no_Recents.visible = false
no_Missed.visible = true
}
else
{
no_Recents.visible = false
no_Missed.visible = false
}
//FOD 2018/12/24 by changying end
}
//ADD by wyc 2019/03/25 begin
else
{
if(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==true)
{
ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
}
//ADD by wyc 2019/03/25 end
//st bug 91073 end
//ADD #F0123 2016/12/08 wangshuang begin
pop_loadingState=true
//ADD #F0123 2016/12/08 wangshuang end
}
HMILabel
{
//Fod #F0002 2016/10/10 wangshuang begin
x:240//130
y:back_btn_label.y//5
width:480//700
height:38//57
text:qsTr("Recents")+ systemCtrl.emptyString
color: "white"
font.pixelSize: 30
//Del #F185 2017/02/06 wangshuang begin
//horizontalAlignment: text.horizontalAlignment
//verticalAlignment: text.verticalAlignment
//Del #F185 2017/02/06 wangshuang end
//Fod #F0002 2016/10/10 wangshuang end
}
HMIButton
{
id:back
x:0//5//3
y:5//8//-4
width: 150//138//50//130
height: 70//64//80
//btnImg:back.pressed?("qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle)//ghy :("qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle)//ghy
opacity:1//ghy
Image
{
id:back_btn_image
x:5//20//12
//y:21//20
width: 50//20//24
height:64//34//40
source: back.pressed?("qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle)
:("qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle)//ghy
anchors.verticalCenter:parent.verticalCenter
}
HMILabel
{
id:back_btn_label
//FOD 2018/10/10 by wyc begin
x:54//60//58//36
y:25
//Fod #F0017 2016/10/11 wangshuang begin
width: 150//90//64//60
//FOD 2018/10/10 by wyc end
//Fod #F0017 2016/10/11 wangshuang end
height:38//30
text: qsTr("Back")+ systemCtrl.emptyString
font.pixelSize: 30
anchors.verticalCenter:parent.verticalCenter
horizontalAlignment: Text.AlignLeft
}
onClicked:
{
callLogListModel.cancelFlick() //ADD 2019/02/14 by wyc FOR 319705
callLogListModel.positionViewAtBeginning()
//FOD 2018/09/26 by wangyuecheng for changeForm begin
//ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_HOME)
ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_HOME)
//FOD 2018/09/26 by wangyuecheng for changeForm end
}
}
//ADD 2019/02/14 by wyc FOR 319705 begin
onCloseWindow:
{
callLogListModel.positionViewAtBeginning();
}
//ADD 2019/02/14 by wyc FOR 319705 end
Item
{
x:58//58
y:81//241-160
width:879
//Fod #121463 2016/10/13 wangshuang begin
height: bMaxWindow == true?800:320//806:326
//Fod #121463 2016/10/13 wangshuang end
HMIListView
{
id:callLogListModel
anchors.fill: parent
clip:true
//model:callLog_Model
model:btCtrl.btAllCallLogListModel
delegate: recent_CallLog
keyNavigationWraps: true
orientation: ListView.Vertical
highlightFollowsCurrentItem: true
snapMode: ListView.SnapToItem
scrollBar:true
scrollBar_edge:0
scrollBar_width:8//4
spacing: 2
scrollBar_img:"qrc:MATERIAL/MATERIAL_SLIDER_BAR_CENTRE"+bgImageStyle
}
Component
{
id:recent_CallLog
HMIButton
{
id:callLog_List
height: 78
// btnImg:"qrc:MATERIAL/MATERIAL_M8X_LIST"+bgImageStyle
btnImg:callLog_List.pressed?("qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle)//ghy
// Image
// {
// height: 78
// visible: (curCallLogIndex == index) ? true:false
// source:(callLog_List.pressed)?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle)
// }
HMILabel
{
//Fod #F185 2017/02/06 wangshuang begin
x:21//55-34
y:16//206-190
//Fod #F185 2017/02/06 wangshuang end
width:30
height:37
Image
{
x:7
y:5
source:
switch(col3)
{
case "2"://missed //changed by ghy 2018/9/18
("qrc:MATERIAL/MATERIAL_ICON_MISSED-CALLS"+bgImageStyle)//ghy
break;
case "4"://outgoing //changed by ghy 2018/9/18
//Fod #F0064 2016/10/21 wangshuang begin
("qrc:MATERIAL/MATERIAL_ICON_OUTGOING-CALL"+bgImageStyle)//ghy
//("qrc:MATERIAL/MATERIAL_M8X_ICON_DIALED-CALL"+bgImageStyle)
break;
case "3"://incoming
("qrc:MATERIAL/MATERIAL_ICON_INCOMING-CALL"+bgImageStyle)//ghy
//"qrc:MATERIAL/MATERIAL_M8X_ICON_RECEIVED-CALLS"+bgImageStyle
//Fod #F0064 2016/10/21 wangshuang end
break;
default:
break;
}
}
}
Item
{
id:recent_Phone
x:80
y:10
height: 38//28
width:300
HMILabel
{
anchors.fill: parent
font.pixelSize:30
horizontalAlignment: Label.AlignLeft
wrapMode: Text.WrapAnywhere
elide:Text.ElideRight
// Fod stbug#133192 wudm 2016/12/15 begin
text:(col0 == "")?((col4+col5=="")?(qsTr("Unknown")+ systemCtrl.emptyString):col4+col5):col0+col5//(col0 == "")?col5+col4:col5+col0//name
// Fod stbug#133192 wudm 2016/12/15 end
//ADD F0202 2017/02/17 wangs begin
wtitesize:2
//ADD F0202 2017/02/17 wangs end
}
}
Item
{
x:80
y:49
width:296
height: 20
HMILabel
{
anchors.fill: parent
font.pixelSize:22
color: callLog_List.pressed?"white":"#808080"
wtitesize:1
horizontalAlignment: Label.AlignLeft
wrapMode: Text.WrapAnywhere
elide:Text.ElideRight
text:(col0 == "")?"":col4//number
}
}
//Fod #F0148 2017/01/11 wangshuang begin
Item
{
//Fod #F0016 2016/10/11 wangshuang begin
x:600//530//460
//y:14//10
height: 37
width:180//150
anchors.verticalCenter: parent.verticalCenter
HMILabel
{
anchors.fill: parent
font.pixelSize:30//26//24
//color: callLog_List.pressed?"white":"#A0A0A0"
horizontalAlignment: Label.AlignRight//AlignLeft
//wrapMode: Text.WrapAnywhere
//elide:Text.ElideRight
text:col1//date
}
}
// Item
// {
// x:715//700
// y:14//10
// height: 37
// width:90
// HMILabel
// {
// anchors.fill: parent
// font.pixelSize:26//20
// color: callLog_List.pressed?"white":"#A0A0A0"
// //wtitesize:1
// horizontalAlignment: Label.AlignLeft
// wrapMode: Text.WrapAnywhere
// //elide:Text.ElideRight
// text:col2//time
// //Fod #F0016 2016/10/11 wangshuang end
// }
// }
//Fod #F0148 2017/01/11 wangshuang end
onPressed:
{
if( true == btBtnEnabledSta )
{
if (curCallLogIndex != index)
{
curCallLogIndex = index
}
}
}
onClicked:
{
btCtrl.outGoingCall(col4)
}
}
}
}
//Add #129445 2016/11/30 wangs begin
MouseArea
{
id:scroolbarcover
//Fod #F185 2017/02/06 wangshuang begin
x:900//58+842
//Fod #F185 2017/02/06 wangshuang end
y:81
width:60
height: bMaxWindow == true?800:320
}
//Add #129445 2016/11/30 wangs end
HMIButton
{
id:icon_AllCall
//Fod #151771 2017/02/24 wangs begin
x:90//147
//Fod F0208 2017/02/22 wangs begin
//FOD 2018/10/10 by wyc begin
y:882//bMaxWindow == true?881:401//888:408
//Fod F0208 2017/02/22 wangs end
width: 435//389//390//275
//FOD 2018/10/10 by wyc end
height: 76//78//66
//Fod #151771 2017/02/24 wangs end
//labelText: qsTr("All calls")+ systemCtrl.emptyString
//labelPixelSize:18
//enabled: !(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD))
//FOD 2018/10/10 by wyc begin
//btnImg:icon_AllCall.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P"+bgImageStyle)
// :curChoice == 0?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P"+bgImageStyle)
// :("")//ghy
btnImg:icon_AllCall.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P_NOSWITCH"+bgImageStyle)
:curChoice == 0?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P_NOSWITCH"+bgImageStyle)
:("")
//FOD 2018/10/10 by wyc end
Item
{
anchors.centerIn: parent
Image
{
id:icon_AllCall_image
x:-18
y:-25
width: 40
height:34
source: "qrc:MATERIAL/MATERIAL_ICON_TAG_ALL-CALLS"+bgImageStyle//ghy
}
HMILabel
{
x:-70
y:10
width: 150
height: 28
font.pixelSize: 18
text:qsTr("All calls")+ systemCtrl.emptyString
//Del #F185 2017/02/07 wangshuang begin
//horizontalAlignment: Label.horizontalCenter
//Del #F185 2017/02/07 wangshuang end
elide:Text.ElideRight
}
}
onClicked:
{
if(false == btCtrl.btCallLogIsLoading)//if( (true == btBtnEnabledSta)&&(false == btCtrl.btCallLogIsLoading) )
{
curChoice = 0
callLogListModel.model = btCtrl.btAllCallLogListModel
//FOD 2018/12/24 by changying begin
if((btCtrl.btConnectState == true)&&(btCtrl.btPhoneCallLogCounts == 0))
{
no_Recents.visible = true
no_Missed.visible = false
}
else
{
no_Recents.visible = false
no_Missed.visible = false
}//FOD 2018/12/24 by changying end
}
}
}
HMIButton
{
id:icon_Missed
//Fod #151771 2017/02/24 wangs begin
//Fod #F185 2017/02/06 wangshuang begin
//FOD 2018/10/10 by wyc begin
x:525//481//536//icon_AllCall.x+389
//Fod #F185 2017/02/06 wangshuang end
//Fod F0208 2017/02/22 wangs begin
y:882//bMaxWindow == true?881:401//888:408
//Fod F0208 2017/02/22 wangs end
width: 435//389//390//277
//FOD 2018/10/10 by wyc end
height: 76//78//66
//Fod #151771 2017/02/24 wangs end
//labelText: qsTr("Missed calls")+ systemCtrl.emptyString
//labelPixelSize:18
//enabled: !(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD))
//FOD 2018/10/10 by wyc begin
//btnImg:icon_Missed.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P"+bgImageStyle)
// :curChoice == 1?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P"+bgImageStyle)
// :("")//ghy
btnImg:icon_Missed.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P_NOSWITCH"+bgImageStyle)
:curChoice == 1?("qrc:MATERIAL/MATERIAL_FUNCTION_2_BUTTON_P_NOSWITCH"+bgImageStyle)
:("")
//FOD 2018/10/10 by wyc begin
Item
{
anchors.centerIn: parent
Image
{
id:icon_Missed_image
x:-18
y:-25
width: 38
height:34
source: "qrc:MATERIAL/MATERIAL_ICON_TAG_MISSED-CALLS"+bgImageStyle//ghy
}
HMILabel
{
x:-145//-70
y:10
width: 300//150
height: 28
font.pixelSize: 18
text:qsTr("Missed calls")+ systemCtrl.emptyString
//Del #F185 2017/02/07 wangshuang begin
//horizontalAlignment: Label.horizontalCenter
//Del #F185 2017/02/07 wangshuang end
elide:Text.ElideRight
}
}
onClicked:
{
if(false == btCtrl.btCallLogIsLoading)//if( (true == btBtnEnabledSta)&&(false == btCtrl.btCallLogIsLoading) )
{
//testvals = "1"
curChoice = 1
callLogListModel.model = btCtrl.btMissedListModel
//FOD 2018/12/24 by changying begin
if((btCtrl.btConnectState == true)&&(btCtrl.clMissedNum == 0))
{
no_Missed.visible = true
no_Recents.visible = false
}
else
{
no_Missed.visible = false
no_Recents.visible = false
}//FOD 2018/12/24 by changying end
console.log("*********** cyy")
}
}
}
//FOD 2018/12/24 by cy begin
HMILabel
{
id:no_Recents
visible: false
x:90
y:410
width:780
height:82
font.pixelSize: 30
text:qsTr("No recents")+ systemCtrl.emptyString
}
HMILabel
{
id:no_Missed
visible: false
x:90
y:410
width:780
height:82
font.pixelSize: 30
text:qsTr("No missed calls")+ systemCtrl.emptyString
}
//FOD 2018/12/24 by cy end
Item
{
id:unconnect
x:100
y:60
height: 246+8
width:760
visible: (btCtrl.btConnectState == false || btCtrl.btserviceIsHFP == false)
&&(false == btCtrl.btCallLogIsLoading)
HMILabel
{
id:noConnect
anchors.fill: parent
//text: qsTr("Please connect BT in BT setting")+ systemCtrl.emptyString
font.pixelSize: 30
//Fod #148062 2017/02/09 wangshuang begin
text:(btCtrl.btPhoneConnTextState == 1)?qsTr("Please connect BT in BT settings")+ systemCtrl.emptyString:((btCtrl.btPhoneConnTextState == 2)?(qsTr("Please activate call audio in your phone")+ systemCtrl.emptyString):"")//(btCtrl.btPhoneConnTextState == 1)?qsTr("Please connect BT in BT setting")+ systemCtrl.emptyString:((btCtrl.btPhoneConnTextState == 2)?(qsTr("Please activate call audio in your phone")+ systemCtrl.emptyString):"")
//Fod #148062 2017/02/09 wangshuang end
}
}
Item
{
id:loadingState
// x:400
// y:bMaxWindow == true?200+210:210
x:440
y:bMaxWindow?440:220
// height: 246+8
// width:760
// visible: ((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true)||(btCtrl.btCallLogDownIsFailStatus))
HMILoading
{
id:loadTimer
//Fod #F0123 2016/12/08 wangshuang begin
visible: ((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true)&&(pop_loadingState==false))?true:false//((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true)?true:false)
//Fod #F0123 2016/12/08 wangshuang end
}
}
// Rectangle
// {
// id:callLogLoadSta
// color: "#000000"
// opacity: 0.5
// x:0
// y:56
// height: bMaxWindow == true?640+8:256+8
// width:760
// //stbug #87231 start
// visible: ((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true)||(btCtrl.btCallLogDownIsFailStatus))
// //stbug #87231 end
// HMILabel
// {
// anchors.fill: parent
// anchors.horizontalCenter: Label.horizontalCenter
// anchors.verticalCenter: Label.verticalCenter
// text: btCtrl.btCallLogTextState
// }
// HMIMouseArea
// {
// anchors.fill: parent
// onClicked:
// {
// console.log("recent qml:callLogLoadSta***********************btCtrl.setBtPhonePopTimerStop()*************")
// btCtrl.setBtCallLogLoadPopTimerStop()
// }
// }
// }
//ADD #128604 2016/12/08 wudm begin
Timer{
id:recentLoadingTextShowTimer
interval: 3
onTriggered:
{
// console.log("[QML-recent.qml] ++++++++ recentLoadingTextShowTimer showOverlay WindowsList.BTP_RECENT_DOWNLOAD")
ScreenManager.showOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
}
//ADD 2019/03/29 by wyc FOR 327172 begin
Timer{
id:recentLoadingTextHideTimer
interval: 3
onTriggered:
{
if (false == btCtrl.btCallLogIsLoading)
{
if (ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD) == true)
{
ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
}
}
}
//ADD 2019/03/29 by wyc FOR 327172 end
//ADD #128604 2016/12/08 wudm end
Connections
{
target: btCtrl
onBtConnectStatusChanged:
{
if(((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true))||(btCtrl.btCallLogDownIsFailStatus))
{
// console.log("555 qml:btp-recent.qml***********************WindowsList.BTP_RECENT_DOWNLOAD is show")
//FOD 2018/09/26 by wangyuecheng for changeForm begin
/*if(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 2)
||((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 3)
||(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 0)&&
((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 4)&&
((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x8) == 1)))*/
if((ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_BODYA)
||(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_BODYB)
||((ScreenManager.getFormInformation(WindowsList.BTP_RECENT) != Layout.NOT_ACTIVE)&&
(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) != Layout.SHELTER_BODYA)&&
(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_FULL)))
//FOD 2018/09/26 by wangyuecheng for changeForm begin
{
// console.log("111 qml:btp-recent.qml***********************WindowsList.BTP_RECENT_DOWNLOAD is show")
//Fod #128604 2016/12/08 wudm begin
if(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==false)
{
ScreenManager.showOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
//Fod #128604 2016/12/08 wudm end
}
}
else
{
ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
//ADD #143062 2017/01/06 wangshuang begin
pop_loadingState=true
//ADD #143062 2017/01/06 wangshuang end
}
onBtDownLoadingStatusChanged:
{
if(((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true))||(btCtrl.btCallLogDownIsFailStatus))
//FOD 2019/01/08 by wyc for ST#315295 end
{
// console.log("4444 qml:btp-recent.qml***********************WindowsList.BTP_RECENT_DOWNLOAD is show")
//FOD 2018/09/26 by wangyuecheng for changeForm begin
/*if(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 2)
||((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 3)
||(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 0)&&
((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 4)&&
((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x8) == 1)))*/
if(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_FULL)
//FOD 2018/09/26 by wangyuecheng for changeForm end
{
// console.log("222 qml:btp-recent.qml***********************WindowsList.BTP_RECENT_DOWNLOAD is show")
//Fod #128604 2016/12/08 wudm begin
//Fod: stbug#163675 wudm 2017/04/07 begin
if(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==false
&&(loadTimer.visible==false))
//Fod: stbug#163675 wudm 2017/04/07 end
{
ScreenManager.showOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
}
//Fod #128604 2016/12/08 wudm end
}
}
else
{
ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
//FOD 2018/12/24 by changying begin
if((btCtrl.btConnectState == true)&&(btCtrl.btPhoneCallLogCounts == 0)&& (curChoice == 0)){
no_Recents.visible = true
no_Missed.visible = false
} else if ((btCtrl.btConnectState == true)&&(btCtrl.clMissedNum == 0 )&& (curChoice == 1))
{
no_Recents.visible = false
no_Missed.visible = true
}
else
{
no_Recents.visible = false
no_Missed.visible = false
}//FOD 2018/12/24 by changying end
}
}
//ADD #F0123 2016/12/08 wangshuang begin
onBtLoadingStateChanged:
{
pop_loadingState=btCtrl.btLoadingState
}
//ADD #F0123 2016/12/08 wangshuang end
//FOD 2018/12/28 by changying begin
onBtRecentAllListModelChanged:
{
//ADD 2019/02/13 by wyc FOR 320038 318418 316954 begin
//console.log("[onBtRecentAllListModelChanged] btCtrl.btCallLogIsLoading:" + btCtrl.btCallLogIsLoading)
//ADD 2019/02/20 by wyc FOR 319579 begin
if (true == btCtrl.btCallLogIsLoading)
{
if(ScreenManager.getFormInformation(WindowsList.BTP_RECENT) == Layout.SHOW_FULL)
{
if (ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==false)
{
ScreenManager.showOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
recentLoadingTextHideTimer.start() //ADD 2019/03/29 by wyc FOR 327172
}
}
}
//ADD 2019/02/20 by wyc FOR 319579 end
if(((false == btCtrl.btCallLogIsLoading)&&(true == btCtrl.btserviceIsHFP))&&((false == btCtrl.btCallLogDownIsFailStatus)))
{
if(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==true)
{
console.log("[onBtRecentAllListModelChanged] hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)")
ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
btCtrl.setBtCallLogLoadPopTimerStop()
}
if(loadTimer.visible==true)
{
//loadTimer.visible=false
}
}
//ADD 2019/02/13 by wyc FOR 320038 318418 316954 end
if((btCtrl.btConnectState == true)&&(btCtrl.btPhoneCallLogCounts == 0 )&& (curChoice == 0)){
no_Recents.visible = true
no_Missed.visible = false
} else if ((btCtrl.btConnectState == true)&&(btCtrl.clMissedNum == 0 )&& (curChoice == 1))
{
no_Recents.visible = false
no_Missed.visible = true
}
else
{
no_Recents.visible = false
no_Missed.visible = false
}
}
//FOD 2018/12/28 by changying end
}
Connections
{
target: systemCtrl
onAppLanguageChangOk:
{
}
}
//ADD #142761 2017/01/03 wangshuang begin
Connections
{
target:ScreenManager
// onBtHungupPageReset://del by lium for screenchange begin
// {
// if(((true == btCtrl.btCallLogIsLoading)&&(btCtrl.btserviceIsHFP == true))||(btCtrl.btCallLogDownIsFailStatus))
// {
// if(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 2)
// ||((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) == 3)
// ||(((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 0)&&
// ((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x7) != 4)&&
// ((ScreenManager.getFormInfo(WindowsList.BTP_RECENT)&0x8) == 1)))
// {
// if(ScreenManager.isOverlayShowed(WindowsList.BTP_RECENT_DOWNLOAD)==false)
// {
// ScreenManager.showOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
// }
// }
// }
// else
// {
// ScreenManager.hideOverlay(WindowsList.BTP_RECENT_DOWNLOAD)
// }
// }//del by lium for screenchange end
}
//ADD #142761 2017/01/03 wangshuang end
}
|