![]() |
![]() |
![]() |
GUPnP A/V Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct GUPnPMediaCollection; GUPnPMediaCollection * gupnp_media_collection_new (void
); GUPnPMediaCollection * gupnp_media_collection_new_from_string (const char *data
); void gupnp_media_collection_set_title (GUPnPMediaCollection *collection
,const char *title
); const char * gupnp_media_collection_get_title (GUPnPMediaCollection *collection
); void gupnp_media_collection_set_author (GUPnPMediaCollection *collection
,const char *author
); const char * gupnp_media_collection_get_author (GUPnPMediaCollection *collection
); GUPnPDIDLLiteItem * gupnp_media_collection_add_item (GUPnPMediaCollection *collection
); char * gupnp_media_collection_get_string (GUPnPMediaCollection *collection
); GList * gupnp_media_collection_get_items (GUPnPMediaCollection *collection
); gboolean gupnp_media_collection_get_mutable (GUPnPMediaCollection *collection
);
"author" gchar* : Read / Write / Construct "data" gchar* : Write / Construct Only "mutable" gboolean : Read "title" gchar* : Read / Write / Construct
GUPnPMediaCollection * gupnp_media_collection_new (void
);
Create a new writable media collection.
Returns : |
A new GUPnPMediaCollection. [transfer full] |
GUPnPMediaCollection * gupnp_media_collection_new_from_string
(const char *data
);
Parse a new GUPnPMediaCollection from a block of XML data.
|
XML string. |
Returns : |
A new GUPnPMediaCollection. [transfer full] |
void gupnp_media_collection_set_title (GUPnPMediaCollection *collection
,const char *title
);
Set the title of a GUPnPMediaCollection.
|
GUPnPMediaCollection |
|
New Title of this collection; |
const char * gupnp_media_collection_get_title (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
The title of this media collection or NULL if not set. |
void gupnp_media_collection_set_author (GUPnPMediaCollection *collection
,const char *author
);
Set the author of the media collection
|
GUPnPMediaCollection |
|
New author of this media collection. |
const char * gupnp_media_collection_get_author (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
The author of this media collection or NULL if not set. |
GUPnPDIDLLiteItem * gupnp_media_collection_add_item (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
A new GUPnPDIDLLiteItem object. Unref after use. [transfer full] |
char * gupnp_media_collection_get_string (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
XML string representing this media
collection. g_free() after use. If the colleciton is not mutable, returns a
copy of the original string. [transfer full]
|
GList * gupnp_media_collection_get_items (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
A GList containing the elemens of this collection, in proper order. Unref all items and free the list after use. [transfer full][element-type GUPnPDIDLLiteItem] |
gboolean gupnp_media_collection_get_mutable (GUPnPMediaCollection *collection
);
|
GUPnPMediaCollection |
Returns : |
TRUE if the collections is modifiable, FALSE otherwise. |
"author"
property "author" gchar* : Read / Write / Construct
The author of this media collection.
Default value: NULL
"data"
property "data" gchar* : Write / Construct Only
Block of data to parse a collection from. If data is set upon construction it will override the other properties and create a unmutable collection parsed from data.
Default value: NULL
"mutable"
property "mutable" gboolean : Read
Whether this media collation is modifyable or not.
Default value: FALSE