| librygel-server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#define RYGEL_TYPE_MEDIA_OBJECT void rygel_media_object_get_writable (RygelMediaObject *self,GCancellable *cancellable,GAsyncReadyCallback _callback_,gpointer _user_data_); GFile * rygel_media_object_get_writable_finish (RygelMediaObject *self,GAsyncResult *_res_,GError **error); void rygel_media_object_get_writables (RygelMediaObject *self,GCancellable *cancellable,GAsyncReadyCallback _callback_,gpointer _user_data_); GeeArrayList * rygel_media_object_get_writables_finish (RygelMediaObject *self,GAsyncResult *_res_,GError **error); gint rygel_media_object_compare_string_props (RygelMediaObject *self,const gchar *prop1,const gchar *prop2); gint rygel_media_object_compare_int_props (RygelMediaObject *self,gint prop1,gint prop2); RygelMediaContainer * rygel_media_object_get_parent_ref (RygelMediaObject *self); void rygel_media_object_set_parent_ref (RygelMediaObject *self,RygelMediaContainer *value); const gchar * rygel_media_object_get_title (RygelMediaObject *self); void rygel_media_object_set_title (RygelMediaObject *self,const gchar *value); struct RygelMediaObject; struct RygelMediaObjectClass;
"ocm-flags" GUPnPOCMFlags : Read "parent-ref" RygelMediaContainer* : Read / Write "restricted" gboolean : Read "title" gchar* : Read / Write
The derived RygelMediaContainer class represents a container, and the derived RygelMediaItem classes (RygelAudioItem, RygelImageItem and RygelVideoItem) represent media items.
These objects correspond to items and containers in the UPnP ContentDirectory's DIDL-Lite XML.
#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
The type for RygelMediaObject.
void rygel_media_object_get_writable (RygelMediaObject *self,GCancellable *cancellable,GAsyncReadyCallback _callback_,gpointer _user_data_);
Fetches a File object for any writable URI available for this object.
See also: rygel_media_object_get_writable_finish()
|
the RygelMediaObject instance |
|
A GLib.Cancellable. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
GFile * rygel_media_object_get_writable_finish (RygelMediaObject *self,GAsyncResult *_res_,GError **error);
Fetches a File object for any writable URI available for this object.
See also: rygel_media_object_get_writable()
|
the RygelMediaObject instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
void rygel_media_object_get_writables (RygelMediaObject *self,GCancellable *cancellable,GAsyncReadyCallback _callback_,gpointer _user_data_);
Fetches File objects for all writable URIs available for this object.
See also: rygel_media_object_get_writables_finish()
|
the RygelMediaObject instance |
|
A GLib.Cancellable. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
GeeArrayList * rygel_media_object_get_writables_finish (RygelMediaObject *self,GAsyncResult *_res_,GError **error);
Fetches File objects for all writable URIs available for this object.
See also: rygel_media_object_get_writables()
|
the RygelMediaObject instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
gint rygel_media_object_compare_string_props (RygelMediaObject *self,const gchar *prop1,const gchar *prop2);
|
the RygelMediaObject instance |
gint rygel_media_object_compare_int_props (RygelMediaObject *self,gint prop1,gint prop2);
|
the RygelMediaObject instance |
RygelMediaContainer * rygel_media_object_get_parent_ref (RygelMediaObject *self);
Get and return the current value of the "parent-ref" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "parent-ref" property |
void rygel_media_object_set_parent_ref (RygelMediaObject *self,RygelMediaContainer *value);
Set the value of the "parent-ref" property to value.
|
the RygelMediaObject instance to modify |
|
the new value of the "parent-ref" property |
const gchar * rygel_media_object_get_title (RygelMediaObject *self);
Get and return the current value of the "title" property.
|
the RygelMediaObject instance to query |
Returns : |
the value of the "title" property |
void rygel_media_object_set_title (RygelMediaObject *self,const gchar *value);
Set the value of the "title" property to value.
|
the RygelMediaObject instance to modify |
|
the new value of the "title" property |
struct RygelMediaObject;
Represents a media object (container or item).
The derived RygelMediaContainer class represents a container, and the derived RygelMediaItem classes (RygelAudioItem, RygelImageItem and RygelVideoItem) represent media items.
These objects correspond to items and containers in the UPnP ContentDirectory's DIDL-Lite XML.
struct RygelMediaObjectClass {
GObjectClass parent_class;
GUPnPDIDLLiteObject* (*serialize) (RygelMediaObject* self, GUPnPDIDLLiteWriter* writer, RygelHTTPServer* http_server, GError** error);
gint (*compare_by_property) (RygelMediaObject* self, RygelMediaObject* media_object, const gchar* property);
GUPnPOCMFlags (*get_ocm_flags) (RygelMediaObject* self);
};
The class structure for RYGEL_TYPE_MEDIA_OBJECT. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |