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 MediaContainer that keeps all MediaObjects in memory. In order for it to be of any use, you must add children to children ArrayList field.

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

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

### Creation methods:

- public SimpleContainer (`string` id, MediaContainer? parent, `string` title)
- public SimpleContainer.root (`string` title)

### Methods:

- public void add_child_item (MediaItem child)
- public MediaObjects get_all_children ()
- public void add_child_container (MediaContainer child)
  NOTE: This method only actually adds the child container to the hierarchy until it has any children to offer.
- public void remove_child (MediaObject child)
- public void clear ()
- public `bool` is_child_id_unique (`string` child_id)
- 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