DIDLLiteObject
Object Hierarchy:
Description:
[ CCode ( type_id = "gupnp_didl_lite_object_get_type ()" ) ]
public abstract class DIDLLiteObject : Object
public abstract class DIDLLiteObject : Object
All known sub-classes:
Namespace: GUPnP
Package: gupnp-av-1.0
Content:
Properties:
- public string album { get; set; }
The album of this object.
- public string album_art { get; set; }
The URI to album art of this object.
- public string artist { get; set; }
The artist of this object.
- public string author { get; set; }
The author of this object.
- public string creator { get; set; }
The creator of this object.
- public string date { get; set; }
The date of this object.
- public unowned Ns* dc_namespace { owned get; construct; }
Pointer to the DublinCore namespace registered with the XML document containing this object.
- public string description { get; set; }
The description of this object.
- public OCMFlags dlna_managed { get; set; }
The 'dlna:dlnaManaged' attribute.
- public unowned Ns* dlna_namespace { owned get; construct; }
Pointer to the DLNA metadata namespace registered with the XML document containing this object.
- public string genre { get; set; }
The genre of this object.
- public string id { get; set; }
The ID of this object.
- public string parent_id { get; set; }
The ID of the parent container of this object.
- public unowned Ns* pv_namespace { owned get; construct; }
Pointer to the PV metadata namespace registered with the XML document containing this object.
- public bool restricted { get; set; }
Whether this object is restricted.
- public string title { get; set; }
The title of this object.
- public int track_number { get; set; }
The original track number of this object.
- public uint update_id { get; set; }
Update ID of this object.
- public string upnp_class { get; set; }
The UPnP class of this object.
- public unowned Ns* upnp_namespace { owned get; construct; }
Pointer to the UPnP namespace registered with the XML document containing this object.
- public string write_status { get; set; }
The write status of this object.
- public unowned Node* xml_node { get; construct; }
The pointer to object node in XML document.
Creation methods:
- protected DIDLLiteObject ()
Methods:
- public DIDLLiteContributor add_artist ()
Add a new Artist node to the this and return the associated DIDLLiteContributor object.
- public DIDLLiteContributor add_author ()
Add a new author node to the this and return the associated DIDLLiteContributor object.
- public DIDLLiteContributor add_creator ()
Add a new creator node to the this and return the associated DIDLLiteContributor object.
- public DIDLLiteDescriptor add_descriptor ()
Creates a new descriptor, attaches it to this and returns it.
- public DIDLLiteResource add_resource ()
Creates a new resource, attaches it to this and returns it.
- public DIDLLiteFragmentResult apply_fragments (string[] current_fragments, string[] new_fragments)
Updates object by applying
new_fragments
in places ofcurrent_fragments
. - public unowned string get_album ()
Get the album of the this.
- public unowned string get_album_art ()
Get the URI to album art of the this.
- public string get_album_xml_string ()
Creates a string representation of the DIDL-Lite XML fragment related to the object album.
- public unowned string get_artist ()
Get the artist of the this.
- public List<DIDLLiteContributor> get_artists ()
Get the artists of the this.
- public string get_artists_xml_string ()
Creates a string representation of the DIDL-Lite XML fragments related to the object artists.
- public unowned string get_author ()
Get the author of the this.
- public List<DIDLLiteContributor> get_authors ()
Get the authors of the this.
- public DIDLLiteResource get_compat_resource (string sink_protocol_info, bool lenient)
Use this function to get a resource from the this that is compatible with any of the protocols specified in the
sink_protocol_info
. - public unowned string get_creator ()
Get the creator of the this.
- public List<DIDLLiteContributor> get_creators ()
Get the creators of the this.
- public unowned string get_date ()
Get the date of the this.
- public string get_date_xml_string ()
Creates a string representation of the DIDL-Lite XML fragment related to the object date.
- public unowned Ns* get_dc_namespace ()
Get the pointer to the DublinCore namespace registered with the XML document containing this object.
- public unowned string get_description ()
Get the description of the this.
- public List<DIDLLiteDescriptor> get_descriptors ()
Get the descriptors of the this.
- public OCMFlags get_dlna_managed ()
Get the 'dlna:dlnaManaged' attribute of the this .
- public unowned Ns* get_dlna_namespace ()
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
- public unowned string get_genre ()
Get the genre of the this.
- public unowned string get_id ()
Get the ID of the this.
- public unowned string get_parent_id ()
Get the ID of the parent of the this.
- public List<unowned Node> get_properties (string name)
Use this function to retreive property nodes by name.
- public unowned Ns* get_pv_namespace ()
Get the pointer to the PV metadata namespace registered with the XML document containing this object.
- public List<DIDLLiteResource> get_resources ()
Use this function to retreive resources from the this.
- public bool get_restricted ()
Whether the this is restricted or not.
- public unowned string get_title ()
Get the title of the this.
- public string get_title_xml_string ()
Creates a string representation of the DIDL-Lite XML fragment related to the object title.
- public int get_track_number ()
Get the original track number of the this.
- public string get_track_number_xml_string ()
Creates a string representation of the DIDL-Lite XML fragment related to the object track number.
- public uint get_update_id ()
Get the update ID of the this.
- public unowned string get_upnp_class ()
Get the UPnP class of the this.
- public string get_upnp_class_xml_string ()
Creates a string representation of the DIDL-Lite XML fragment related to the object UPnP class.
- public unowned Ns* get_upnp_namespace ()
Get the pointer to the UPnP namespace registered with the XML document.
- public unowned string get_write_status ()
Get the write status of the this.
- public unowned Node get_xml_node ()
Get the pointer to object node in XML document.
- public string get_xml_string ()
Get the representation of this object as an XML string.
- public bool is_restricted_set ()
Whehter the restricted attribute exists on this
- public void set_album (string album)
Set the album of the this to
album
. - public void set_album_art (string album_art)
Set the URI to album art of the this to
album_art
. - public void set_artist (string artist)
Set the Artist of the this to
artist
. - public void set_author (string author)
Set the Author of the this to
author
. - public void set_creator (string creator)
Set the creator of the this to
creator
. - public void set_date (string date)
Set the date of the this to
date
. - public void set_description (string description)
Set the description of the this to
description
. - public void set_dlna_managed (OCMFlags dlna_managed)
Set the 'dlna:dlnaManaged' attribute of the this to
dlna_managed
. - public void set_genre (string genre)
Set the genre of the this to
genre
. - public void set_id (string id)
Set the ID of the this to
id
. - public void set_parent_id (string parent_id)
Set the ID of the parent of the this to
parent_id
. - public void set_restricted (bool restricted)
Set the restricted status of this to
restricted
. - public void set_title (string title)
Set the title of the this to
title
. - public void set_track_number (int track_number)
Set the original track number of the this to
track_number
. - public void set_update_id (uint update_id)
Set the update ID of the this.
- public void set_upnp_class (string upnp_class)
Set the UPnP class of the this to
upnp_class
. - public void set_write_status (string write_status)
Set the write status of the this to
write_status
. - public void unset_artists ()
Unset the artists properties of the this.
- public void unset_update_id ()
Unset the update ID property of the this.
- public bool update_id_is_set ()
Get whether the update ID of the this is set.
Inherited Members:
All known members inherited from class GLib.Object