RygelWritableContainer

RygelWritableContainer — This interface should be implemented by 'writable' containers - ones that allow adding (via upload), removal and editing of items directly under them. Currently, only addition and removal are supported.

Types and Values

Description

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.

Functions

Types and Values

enum RygelWritableContainerError

Members

RYGEL_WRITABLE_CONTAINER_ERROR_NOT_IMPLEMENTED

   

RYGEL_WRITABLE_CONTAINER_WRITABLE_SCHEME

#define RYGEL_WRITABLE_CONTAINER_WRITABLE_SCHEME "rygel-writable://"

RygelWritableContainer

typedef struct _RygelWritableContainer RygelWritableContainer;

This interface should be implemented by 'writable' containers - ones that allow adding (via upload), removal and editing of items directly under them. Currently, only addition and removal are 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.


struct RygelWritableContainerIface

struct RygelWritableContainerIface {
	GTypeInterface parent_iface;
	void (*add_item) (RygelWritableContainer* self, RygelMediaFileItem* item, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*add_item_finish) (RygelWritableContainer* self, GAsyncResult* _res_, GError** error);
	void (*add_container) (RygelWritableContainer* self, RygelMediaContainer* container, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*add_container_finish) (RygelWritableContainer* self, GAsyncResult* _res_, GError** error);
	void (*add_reference) (RygelWritableContainer* self, RygelMediaObject* object, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar* (*add_reference_finish) (RygelWritableContainer* self, GAsyncResult* _res_, GError** error);
	void (*remove_item) (RygelWritableContainer* self, const gchar* id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*remove_item_finish) (RygelWritableContainer* self, GAsyncResult* _res_, GError** error);
	void (*remove_container) (RygelWritableContainer* self, const gchar* id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*remove_container_finish) (RygelWritableContainer* self, GAsyncResult* _res_, GError** error);
	GeeArrayList* (*get_create_classes) (RygelWritableContainer* self);
	void (*set_create_classes) (RygelWritableContainer* self, GeeArrayList* value);
};

Interface for creating RygelWritableContainer implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

add_item ()

virtual method called by rygel_writable_container_add_item()

 

add_item_finish ()

asynchronous finish function for add_item, called by rygel_writable_container_add_item()

 

add_container ()

virtual method called by rygel_writable_container_add_container()

 

add_container_finish ()

asynchronous finish function for add_container, called by rygel_writable_container_add_container()

 

add_reference ()

virtual method called by rygel_writable_container_add_reference()

 

add_reference_finish ()

asynchronous finish function for add_reference, called by rygel_writable_container_add_reference()

 

remove_item ()

virtual method called by rygel_writable_container_remove_item()

 

remove_item_finish ()

asynchronous finish function for remove_item, called by rygel_writable_container_remove_item()

 

remove_container ()

virtual method called by rygel_writable_container_remove_container()

 

remove_container_finish ()

asynchronous finish function for remove_container, called by rygel_writable_container_remove_container()

 

get_create_classes ()

getter method for the abstract property "create-classes"

 

set_create_classes ()

setter method for the abstract property "create-classes"