コード例 #1
0
 /// <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();
 }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
ファイル: Encode.cs プロジェクト: AlexMikas/Handbrake-l
 /// <summary>
 /// Initializes a new instance of the <see cref="Encode"/> class.
 /// </summary>
 public Encode()
 {
     this.EncodeStarted += this.EncodeEncodeStarted;
     GrowlCommunicator.Register();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Encode"/> class.
 /// </summary>
 public Encode()
 {
     this.EncodeStarted += this.EncodeEncodeStarted;
     this.logBuffer      = new StringBuilder();
     GrowlCommunicator.Register();
 }