C# Class MediaPortal.GUI.Library.GUIPropertyManager

Implments a property manager for the GUI lib. Keeps track of the properties of the currently playing item. like playtime, current position, artist,title of the song/video,...
Datei anzeigen Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method Description
GetProperty ( string tag ) : string

This method returns the value for a given property

Parse ( string line ) : string

Parses a property request.

Parse ( string line, MediaPortal.GUI.Library.GUIExpressionManager options ) : string

Parses a property request.

PropertyIsDefined ( string tag ) : bool

Returns true if the specified property is defined, otherwise false.

RemovePlayerProperties ( ) : void

Removes the player properties from the hashtable.

RemoveProperty ( string tag ) : void

Removes the specified property from the property set.

SetProperty ( string tag, string tagvalue ) : void

This method will set the value for a given property

Private Methods

Method Description
GUIPropertyManager ( ) : System

Private constructor of the GUIPropertyManager. Singleton. Do not allow any instance of this class.

ParseProperty ( string property ) : string

Method Details

GetProperty() public static method

This method returns the value for a given property
public static GetProperty ( string tag ) : string
tag string property name
return string

Parse() public static method

Parses a property request.
public static Parse ( string line ) : string
line string
return string

Parse() public static method

Parses a property request.
public static Parse ( string line, MediaPortal.GUI.Library.GUIExpressionManager options ) : string
line string The identification of the propertie (e.g.,#title).
options MediaPortal.GUI.Library.GUIExpressionManager Expresson manager processing options.
return string

PropertyIsDefined() public static method

Returns true if the specified property is defined, otherwise false.
public static PropertyIsDefined ( string tag ) : bool
tag string
return bool

RemovePlayerProperties() public static method

Removes the player properties from the hashtable.
public static RemovePlayerProperties ( ) : void
return void

RemoveProperty() public static method

Removes the specified property from the property set.
public static RemoveProperty ( string tag ) : void
tag string name of the property
return void

SetProperty() public static method

This method will set the value for a given property
public static SetProperty ( string tag, string tagvalue ) : void
tag string property name
tagvalue string property value
return void