Rygel.WritableContainer – librygel-server – Vala Binding Reference

Rygel.WritableContainer – librygel-server Reference Manual

# WritableContainer

## Object Hierarchy:

## Description:

public interface WritableContainer : MediaContainer

This interface should be implemented by 'writable' containers - ones that allow adding, removal and editing of items directly under them. Currently, only addition and removal is supported.

In addition to implementing this interface, a writable container must also:

1. Provide one URI that points to a writable folder on a GIO-supported filesystem.
2. Monitor not only its own URI but also that of its child items, though the latter is implied in the former if you use GIO for monitoring.

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

- public abstract `ArrayList`<`string`> create_classes { set; get; }
  The list of upnp classes that can be added to this container.

### Methods:

- public `bool` can_create (`string` upnp_class)
  Check if this container can contain an item with the given upnp class, meaning that rygel_writable_container_add_item() should succeed.
- public abstract async void add_item (MediaItem item, `Cancellable`? cancellable) throws `Error`
  Add a new item directly under this container.
- public abstract async void remove_item (`string` id, `Cancellable`? cancellable) throws `Error`
  Remove an item directly under this container that has the ID @id.