aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Updates
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-07-06 17:23:32 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-07-06 17:23:32 -0400
commit53450bd514eec97d58eb18b8a01feab36475826b (patch)
tree5cd1b4013852619b0e108a8f2442ab893a924441 /MediaBrowser.Common/Updates
parentb3054a6a2216e36cc37279a1fc0f4c14e6668c8f (diff)
added a notifications service
Diffstat (limited to 'MediaBrowser.Common/Updates')
-rw-r--r--MediaBrowser.Common/Updates/IInstallationManager.cs8
-rw-r--r--MediaBrowser.Common/Updates/InstallationEventArgs.cs17
2 files changed, 21 insertions, 4 deletions
diff --git a/MediaBrowser.Common/Updates/IInstallationManager.cs b/MediaBrowser.Common/Updates/IInstallationManager.cs
index 72b581325..31259353f 100644
--- a/MediaBrowser.Common/Updates/IInstallationManager.cs
+++ b/MediaBrowser.Common/Updates/IInstallationManager.cs
@@ -11,10 +11,10 @@ namespace MediaBrowser.Common.Updates
{
public interface IInstallationManager : IDisposable
{
- event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstalling;
- event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCompleted;
- event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationFailed;
- event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCancelled;
+ event EventHandler<InstallationEventArgs> PackageInstalling;
+ event EventHandler<InstallationEventArgs> PackageInstallationCompleted;
+ event EventHandler<InstallationFailedEventArgs> PackageInstallationFailed;
+ event EventHandler<InstallationEventArgs> PackageInstallationCancelled;
/// <summary>
/// The current installations
diff --git a/MediaBrowser.Common/Updates/InstallationEventArgs.cs b/MediaBrowser.Common/Updates/InstallationEventArgs.cs
new file mode 100644
index 000000000..2c3a805de
--- /dev/null
+++ b/MediaBrowser.Common/Updates/InstallationEventArgs.cs
@@ -0,0 +1,17 @@
+using MediaBrowser.Model.Updates;
+using System;
+
+namespace MediaBrowser.Common.Updates
+{
+ public class InstallationEventArgs
+ {
+ public InstallationInfo InstallationInfo { get; set; }
+
+ public PackageVersionInfo PackageVersionInfo { get; set; }
+ }
+
+ public class InstallationFailedEventArgs : InstallationEventArgs
+ {
+ public Exception Exception { get; set; }
+ }
+}