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,...
Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Parse() public static méthode

Parses a property request.
public static Parse ( string line ) : string
line string
Résultat string

Parse() public static méthode

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.
Résultat string

PropertyIsDefined() public static méthode

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

RemovePlayerProperties() public static méthode

Removes the player properties from the hashtable.
public static RemovePlayerProperties ( ) : void
Résultat void

RemoveProperty() public static méthode

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

SetProperty() public static méthode

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
Résultat void