| Top |
RygelSimpleContainerRygelSimpleContainer — A simple implementation of RygelMediaContainer that keeps all RygelMediaObjects in memory. You should add children via |
#define RYGEL_TYPE_SIMPLE_CONTAINER (rygel_simple_container_get_type ())
The type for RygelSimpleContainer.
void rygel_simple_container_add_child_item (RygelSimpleContainer *self,RygelMediaItem *child);
Adds an item to the container.
self |
the RygelSimpleContainer instance |
|
child |
. The child item to add to the container. . |
[in] |
RygelMediaObjects *
rygel_simple_container_get_all_children
(RygelSimpleContainer *self);
Get all children, including the empty children.
This is useful when all children are empty, so get_children() would return no objects, but when you need to add items to the empty items.
This is useful only when implementing derived classes.
void rygel_simple_container_add_child_container (RygelSimpleContainer *self,RygelMediaContainer *child);
Adds a child container to this container.
The child container will only be added to the hierarchy if, or when, it contains some children.
void rygel_simple_container_remove_child (RygelSimpleContainer *self,RygelMediaObject *child);
Removes the item from the container.
void
rygel_simple_container_clear (RygelSimpleContainer *self);
Removes all child items and child containers from the container.
gboolean rygel_simple_container_is_child_id_unique (RygelSimpleContainer *self,const gchar *child_id);
Check that the ID is unique within this container.
This is useful only when implementing derived classes.
RygelSimpleContainer * rygel_simple_container_new (const gchar *id,RygelMediaContainer *parent,const gchar *title);
Creates a child RygelSimpleContainer.
RygelSimpleContainer *
rygel_simple_container_new_root (const gchar *title);
Creates a RygelSimpleContainer as a root container.
struct RygelSimpleContainer;
A simple implementation of RygelMediaContainer that keeps all RygelMediaObjects in memory. You should add children via rygel_simple_container_add_child_item().
struct RygelSimpleContainerClass {
RygelMediaContainerClass parent_class;
};
The class structure for RYGEL_TYPE_SIMPLE_CONTAINER. All the fields in this structure are private and should never be accessed directly.