Skip to content

Commit

Permalink
minor improvements, code refactorization
Browse files Browse the repository at this point in the history
  • Loading branch information
spixy committed Nov 16, 2015
1 parent a927689 commit 647e7f5
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 224 deletions.
42 changes: 21 additions & 21 deletions JobInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@

namespace VideoExtractor
{
enum Task
public class JobInfo
{
ExtractAudio,
RemoveAudio,
ExtractImages,
ResizeVideo,
CropVideo,
CreateVideo
}
public enum ETask
{
ExtractAudio,
RemoveAudio,
ExtractImages,
ResizeVideo,
CropVideo,
CreateVideo
}

enum Result
{
Success,
Cancel,
Error,
NotAvailable
}
public enum EResult
{
Success,
Cancel,
Error,
NotAvailable
}

class JobInfo
{
public string Input { get; private set; }
public string Output { get; private set; }
public string Arguments { get; private set; }
public Process Process { get; private set; }
public Task Task { get; private set; }
public Result Result { get; set; }
public ETask Task { get; private set; }
public EResult Result { get; set; }

/// <summary>
/// Constructor
Expand All @@ -36,13 +36,13 @@ class JobInfo
/// <param name="output">output file/folder</param>
/// <param name="arguments">ffmpeg arguments</param>
/// <param name="task">task type</param>
public JobInfo(string input, string output, string arguments, Task task)
public JobInfo(string input, string output, string arguments, ETask task)
{
Input = input;
Output = output;
Task = task;
Arguments = arguments;
Result = Result.NotAvailable;
Result = EResult.NotAvailable;
}

/// <summary>
Expand Down
27 changes: 14 additions & 13 deletions MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 647e7f5

Please sign in to comment.