Top | ![]() |
![]() |
![]() |
![]() |
gchar * | artist | Read / Write |
gchar * | creator | Read / Write |
gchar * | date | Read / Write |
gchar * | genre | Read / Write |
gchar * | id | Read / Write / Construct |
guint64 | modified | Read / Write |
guint | object-update-id | Read / Write |
GUPnPOCMFlags | ocm-flags | Read |
RygelMediaContainer * | parent | Read / Write / Construct |
RygelMediaContainer * | parent-ref | Read / Write |
gchar * | ref-id | Read / Write |
gboolean | restricted | Read |
gchar * | title | Read / Write / Construct |
gchar * | upnp-class | Read / Write / Construct |
#define | RYGEL_TYPE_MEDIA_OBJECT |
struct | RygelMediaObject |
struct | RygelMediaObjectClass |
The derived RygelMediaContainer class represents a container and the derived MediaItem classes represent media items.
gchar *
rygel_media_object_get_primary_uri (RygelMediaObject *self
);
void rygel_media_object_add_uri (RygelMediaObject *self
,const gchar *uri
);
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()
self |
the RygelMediaObject instance |
|
cancellable |
. A GLib.Cancellable . |
[in][allow-none] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[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()
self |
the RygelMediaObject instance |
|
_res_ |
||
error |
location to store the error occuring, or |
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()
self |
the RygelMediaObject instance |
|
cancellable |
. A GLib.Cancellable . |
[in][allow-none] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[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()
self |
the RygelMediaObject instance |
|
_res_ |
||
error |
location to store the error occuring, or |
GeeList *
rygel_media_object_get_resource_list (RygelMediaObject *self
);
Return the MediaResource list.
RygelMediaResource * rygel_media_object_get_resource_by_name (RygelMediaObject *self
,const gchar *resource_name
);
GUPnPDIDLLiteObject * rygel_media_object_serialize (RygelMediaObject *self
,RygelSerializer *serializer
,RygelHTTPServer *http_server
,GError **error
);
self |
the RygelMediaObject instance |
|
serializer |
|
|
http_server |
|
|
error |
location to store the error occuring, or |
void rygel_media_object_serialize_resource_list (RygelMediaObject *self
,GUPnPDIDLLiteObject *didl_object
,RygelHTTPServer *http_server
,GError **error
);
Serialize the resource list
Any resource with an empty URIs will get a resource-based HTTP URI and have its protocol and delivery options adjusted to the HTTPServer.
Internal (e.g. "file:") resources will only be included when the http server is on the local host.
Resources will be serialized in list order.
self |
the RygelMediaObject instance |
|
didl_object |
|
|
http_server |
|
|
error |
location to store the error occuring, or |
RygelDataSource * rygel_media_object_create_stream_source_for_resource (RygelMediaObject *self
,RygelHTTPRequest *request
,RygelMediaResource *resource
,GError **error
);
Create a stream source for the given resource
self |
the RygelMediaObject instance |
|
request |
|
|
resource |
|
|
error |
location to store the error occuring, or |
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
);
const gchar *
rygel_media_object_get_id (RygelMediaObject *self
);
Get and return the current value of the "id" property.
void rygel_media_object_set_id (RygelMediaObject *self
,const gchar *value
);
Set the value of the "id" property to value
.
const gchar *
rygel_media_object_get_ref_id (RygelMediaObject *self
);
Get and return the current value of the "ref-id" property.
void rygel_media_object_set_ref_id (RygelMediaObject *self
,const gchar *value
);
Set the value of the "ref-id" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "ref-id" property |
const gchar *
rygel_media_object_get_upnp_class (RygelMediaObject *self
);
Get and return the current value of the "upnp-class" property.
void rygel_media_object_set_upnp_class (RygelMediaObject *self
,const gchar *value
);
Set the value of the "upnp-class" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "upnp-class" property |
const gchar *
rygel_media_object_get_date (RygelMediaObject *self
);
Get and return the current value of the "date" property.
void rygel_media_object_set_date (RygelMediaObject *self
,const gchar *value
);
Set the value of the "date" property to value
.
const gchar *
rygel_media_object_get_creator (RygelMediaObject *self
);
Get and return the current value of the "creator" property.
void rygel_media_object_set_creator (RygelMediaObject *self
,const gchar *value
);
Set the value of the "creator" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "creator" property |
guint64
rygel_media_object_get_modified (RygelMediaObject *self
);
Get and return the current value of the "modified" property.
void rygel_media_object_set_modified (RygelMediaObject *self
,guint64 value
);
Set the value of the "modified" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "modified" property |
guint
rygel_media_object_get_object_update_id
(RygelMediaObject *self
);
Get and return the current value of the "object-update-id" property.
void rygel_media_object_set_object_update_id (RygelMediaObject *self
,guint value
);
Set the value of the "object-update-id" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "object-update-id" property |
const gchar *
rygel_media_object_get_artist (RygelMediaObject *self
);
Get and return the current value of the "artist" property.
void rygel_media_object_set_artist (RygelMediaObject *self
,const gchar *value
);
Set the value of the "artist" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "artist" property |
const gchar *
rygel_media_object_get_genre (RygelMediaObject *self
);
Get and return the current value of the "genre" property.
void rygel_media_object_set_genre (RygelMediaObject *self
,const gchar *value
);
Set the value of the "genre" property to value
.
RygelMediaContainer *
rygel_media_object_get_parent (RygelMediaObject *self
);
Get and return the current value of the "parent" property.
void rygel_media_object_set_parent (RygelMediaObject *self
,RygelMediaContainer *value
);
Set the value of the "parent" property to value
.
self |
the RygelMediaObject instance to modify |
|
value |
the new value of the "parent" property |
RygelMediaContainer *
rygel_media_object_get_parent_ref (RygelMediaObject *self
);
Get and return the current 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
.
self |
the RygelMediaObject instance to modify |
|
value |
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 human-readable title of this container or item. These variables will be substituted:
- @REALNAME
@ will be substituted by the user's real name.
- @USERNAME
@ will be substituted by the users's login ID.
- @HOSTNAME
@ will be substituted by the name of the machine.
- @ADDRESS
@ will be substituted by the IP address of network interface
used for the UPnP communication.
- @PRETTY_HOSTNAME
@ will be substituted by the human readable name of the machine
(PRETTY_HOSTNAME field of /etc/machine-info)
void rygel_media_object_set_title (RygelMediaObject *self
,const gchar *value
);
Set the value of the "title" property to value
.
The human-readable title of this container or item. These variables will be substituted:
- @REALNAME
@ will be substituted by the user's real name.
- @USERNAME
@ will be substituted by the users's login ID.
- @HOSTNAME
@ will be substituted by the name of the machine.
- @ADDRESS
@ will be substituted by the IP address of network interface
used for the UPnP communication.
- @PRETTY_HOSTNAME
@ will be substituted by the human readable name of the machine
(PRETTY_HOSTNAME field of /etc/machine-info)
GUPnPOCMFlags
rygel_media_object_get_ocm_flags (RygelMediaObject *self
);
Get and return the current value of the "ocm-flags" property.
gchar * rygel_media_object_apply_replacements (GHashTable *replacement_pairs
,const gchar *source_string
);
Replace each key in replacement_pairs with its corresponding value in the source_string and return the result.
#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
The type for RygelMediaObject.
struct RygelMediaObject;
Represents a media object (container or item).
The derived RygelMediaContainer class represents a container and the derived MediaItem classes represent media items.
struct RygelMediaObjectClass { GObjectClass parent_class; void (*add_uri) (RygelMediaObject* self, const gchar* uri); GUPnPDIDLLiteObject* (*serialize) (RygelMediaObject* self, RygelSerializer* serializer, RygelHTTPServer* http_server, GError** error); RygelDataSource* (*create_stream_source_for_resource) (RygelMediaObject* self, RygelHTTPRequest* request, RygelMediaResource* resource, GError** error); void (*apply_didl_lite) (RygelMediaObject* self, GUPnPDIDLLiteObject* didl_object); 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.
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
getter method for the abstract property "ocm-flags" |
“object-update-id”
property“object-update-id” guint
object-update-id.
Flags: Read / Write
Default value: 0
“title”
property“title” gchar *
The human-readable title of this container or item. These variables will be substituted:
- @REALNAME
@ will be substituted by the user's real name.
- @USERNAME
@ will be substituted by the users's login ID.
- @HOSTNAME
@ will be substituted by the name of the machine.
- @ADDRESS
@ will be substituted by the IP address of network interface
used for the UPnP communication.
- @PRETTY_HOSTNAME
@ will be substituted by the human readable name of the machine
(PRETTY_HOSTNAME field of /etc/machine-info)
Flags: Read / Write / Construct
Default value: NULL
“upnp-class”
property“upnp-class” gchar *
upnp-class.
Flags: Read / Write / Construct
Default value: NULL