aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/WixToolset.Mba.Core/EventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r--src/api/burn/WixToolset.Mba.Core/EventArgs.cs135
1 files changed, 135 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs
index 93831be6..d4d70651 100644
--- a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs
+++ b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs
@@ -496,6 +496,37 @@ namespace WixToolset.Mba.Core
496 } 496 }
497 497
498 /// <summary> 498 /// <summary>
499 /// Event arguments for <see cref="IDefaultBootstrapperApplication.DetectCompatibleMsiPackage"/>
500 /// </summary>
501 [Serializable]
502 public class DetectCompatibleMsiPackageEventArgs : CancellableHResultEventArgs
503 {
504 /// <summary />
505 public DetectCompatibleMsiPackageEventArgs(string packageId, string compatiblePackageId, string compatiblePackageVersion, bool cancelRecommendation)
506 : base(cancelRecommendation)
507 {
508 this.PackageId = packageId;
509 this.CompatiblePackageId = compatiblePackageId;
510 this.CompatiblePackageVersion = compatiblePackageVersion;
511 }
512
513 /// <summary>
514 /// Gets the identity of the package that was not detected.
515 /// </summary>
516 public string PackageId { get; private set; }
517
518 /// <summary>
519 /// Gets the identity of the compatible package that was detected.
520 /// </summary>
521 public string CompatiblePackageId { get; private set; }
522
523 /// <summary>
524 /// Gets the version of the compatible package that was detected.
525 /// </summary>
526 public string CompatiblePackageVersion { get; private set; }
527 }
528
529 /// <summary>
499 /// Event arguments for <see cref="IDefaultBootstrapperApplication.DetectRelatedMsiPackage"/> 530 /// Event arguments for <see cref="IDefaultBootstrapperApplication.DetectRelatedMsiPackage"/>
500 /// </summary> 531 /// </summary>
501 [Serializable] 532 [Serializable]
@@ -776,6 +807,80 @@ namespace WixToolset.Mba.Core
776 } 807 }
777 808
778 /// <summary> 809 /// <summary>
810 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanCompatibleMsiPackageBegin"/>
811 /// </summary>
812 [Serializable]
813 public class PlanCompatibleMsiPackageBeginEventArgs : CancellableHResultEventArgs
814 {
815 /// <summary />
816 public PlanCompatibleMsiPackageBeginEventArgs(string packageId, string compatiblePackageId, string compatiblePackageVersion, bool recommendedRemove, bool requestRemove, bool cancelRecommendation)
817 : base(cancelRecommendation)
818 {
819 this.PackageId = packageId;
820 this.CompatiblePackageId = compatiblePackageId;
821 this.CompatiblePackageVersion = compatiblePackageVersion;
822 this.RecommendedRemove = recommendedRemove;
823 this.RequestRemove = requestRemove;
824 }
825
826 /// <summary>
827 /// Gets the identity of the package that was not detected.
828 /// </summary>
829 public string PackageId { get; private set; }
830
831 /// <summary>
832 /// Gets the identity of the compatible package detected.
833 /// </summary>
834 public string CompatiblePackageId { get; private set; }
835
836 /// <summary>
837 /// Gets the version of the compatible package detected.
838 /// </summary>
839 public string CompatiblePackageVersion { get; private set; }
840
841 /// <summary>
842 /// Gets the recommended state to use for the compatible package for planning.
843 /// </summary>
844 public bool RecommendedRemove { get; private set; }
845
846 /// <summary>
847 /// Gets or sets whether to uninstall the compatible package.
848 /// </summary>
849 public bool RequestRemove { get; set; }
850 }
851
852 /// <summary>
853 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanCompatibleMsiPackageComplete"/>
854 /// </summary>
855 [Serializable]
856 public class PlanCompatibleMsiPackageCompleteEventArgs : StatusEventArgs
857 {
858 /// <summary />
859 public PlanCompatibleMsiPackageCompleteEventArgs(string packageId, string compatiblePackageId, int hrStatus, bool requestedRemove)
860 : base(hrStatus)
861 {
862 this.PackageId = packageId;
863 this.CompatiblePackageId = compatiblePackageId;
864 this.RequestedRemove = requestedRemove;
865 }
866
867 /// <summary>
868 /// Gets the identity of the package planned for.
869 /// </summary>
870 public string PackageId { get; private set; }
871
872 /// <summary>
873 /// Gets the identity of the compatible package detected.
874 /// </summary>
875 public string CompatiblePackageId { get; private set; }
876
877 /// <summary>
878 /// Gets the requested state of the package.
879 /// </summary>
880 public bool RequestedRemove { get; private set; }
881 }
882
883 /// <summary>
779 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanRollbackBoundary"/> 884 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanRollbackBoundary"/>
780 /// </summary> 885 /// </summary>
781 [Serializable] 886 [Serializable]
@@ -981,6 +1086,36 @@ namespace WixToolset.Mba.Core
981 } 1086 }
982 1087
983 /// <summary> 1088 /// <summary>
1089 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlannedCompatiblePackage"/>
1090 /// </summary>
1091 [Serializable]
1092 public class PlannedCompatiblePackageEventArgs : HResultEventArgs
1093 {
1094 /// <summary />
1095 public PlannedCompatiblePackageEventArgs(string packageId, string compatiblePackageId, bool remove)
1096 {
1097 this.PackageId = packageId;
1098 this.CompatiblePackageId = compatiblePackageId;
1099 this.Remove = remove;
1100 }
1101
1102 /// <summary>
1103 /// Gets the identity of the package planned for.
1104 /// </summary>
1105 public string PackageId { get; private set; }
1106
1107 /// <summary>
1108 /// Gets the identity of the compatible package detected.
1109 /// </summary>
1110 public string CompatiblePackageId { get; private set; }
1111
1112 /// <summary>
1113 /// Gets the planned state of the package.
1114 /// </summary>
1115 public bool Remove { get; private set; }
1116 }
1117
1118 /// <summary>
984 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlannedPackage"/> 1119 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlannedPackage"/>
985 /// </summary> 1120 /// </summary>
986 [Serializable] 1121 [Serializable]