/// <summary> /// Initializes a new instance of the <see cref="NotificationService"/> class. /// </summary> /// <param name="encodeService"> /// The encode Service. /// </param> /// <param name="queueProcessor"> /// The queue Processor. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> public NotificationService(IEncodeServiceWrapper encodeService, IQueueProcessor queueProcessor, IUserSettingService userSettingService) { this.userSettingService = userSettingService; encodeService.EncodeCompleted += this.EncodeServiceEncodeCompleted; queueProcessor.QueueCompleted += this.QueueProcessorQueueCompleted; GrowlCommunicator.Register(); }
/// <summary> /// Initializes a new instance of the <see cref="LibEncode"/> class. /// </summary> public LibEncode() { // Setup the HandBrake Instance this.instance = ServiceManager.HandBrakeInstance; this.instance.EncodeCompleted += this.InstanceEncodeCompleted; this.instance.EncodeProgress += this.InstanceEncodeProgress; HandBrakeUtils.MessageLogged += this.HandBrakeInstanceMessageLogged; HandBrakeUtils.ErrorLogged += this.HandBrakeInstanceErrorLogged; GrowlCommunicator.Register(); }
/// <summary> /// Initializes a new instance of the <see cref="Encode"/> class. /// </summary> public Encode() { this.EncodeStarted += this.EncodeEncodeStarted; GrowlCommunicator.Register(); }
/// <summary> /// Initializes a new instance of the <see cref="Encode"/> class. /// </summary> public Encode() { this.EncodeStarted += this.EncodeEncodeStarted; this.logBuffer = new StringBuilder(); GrowlCommunicator.Register(); }