summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2021-02-20 15:35:08 +0000
committersr55 <[email protected]>2021-02-20 15:35:08 +0000
commitfc7458d40ee6a575c1a6257ec8f1ffb1fad59efe (patch)
treeaa7fc2ee866be4eb91274e1b6a854f5854b9a08c
parentf77f10bf8d0115bf0d74cb2a9499aaa1c4c9a369 (diff)
WinGui: Add required worker files for last checkin.
-rw-r--r--win/CS/HandBrakeWPF/Model/Worker/EncodeCommand.cs20
-rw-r--r--win/CS/HandBrakeWPF/Model/Worker/InitCommand.cs28
-rw-r--r--win/CS/HandBrakeWPF/Model/Worker/LogMessage.cs24
3 files changed, 72 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Model/Worker/EncodeCommand.cs b/win/CS/HandBrakeWPF/Model/Worker/EncodeCommand.cs
new file mode 100644
index 000000000..6f83ce10c
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Model/Worker/EncodeCommand.cs
@@ -0,0 +1,20 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="EncodeCommand.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the EncodeCommand type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.Model.Worker
+{
+ using HandBrake.Interop.Interop.Json.Encode;
+
+ public class EncodeCommand
+ {
+ public InitCommand InitialiseCommand { get; set; }
+
+ public JsonEncodeObject EncodeJob { get; set; }
+ }
+}
diff --git a/win/CS/HandBrakeWPF/Model/Worker/InitCommand.cs b/win/CS/HandBrakeWPF/Model/Worker/InitCommand.cs
new file mode 100644
index 000000000..e25125be5
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Model/Worker/InitCommand.cs
@@ -0,0 +1,28 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="InitCommand.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the InitCommand type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.Model.Worker
+{
+ public class InitCommand
+ {
+ public int LogVerbosity { get; set; }
+
+ public string LogDirectory { get; set; }
+
+ public string LogFile { get; set; }
+
+ public bool EnableDiskLogging { get; set; }
+
+ public bool EnableHardwareAcceleration { get; set; }
+
+ public bool DisableLibDvdNav { get; set; }
+
+ public bool AllowDisconnectedWorker { get; set; }
+ }
+}
diff --git a/win/CS/HandBrakeWPF/Model/Worker/LogMessage.cs b/win/CS/HandBrakeWPF/Model/Worker/LogMessage.cs
new file mode 100644
index 000000000..f8321ebf4
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Model/Worker/LogMessage.cs
@@ -0,0 +1,24 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="LogMessage.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// An Immutable log message
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.Model.Logging
+{
+ public class LogMessage
+ {
+ public LogMessage(string content, int messageIndex)
+ {
+ this.Content = content;
+ this.MessageIndex = messageIndex;
+ }
+
+ public string Content { get; private set; }
+
+ public int MessageIndex { get; private set; }
+ }
+}