@@ -294,13 +294,31 @@ void EventLogger::uninstallerStarted(int duration)
294
294
sendAllocatedEvent (evt);
295
295
}
296
296
297
- void EventLogger::uninstallerPageDisplayed (eve_launcher::uninstaller::Page previousPage, eve_launcher::uninstaller::Page currentPage, eve_launcher::uninstaller::PageDisplayed_FlowDirection flow )
297
+ void EventLogger::uninstallerIntroductionPageDisplayed ( )
298
298
{
299
- auto evt = new eve_launcher::uninstaller::PageDisplayed;
299
+ auto evt = new eve_launcher::uninstaller::IntroductionPageDisplayed;
300
+ evt->set_allocated_event_metadata (getEventMetadata ());
301
+ sendAllocatedEvent (evt);
302
+ }
303
+
304
+ void EventLogger::uninstallerExecutionPageDisplayed ()
305
+ {
306
+ auto evt = new eve_launcher::uninstaller::ExecutionPageDisplayed;
307
+ evt->set_allocated_event_metadata (getEventMetadata ());
308
+ sendAllocatedEvent (evt);
309
+ }
310
+
311
+ void EventLogger::uninstallerFinishedPageDisplayed ()
312
+ {
313
+ auto evt = new eve_launcher::uninstaller::FinishedPageDisplayed;
314
+ evt->set_allocated_event_metadata (getEventMetadata ());
315
+ sendAllocatedEvent (evt);
316
+ }
317
+
318
+ void EventLogger::uninstallerFailedPageDisplayed ()
319
+ {
320
+ auto evt = new eve_launcher::uninstaller::FailedPageDisplayed;
300
321
evt->set_allocated_event_metadata (getEventMetadata ());
301
- evt->set_previous_page (previousPage);
302
- evt->set_current_page (currentPage);
303
- evt->set_flow (flow);
304
322
sendAllocatedEvent (evt);
305
323
}
306
324
@@ -378,25 +396,53 @@ void EventLogger::uninstallerAnalyticsMessageSent(const QString& message)
378
396
}
379
397
380
398
// installer
381
- void EventLogger::installerStarted (int duration)
399
+ void EventLogger::installerStarted (const QString& startMenuItemPath, int duration)
382
400
{
383
- qDebug () << " framework | EventLogger::installerStarted |" << duration << " ms" ;
401
+ qDebug () << " framework | EventLogger::installerStarted |" << startMenuItemPath << " , " << duration << " ms" ;
384
402
auto evt = new eve_launcher::installer::Started;
385
403
evt->set_allocated_event_metadata (getEventMetadata ());
386
- evt->set_duration (duration);
387
404
auto inf = pdm_proto::GetData ();
388
405
evt->set_allocated_system_information (&inf);
406
+ QString fileName = QInstaller::getInstallerFileName ().split (QLatin1String (" /" )).last ();
407
+ qDebug () << " framework | EventLogger::installerStarted | " << fileName;
408
+ evt->set_filename (fileName.toStdString ());
409
+ evt->set_start_menu_item_path (startMenuItemPath.toStdString ());
410
+ evt->set_duration (duration);
389
411
sendAllocatedEvent (evt);
390
412
}
391
413
392
- void EventLogger::installerPageDisplayed (eve_launcher::installer::Page previousPage, eve_launcher::installer::Page currentPage, eve_launcher::installer::PageDisplayed_FlowDirection flow )
414
+ void EventLogger::installerIntroductionPageDisplayed ( )
393
415
{
394
- qDebug () << " framework | EventLogger::installerPageDisplayed |" << previousPage << " |" << currentPage << " |" << flow;
395
- auto evt = new eve_launcher::installer::PageDisplayed;
416
+ auto evt = new eve_launcher::installer::IntroductionPageDisplayed;
417
+ evt->set_allocated_event_metadata (getEventMetadata ());
418
+ sendAllocatedEvent (evt);
419
+ }
420
+
421
+ void EventLogger::installerEulaPageDisplayed ()
422
+ {
423
+ auto evt = new eve_launcher::installer::EulaPageDisplayed;
424
+ evt->set_allocated_event_metadata (getEventMetadata ());
425
+ sendAllocatedEvent (evt);
426
+ }
427
+
428
+ void EventLogger::installerExecutionPageDisplayed ()
429
+ {
430
+ auto evt = new eve_launcher::installer::ExecutionPageDisplayed;
431
+ evt->set_allocated_event_metadata (getEventMetadata ());
432
+ sendAllocatedEvent (evt);
433
+ }
434
+
435
+ void EventLogger::installerFinishedPageDisplayed ()
436
+ {
437
+ auto evt = new eve_launcher::installer::FinishedPageDisplayed;
438
+ evt->set_allocated_event_metadata (getEventMetadata ());
439
+ sendAllocatedEvent (evt);
440
+ }
441
+
442
+ void EventLogger::installerFailedPageDisplayed ()
443
+ {
444
+ auto evt = new eve_launcher::installer::FailedPageDisplayed;
396
445
evt->set_allocated_event_metadata (getEventMetadata ());
397
- evt->set_previous_page (previousPage);
398
- evt->set_current_page (currentPage);
399
- evt->set_flow (flow);
400
446
sendAllocatedEvent (evt);
401
447
}
402
448
@@ -427,16 +473,6 @@ void EventLogger::installerPreparationFinished(int duration)
427
473
sendAllocatedEvent (evt);
428
474
}
429
475
430
- void EventLogger::installerLocationChanged (eve_launcher::installer::LocationChanged_Source source, eve_launcher::installer::LocationChanged_Provider provider, const QString& path)
431
- {
432
- auto evt = new eve_launcher::installer::LocationChanged;
433
- evt->set_allocated_event_metadata (getEventMetadata ());
434
- evt->set_source (source);
435
- evt->set_provider (provider);
436
- evt->set_path (path.toStdString ());
437
- sendAllocatedEvent (evt);
438
- }
439
-
440
476
void EventLogger::installerDetailsDisplayed ()
441
477
{
442
478
auto evt = new eve_launcher::installer::DetailsDisplayed;
@@ -511,10 +547,13 @@ void EventLogger::installerSharedCacheMessageClosed(eve_launcher::installer::Mes
511
547
sendAllocatedEvent (evt);
512
548
}
513
549
514
- void EventLogger::installerInstallationStarted ()
550
+ void EventLogger::installerInstallationStarted (const QString& installPath, eve_launcher::installer::RedistVersion redistVersion )
515
551
{
552
+ qDebug () << " framework | EventLogger::installerInstallationStarted | " << installPath << " , " << redistVersion;
516
553
auto evt = new eve_launcher::installer::InstallationStarted;
517
554
evt->set_allocated_event_metadata (getEventMetadata ());
555
+ evt->set_install_path (installPath.toStdString ());
556
+ evt->set_redist_version (redistVersion);
518
557
sendAllocatedEvent (evt);
519
558
}
520
559
@@ -526,10 +565,12 @@ void EventLogger::installerInstallationInterrupted(int duration)
526
565
sendAllocatedEvent (evt);
527
566
}
528
567
529
- void EventLogger::installerInstallationFinished (int duration)
568
+ void EventLogger::installerInstallationFinished (const QString& sharedCachePath, int duration)
530
569
{
570
+ qDebug () << " framework | EventLogger::installerInstallationFinished | " << sharedCachePath;
531
571
auto evt = new eve_launcher::installer::InstallationFinished;
532
572
evt->set_allocated_event_metadata (getEventMetadata ());
573
+ evt->set_shared_cache_path (sharedCachePath.toStdString ());
533
574
evt->set_duration (duration);
534
575
sendAllocatedEvent (evt);
535
576
}
@@ -557,81 +598,42 @@ void EventLogger::installerUninstallerCreationFinished(int duration)
557
598
sendAllocatedEvent (evt);
558
599
}
559
600
560
- void EventLogger::installerComponentInitializationStarted (eve_launcher::installer::Component component, eve_launcher::installer::RedistVersion redistVersion )
601
+ void EventLogger::installerComponentInitializationStarted ()
561
602
{
562
603
auto evt = new eve_launcher::installer::ComponentInitializationStarted;
563
604
evt->set_allocated_event_metadata (getEventMetadata ());
564
- evt->set_component (component);
565
- evt->set_redist_version (redistVersion);
566
605
sendAllocatedEvent (evt);
567
606
}
568
607
569
- void EventLogger::installerComponentInitializationFinished (eve_launcher::installer::Component component, eve_launcher::installer::RedistVersion redistVersion, int duration)
608
+ void EventLogger::installerComponentInitializationFinished (int duration)
570
609
{
571
610
auto evt = new eve_launcher::installer::ComponentInitializationFinished;
572
611
evt->set_allocated_event_metadata (getEventMetadata ());
573
- evt->set_component (component);
574
- evt->set_redist_version (redistVersion);
575
612
evt->set_duration (duration);
576
613
sendAllocatedEvent (evt);
577
614
}
578
615
579
- void EventLogger::installerComponentInstallationStarted (eve_launcher::installer::Component component, eve_launcher::installer::RedistVersion redistVersion )
616
+ void EventLogger::installerComponentInstallationStarted ()
580
617
{
581
618
auto evt = new eve_launcher::installer::ComponentInstallationStarted;
582
619
evt->set_allocated_event_metadata (getEventMetadata ());
583
- evt->set_component (component);
584
- evt->set_redist_version (redistVersion);
585
620
sendAllocatedEvent (evt);
586
621
}
587
622
588
- void EventLogger::installerComponentInstallationFinished (eve_launcher::installer::Component component, eve_launcher::installer::RedistVersion redistVersion, int duration)
623
+ void EventLogger::installerComponentInstallationFinished (int duration)
589
624
{
590
625
auto evt = new eve_launcher::installer::ComponentInstallationFinished;
591
626
evt->set_allocated_event_metadata (getEventMetadata ());
592
- evt->set_component (component);
593
- evt->set_redist_version (redistVersion);
594
- evt->set_duration (duration);
595
- sendAllocatedEvent (evt);
596
- }
597
-
598
- void EventLogger::installerComponentsInitializationStarted ()
599
- {
600
- auto evt = new eve_launcher::installer::ComponentsInitializationStarted;
601
- evt->set_allocated_event_metadata (getEventMetadata ());
602
- sendAllocatedEvent (evt);
603
- }
604
-
605
- void EventLogger::installerComponentsInitializationFinished (int duration)
606
- {
607
- auto evt = new eve_launcher::installer::ComponentsInitializationFinished;
608
- evt->set_allocated_event_metadata (getEventMetadata ());
609
- evt->set_duration (duration);
610
- sendAllocatedEvent (evt);
611
- }
612
-
613
- void EventLogger::installerComponentsInstallationStarted ()
614
- {
615
- auto evt = new eve_launcher::installer::ComponentsInstallationStarted;
616
- evt->set_allocated_event_metadata (getEventMetadata ());
617
- sendAllocatedEvent (evt);
618
- }
619
-
620
- void EventLogger::installerComponentsInstallationFinished (int duration)
621
- {
622
- auto evt = new eve_launcher::installer::ComponentsInstallationFinished;
623
- evt->set_allocated_event_metadata (getEventMetadata ());
624
627
evt->set_duration (duration);
625
628
sendAllocatedEvent (evt);
626
629
}
627
630
628
- void EventLogger::installerErrorEncountered (eve_launcher::installer::ErrorEncountered_ErrorCode code, eve_launcher::installer::Page page, eve_launcher::installer::Component component, eve_launcher::installer:: RedistVersion redistVersion)
631
+ void EventLogger::installerErrorEncountered (eve_launcher::installer::ErrorEncountered_ErrorCode code, eve_launcher::installer::Page page, eve_launcher::installer::RedistVersion redistVersion)
629
632
{
630
633
auto evt = new eve_launcher::installer::ErrorEncountered;
631
634
evt->set_allocated_event_metadata (getEventMetadata ());
632
635
evt->set_code (code);
633
636
evt->set_page (page);
634
- evt->set_component (component);
635
637
evt->set_redist_version (redistVersion);
636
638
sendAllocatedEvent (evt);
637
639
}
0 commit comments