From b6a5d4eba610711d15ed99dc5f2e9e126ce06086 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 13 Mar 2011 16:44:49 +0000 Subject: Rename Direction C# to CS git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3846 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../EventArgs/EncodeCompletedEventArgs.cs | 49 ++++++++++++++++++++++ .../EventArgs/EncodeProgressEventArgs.cs | 45 ++++++++++++++++++++ .../EventArgs/QueueProgressEventArgs.cs | 33 +++++++++++++++ .../EventArgs/ScanCompletedEventArgs.cs | 49 ++++++++++++++++++++++ .../EventArgs/ScanProgressEventArgs.cs | 25 +++++++++++ 5 files changed, 201 insertions(+) create mode 100644 win/CS/HandBrake.ApplicationServices/EventArgs/EncodeCompletedEventArgs.cs create mode 100644 win/CS/HandBrake.ApplicationServices/EventArgs/EncodeProgressEventArgs.cs create mode 100644 win/CS/HandBrake.ApplicationServices/EventArgs/QueueProgressEventArgs.cs create mode 100644 win/CS/HandBrake.ApplicationServices/EventArgs/ScanCompletedEventArgs.cs create mode 100644 win/CS/HandBrake.ApplicationServices/EventArgs/ScanProgressEventArgs.cs (limited to 'win/CS/HandBrake.ApplicationServices/EventArgs') diff --git a/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeCompletedEventArgs.cs b/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeCompletedEventArgs.cs new file mode 100644 index 000000000..2d613f6d5 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeCompletedEventArgs.cs @@ -0,0 +1,49 @@ +/* EncodeCompletedEventArgs.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.EventArgs +{ + using System; + + /// + /// Encode Progress Event Args + /// + public class EncodeCompletedEventArgs : EventArgs + { + /// + /// Initializes a new instance of the class. + /// + /// + /// The sucessful. + /// + /// + /// The exception. + /// + /// + /// The error information. + /// + public EncodeCompletedEventArgs(bool sucessful, Exception exception, string errorInformation) + { + this.Successful = sucessful; + this.Exception = exception; + this.ErrorInformation = errorInformation; + } + + /// + /// Gets or sets a value indicating whether Successful. + /// + public bool Successful { get; set; } + + /// + /// Gets or sets Exception. + /// + public Exception Exception { get; set; } + + /// + /// Gets or sets ErrorInformation. + /// + public string ErrorInformation { get; set; } + } +} diff --git a/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeProgressEventArgs.cs b/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeProgressEventArgs.cs new file mode 100644 index 000000000..b4d6b9a64 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/EventArgs/EncodeProgressEventArgs.cs @@ -0,0 +1,45 @@ +/* EncodeProgressEventArgs.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.EventArgs +{ + using System; + + /// + /// Encode Progress Event Args + /// + public class EncodeProgressEventArgs : EventArgs + { + /// + /// Gets or sets PercentComplete. + /// + public float PercentComplete { get; set; } + + /// + /// Gets or sets CurrentFrameRate. + /// + public float CurrentFrameRate { get; set; } + + /// + /// Gets or sets AverageFrameRate. + /// + public float AverageFrameRate { get; set; } + + /// + /// Gets or sets EstimatedTimeLeft. + /// + public TimeSpan EstimatedTimeLeft { get; set; } + + /// + /// Gets or sets Task. + /// + public int Task { get; set; } + + /// + /// Gets or sets TaskCount. + /// + public int TaskCount { get; set; } + } +} diff --git a/win/CS/HandBrake.ApplicationServices/EventArgs/QueueProgressEventArgs.cs b/win/CS/HandBrake.ApplicationServices/EventArgs/QueueProgressEventArgs.cs new file mode 100644 index 000000000..8613187bc --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/EventArgs/QueueProgressEventArgs.cs @@ -0,0 +1,33 @@ +/* QueueProgressEventArgs.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.EventArgs +{ + using System; + + using HandBrake.ApplicationServices.Model; + + /// + /// Queue Progress Event Args + /// + public class QueueProgressEventArgs : EventArgs + { + /// + /// Initializes a new instance of the class. + /// + /// + /// The new job. + /// + public QueueProgressEventArgs(QueueTask newJob) + { + this.NewJob = newJob; + } + + /// + /// Gets or sets the new job which is about to be processed. + /// + public QueueTask NewJob { get; set; } + } +} diff --git a/win/CS/HandBrake.ApplicationServices/EventArgs/ScanCompletedEventArgs.cs b/win/CS/HandBrake.ApplicationServices/EventArgs/ScanCompletedEventArgs.cs new file mode 100644 index 000000000..9b0437ac7 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/EventArgs/ScanCompletedEventArgs.cs @@ -0,0 +1,49 @@ +/* ScanCompletedEventArgs.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.EventArgs +{ + using System; + + /// + /// Scan Progress Event Args + /// + public class ScanCompletedEventArgs : EventArgs + { + /// + /// Initializes a new instance of the class. + /// + /// + /// The sucessful. + /// + /// + /// The exception. + /// + /// + /// The error information. + /// + public ScanCompletedEventArgs(bool sucessful, Exception exception, string errorInformation) + { + this.Successful = sucessful; + this.Exception = exception; + this.ErrorInformation = errorInformation; + } + + /// + /// Gets or sets a value indicating whether Successful. + /// + public bool Successful { get; set; } + + /// + /// Gets or sets Exception. + /// + public Exception Exception { get; set; } + + /// + /// Gets or sets ErrorInformation. + /// + public string ErrorInformation { get; set; } + } +} diff --git a/win/CS/HandBrake.ApplicationServices/EventArgs/ScanProgressEventArgs.cs b/win/CS/HandBrake.ApplicationServices/EventArgs/ScanProgressEventArgs.cs new file mode 100644 index 000000000..1a6bdb0a1 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/EventArgs/ScanProgressEventArgs.cs @@ -0,0 +1,25 @@ +/* ScanProgressEventArgs.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.EventArgs +{ + using System; + + /// + /// Scan Progress Event Args + /// + public class ScanProgressEventArgs : EventArgs + { + /// + /// Gets or sets the title currently being scanned. + /// + public int CurrentTitle { get; set; } + + /// + /// Gets or sets the total number of Titles. + /// + public int Titles { get; set; } + } +} -- cgit v1.2.3