summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-07-25 14:59:19 +0000
committersr55 <[email protected]>2010-07-25 14:59:19 +0000
commitfe6f44ed88e1d69d7e67738d7c10589a19f60568 (patch)
tree610fdbf28fe94d29e108de0b4eb64cdf9ce614bb /win/C#/HandBrake.ApplicationServices
parent422ce524afd6b470150a211ee6891af670af1db5 (diff)
WinGui:
- Cleanup stylecop warnings. Import new stylecop for resharper settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3459 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Functions/Logging.cs3
-rw-r--r--win/C#/HandBrake.ApplicationServices/Functions/Win32.cs5
-rw-r--r--win/C#/HandBrake.ApplicationServices/Init.cs1
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Encode.cs14
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Interfaces/IQueue.cs17
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Queue.cs7
6 files changed, 22 insertions, 25 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Functions/Logging.cs b/win/C#/HandBrake.ApplicationServices/Functions/Logging.cs
index aba92dbbe..8231ba6cc 100644
--- a/win/C#/HandBrake.ApplicationServices/Functions/Logging.cs
+++ b/win/C#/HandBrake.ApplicationServices/Functions/Logging.cs
@@ -23,6 +23,9 @@ namespace HandBrake.ApplicationServices.Functions
/// <param name="encJob">
/// The Encode Job Object
/// </param>
+ /// <returns>
+ /// The create cli log header.
+ /// </returns>
public static string CreateCliLogHeader(Job encJob)
{
StringBuilder logHeader = new StringBuilder();
diff --git a/win/C#/HandBrake.ApplicationServices/Functions/Win32.cs b/win/C#/HandBrake.ApplicationServices/Functions/Win32.cs
index a45d7441a..98f224797 100644
--- a/win/C#/HandBrake.ApplicationServices/Functions/Win32.cs
+++ b/win/C#/HandBrake.ApplicationServices/Functions/Win32.cs
@@ -99,10 +99,7 @@ namespace HandBrake.ApplicationServices.Functions
/// The lp buffer.
/// </param>
[DllImport("kernel32.dll")]
- public static extern void GlobalMemoryStatus
- (
- ref MEMORYSTATUS lpBuffer
- );
+ public static extern void GlobalMemoryStatus(ref MEMORYSTATUS lpBuffer);
/// <summary>
/// Generate a Console Ctrl Event
diff --git a/win/C#/HandBrake.ApplicationServices/Init.cs b/win/C#/HandBrake.ApplicationServices/Init.cs
index e8f2e18af..bacf1323a 100644
--- a/win/C#/HandBrake.ApplicationServices/Init.cs
+++ b/win/C#/HandBrake.ApplicationServices/Init.cs
@@ -140,6 +140,5 @@ namespace HandBrake.ApplicationServices
/// Prevent system sleep
/// </summary>
public static bool PreventSleep;
-
}
}
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
index 09099ba13..9ca8cdf58 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
@@ -252,14 +252,15 @@ namespace HandBrake.ApplicationServices.Services
SendKeys.Send("^C");
SendKeys.Flush();
- //if (HbProcess != null)
+ /*/if (HbProcess != null)
//{
// HbProcess.StandardInput.AutoFlush = true;
// HbProcess.StandardInput.WriteLine("^c^z");
- //}
+ //}*/
}
/* Helpers */
+
/// <summary>
/// Save a copy of the log to the users desired location or a default location
/// if this feature is enabled in options.
@@ -314,9 +315,6 @@ namespace HandBrake.ApplicationServices.Services
private void HbProcess_Exited(object sender, EventArgs e)
{
IsEncoding = false;
-
- // ReadFile(null);
-
if (this.EncodeEnded != null)
this.EncodeEnded(this, new EventArgs());
@@ -344,9 +342,6 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Read the log file
/// </summary>
- /// <param name="n">
- /// The object.
- /// </param>
private void ReadFile()
{
logBuffer = new StringBuilder();
@@ -398,6 +393,9 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Setup the logging.
/// </summary>
+ /// <param name="encodeJob">
+ /// The encode Job.
+ /// </param>
private void SetupLogging(Job encodeJob)
{
string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IQueue.cs b/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IQueue.cs
index 981f3c19e..b489f75bd 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IQueue.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IQueue.cs
@@ -58,16 +58,6 @@ namespace HandBrake.ApplicationServices.Services.Interfaces
int Count { get; }
/// <summary>
- /// Gets a value indicating whether IsEncoding.
- /// </summary>
- bool IsEncoding { get; }
-
- /// <summary>
- /// Gets ActivityLog.
- /// </summary>
- string ActivityLog { get; }
-
- /// <summary>
/// Adds an item to the queue.
/// </summary>
/// <param name="query">
@@ -121,7 +111,12 @@ namespace HandBrake.ApplicationServices.Services.Interfaces
/// <summary>
/// Writes the current state of the queue in the form of a batch (.bat) file.
/// </summary>
- /// <param name="file">The location of the file to write the batch file to.</param>
+ /// <param name="file">
+ /// The location of the file to write the batch file to.
+ /// </param>
+ /// <returns>
+ /// The write batch script to file.
+ /// </returns>
bool WriteBatchScriptToFile(string file);
/// <summary>
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Queue.cs b/win/C#/HandBrake.ApplicationServices/Services/Queue.cs
index 59c084f1c..7500dfec3 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Queue.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Queue.cs
@@ -252,7 +252,12 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Writes the current state of the queue in the form of a batch (.bat) file.
/// </summary>
- /// <param name="file">The location of the file to write the batch file to.</param>
+ /// <param name="file">
+ /// The location of the file to write the batch file to.
+ /// </param>
+ /// <returns>
+ /// The write batch script to file.
+ /// </returns>
public bool WriteBatchScriptToFile(string file)
{
string queries = string.Empty;