Top |
RygelSimpleContainerRygelSimpleContainer — A simple implementation of RygelMediaContainer that keeps all RygelMediaObjects in memory. You should add children via |
Functions
Types and Values
#define | RYGEL_TYPE_SIMPLE_CONTAINER |
struct | RygelSimpleContainer |
struct | RygelSimpleContainerClass |
Functions
rygel_simple_container_add_child_item ()
void rygel_simple_container_add_child_item (RygelSimpleContainer *self
,RygelMediaItem *child
);
Adds an item to the container.
Parameters
self |
the RygelSimpleContainer instance |
|
child |
. The child item to add to the container. . |
[in] |
rygel_simple_container_get_all_children ()
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.
rygel_simple_container_add_child_container ()
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.
rygel_simple_container_remove_child ()
void rygel_simple_container_remove_child (RygelSimpleContainer *self
,RygelMediaObject *child
);
Removes the item from the container.
rygel_simple_container_clear ()
void
rygel_simple_container_clear (RygelSimpleContainer *self
);
Removes all child items and child containers from the container.
rygel_simple_container_is_child_id_unique ()
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.
rygel_simple_container_new ()
RygelSimpleContainer * rygel_simple_container_new (const gchar *id
,RygelMediaContainer *parent
,const gchar *title
);
Creates a child RygelSimpleContainer.
rygel_simple_container_new_root ()
RygelSimpleContainer *
rygel_simple_container_new_root (const gchar *title
);
Creates a RygelSimpleContainer as a root container.
Types and Values
RYGEL_TYPE_SIMPLE_CONTAINER
#define RYGEL_TYPE_SIMPLE_CONTAINER (rygel_simple_container_get_type ())
The type for RygelSimpleContainer.
struct RygelSimpleContainer
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
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.