C# Class Handbrake.Functions.Main

Show file Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
AutoName ( frmMain mainWindow ) : string

Function which generates the filename and path automatically based on the Source Name, DVD title and DVD Chapters

ChapterNaming ( Title title, System.Windows.Forms.DataGridView dataChpt, string chapterEnd ) : System.Windows.Forms.DataGridView

Set's up the DataGridView on the Chapters tab (frmMain)

CheckQueueRecovery ( ) : List

Check if the queue recovery file contains records. If it does, it means the last queue did not complete before HandBrake closed. So, return a boolean if true.

GetDestinationFromQuery ( string query ) : string

Get the Destination from the CLI Query

GetSourceFromQuery ( string query ) : string

Get The Source from the CLI Query

ImportChapterNames ( System.Windows.Forms.DataGridView dataChpt, string filename ) : System.Windows.Forms.DataGridView

Import a CSV file which contains Chapter Names

RecoverFromCorruptedLocalApplicationConfig ( ) : void

Remove the Local Applicaiton Data. This should only be used if something bad happens which corrupts the data.

RecoverQueue ( IQueueProcessor encodeQueue ) : void

Recover a queue from file.

SaveChapterMarkersToCsv ( frmMain mainWindow, string filePathName ) : bool

Create a CSV file with the data from the Main Window Chapters tab

SetCliVersionData ( ) : void

Get's HandBrakes version data from the CLI.

ShowExceptiowWindow ( string shortError, string longError ) : void

Show the Exception Window

Method Details

AutoName() public static method

Function which generates the filename and path automatically based on the Source Name, DVD title and DVD Chapters
public static AutoName ( frmMain mainWindow ) : string
mainWindow frmMain /// The main Window. ///
return string

ChapterNaming() public static method

Set's up the DataGridView on the Chapters tab (frmMain)
public static ChapterNaming ( Title title, System.Windows.Forms.DataGridView dataChpt, string chapterEnd ) : System.Windows.Forms.DataGridView
title Title /// The currently selected title object. /// This will be used to get chapter names if they exist. ///
dataChpt System.Windows.Forms.DataGridView /// The DataGridView Control ///
chapterEnd string /// The chapter End. ///
return System.Windows.Forms.DataGridView

CheckQueueRecovery() public static method

Check if the queue recovery file contains records. If it does, it means the last queue did not complete before HandBrake closed. So, return a boolean if true.
public static CheckQueueRecovery ( ) : List
return List

GetDestinationFromQuery() public static method

Get the Destination from the CLI Query
public static GetDestinationFromQuery ( string query ) : string
query string Full CLI Query
return string

GetSourceFromQuery() public static method

Get The Source from the CLI Query
public static GetSourceFromQuery ( string query ) : string
query string Full CLI Query
return string

ImportChapterNames() public static method

Import a CSV file which contains Chapter Names
public static ImportChapterNames ( System.Windows.Forms.DataGridView dataChpt, string filename ) : System.Windows.Forms.DataGridView
dataChpt System.Windows.Forms.DataGridView /// The DataGridView Control ///
filename string /// The filepath and name ///
return System.Windows.Forms.DataGridView

RecoverFromCorruptedLocalApplicationConfig() public static method

Remove the Local Applicaiton Data. This should only be used if something bad happens which corrupts the data.
public static RecoverFromCorruptedLocalApplicationConfig ( ) : void
return void

RecoverQueue() public static method

Recover a queue from file.
public static RecoverQueue ( IQueueProcessor encodeQueue ) : void
encodeQueue IQueueProcessor /// The encode Queue. ///
return void

SaveChapterMarkersToCsv() public static method

Create a CSV file with the data from the Main Window Chapters tab
public static SaveChapterMarkersToCsv ( frmMain mainWindow, string filePathName ) : bool
mainWindow frmMain Main Window
filePathName string Path to save the csv file
return bool

SetCliVersionData() public static method

Get's HandBrakes version data from the CLI.
public static SetCliVersionData ( ) : void
return void

ShowExceptiowWindow() public static method

Show the Exception Window
public static ShowExceptiowWindow ( string shortError, string longError ) : void
shortError string /// The short error. ///
longError string /// The long error. ///
return void