C# Class SubLib.Core.Domain.SubtitleTypeInfo

Contains information about a subtitle file type.
Inheritance: IComparable
ファイルを表示 Open project: GNOME/gnome-subtitles

Public Methods

Method Description
CompareTo ( object obj ) : int

Compares this instance with a specified object, based on the object names. See String.CompareTo(object) for more information.

HasExtension ( string extension ) : bool

Checks whether the specified extension is one of the extensions of the SubtitleType

SubtitleTypeInfo ( string name, SubtitleType type, SubtitleMode mode, string extensions ) : SubLib.IO.SubtitleFormats

Initializes a new instance of the SubtitleTypeInfo class.

Private Methods

Method Description
ExtensionToText ( string extension ) : string
ExtensionsToText ( ) : string
SubtitleTypeInfo ( SubtitleFormat format ) : SubLib.IO.SubtitleFormats

Method Details

CompareTo() public method

Compares this instance with a specified object, based on the object names. See String.CompareTo(object) for more information.
public CompareTo ( object obj ) : int
obj object The object to compare this class to.
return int

HasExtension() public method

Checks whether the specified extension is one of the extensions of the SubtitleType
public HasExtension ( string extension ) : bool
extension string The extension to search for.
return bool

SubtitleTypeInfo() public method

Initializes a new instance of the SubtitleTypeInfo class.
public SubtitleTypeInfo ( string name, SubtitleType type, SubtitleMode mode, string extensions ) : SubLib.IO.SubtitleFormats
name string The name of the subtitle type.
type SubtitleType The subtitle type.
mode SubtitleMode The subtitle mode.
extensions string The extensions the subtitle type uses.
return SubLib.IO.SubtitleFormats