Rygel.SimpleContainer – librygel-server – Vala Binding Reference

Rygel.SimpleContainer – librygel-server Reference Manual

# SimpleContainer

## Object Hierarchy:

## Description:

public class SimpleContainer : MediaContainer, SearchableContainer

A simple implementation of RygelMediaContainer that keeps all RygelMediaObjects in memory. You should add children via rygel_simple_container_add_child_item().

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

- public `ArrayList`<`string`> search_classes { set; get; }

### Creation methods:

- public SimpleContainer (`string` id, MediaContainer? parent, `string` title)
  Creates a child RygelSimpleContainer.
- public SimpleContainer.root (`string` title)
  Creates a RygelSimpleContainer as a root container.

### Methods:

- public void add_child_item (MediaItem child)
  Adds an item to the container.
- protected MediaObjects get_all_children ()
  Get all children, including the empty children.
- public void add_child_container (MediaContainer child)
  Adds a child container to this container.
- public void remove_child (MediaObject child)
  Removes the item from the container.
- public void clear ()
  Removes all child items and child containers from the container.
- protected `bool` is_child_id_unique (`string` child_id)
  Check that the ID is unique within this container.
- public override async MediaObjects? get_children (`uint` offset, `uint` max_count, `string` sort_criteria, `Cancellable`? cancellable) throws `Error`
- public override async MediaObject? find_object (`string` id, `Cancellable`? cancellable) throws `Error`
- public async MediaObjects? search (SearchExpression? expression, `uint` offset, `uint` max_count, out `uint` total_matches, `string` sort_criteria, `Cancellable`? cancellable) throws `Error`

### Fields:

- public MediaObjects children