RygelSimpleContainer

## RygelSimpleContainer RygelSimpleContainer — A simple implementation of MediaContainer that keeps all MediaObjects in memory. In order for it to be of any use, you must add children to children ArrayList field. |

## Synopsis

    #define             RYGEL_TYPE_SIMPLE_CONTAINER
    void                rygel_simple_container_add_child_item
                                                            (RygelSimpleContainer *self,
                                                             RygelMediaItem *child);
    RygelMediaObjects * rygel_simple_container_get_all_children
                                                            (RygelSimpleContainer *self);
    void                rygel_simple_container_add_child_container
                                                            (RygelSimpleContainer *self,
                                                             RygelMediaContainer *child);
    void                rygel_simple_container_remove_child (RygelSimpleContainer *self,
                                                             RygelMediaObject *child);
    void                rygel_simple_container_clear        (RygelSimpleContainer *self);
    gboolean            rygel_simple_container_is_child_id_unique
                                                            (RygelSimpleContainer *self,
                                                             const gchar *child_id);
    RygelSimpleContainer * rygel_simple_container_new       (const gchar *id,
                                                             RygelMediaContainer *parent,
                                                             const gchar *title);
    RygelSimpleContainer * rygel_simple_container_new_root  (const gchar *title);
    struct              RygelSimpleContainer;

## Description

## Details

### RYGEL_TYPE_SIMPLE_CONTAINER

    #define RYGEL_TYPE_SIMPLE_CONTAINER (rygel_simple_container_get_type ())

The type for RygelSimpleContainer.

### rygel_simple_container_add_child_item ()

    void                rygel_simple_container_add_child_item
                                                            (RygelSimpleContainer *self,
                                                             RygelMediaItem *child);

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_get_all_children ()

    RygelMediaObjects * rygel_simple_container_get_all_children
                                                            (RygelSimpleContainer *self);

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_add_child_container ()

    void                rygel_simple_container_add_child_container
                                                            (RygelSimpleContainer *self,
                                                             RygelMediaContainer *child);

NOTE: This method only actually adds the child container to the hierarchy until it has any children to offer.

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_remove_child ()

    void                rygel_simple_container_remove_child (RygelSimpleContainer *self,
                                                             RygelMediaObject *child);

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_clear ()

    void                rygel_simple_container_clear        (RygelSimpleContainer *self);

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_is_child_id_unique ()

    gboolean            rygel_simple_container_is_child_id_unique
                                                            (RygelSimpleContainer *self,
                                                             const gchar *child_id);

`self` : | the RygelSimpleContainer instance

### rygel_simple_container_new ()

    RygelSimpleContainer * rygel_simple_container_new       (const gchar *id,
                                                             RygelMediaContainer *parent,
                                                             const gchar *title);

### rygel_simple_container_new_root ()

    RygelSimpleContainer * rygel_simple_container_new_root  (const gchar *title);

### struct RygelSimpleContainer

    struct RygelSimpleContainer {
    	RygelMediaContainer parent_instance;
    	RygelSimpleContainerPrivate * priv;
    	RygelMediaObjects* children;
    };

A simple implementation of MediaContainer that keeps all MediaObjects in memory. In order for it to be of any use, you must add children to children ArrayList field.