diff options
author | sr55 <[email protected]> | 2007-07-16 16:53:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-16 16:53:42 +0000 |
commit | be1d65b182b5dfa603bfbfd5b1e492d3c77f33b8 (patch) | |
tree | 2decca2407fbac95897d3c09e36f679ed39e67ee | |
parent | 2595cd0693e666366e824fdbbfe45adade38a08e (diff) |
WinGui:
- Files for last checkin
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@697 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Functions/CLI.cs | 47 | ||||
-rw-r--r-- | win/C#/Functions/Update.cs | 10 |
2 files changed, 57 insertions, 0 deletions
diff --git a/win/C#/Functions/CLI.cs b/win/C#/Functions/CLI.cs new file mode 100644 index 000000000..3ed958d50 --- /dev/null +++ b/win/C#/Functions/CLI.cs @@ -0,0 +1,47 @@ +using System;
+using System.Collections.Generic;
+using System.Threading;
+using System.Diagnostics;
+
+
+namespace Handbrake.Functions
+{
+ class CLI
+ {
+ public Process runCli(object s, string query, bool stderr, bool stdout, bool useShellExec, bool noWindow)
+ {
+ Process hbProc = new Process();
+ hbProc.StartInfo.FileName = "hbcli.exe";
+ hbProc.StartInfo.Arguments = query;
+ hbProc.StartInfo.RedirectStandardOutput = stdout;
+ hbProc.StartInfo.RedirectStandardError = stderr;
+ hbProc.StartInfo.UseShellExecute = useShellExec;
+ hbProc.StartInfo.CreateNoWindow = noWindow;
+ hbProc.Start();
+
+ // Set the process Priority
+ switch (Properties.Settings.Default.processPriority)
+ {
+ case "Realtime":
+ hbProc.PriorityClass = ProcessPriorityClass.RealTime;
+ break;
+ case "High":
+ hbProc.PriorityClass = ProcessPriorityClass.High;
+ break;
+ case "Above Normal":
+ hbProc.PriorityClass = ProcessPriorityClass.AboveNormal;
+ break;
+ case "Normal":
+ hbProc.PriorityClass = ProcessPriorityClass.Normal;
+ break;
+ case "Low":
+ hbProc.PriorityClass = ProcessPriorityClass.Idle;
+ break;
+ default:
+ hbProc.PriorityClass = ProcessPriorityClass.BelowNormal;
+ break;
+ }
+ return hbProc;
+ }
+ }
+}
diff --git a/win/C#/Functions/Update.cs b/win/C#/Functions/Update.cs new file mode 100644 index 000000000..30a7c0df9 --- /dev/null +++ b/win/C#/Functions/Update.cs @@ -0,0 +1,10 @@ +using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Handbrake.Functions
+{
+ class Update
+ {
+ }
+}
|