summaryrefslogtreecommitdiff
path: root/include/plugin.h
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-09-20 20:55:29 +0200
committermethodus <methodus@web.de>2012-09-20 20:55:29 +0200
commita226799975373eb2e69f033b34f1e79199553423 (patch)
tree86714bce572f73d1939ef73526ded1501eea3bdc /include/plugin.h
parent44b0ce921d619efe1b4f871603632014295e50af (diff)
downloadvdr-plugin-upnp-a226799975373eb2e69f033b34f1e79199553423.tar.gz
vdr-plugin-upnp-a226799975373eb2e69f033b34f1e79199553423.tar.bz2
Continued work on browsing.
Diffstat (limited to 'include/plugin.h')
-rw-r--r--include/plugin.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/plugin.h b/include/plugin.h
index 3da08ef..fe2c5f6 100644
--- a/include/plugin.h
+++ b/include/plugin.h
@@ -27,6 +27,7 @@ namespace object {
static const char* KEY_CREATOR = "dc:creator";
static const char* KEY_CLASS = "upnp:class";
static const char* KEY_RESTRICTED = "@restricted";
+ static const char* KEY_CHILD_COUNT = "@childCount";
static const char* KEY_DESCRIPTION = "dc:description";
static const char* KEY_LONG_DESCRIPTION = "upnp:longDescription";
static const char* KEY_DATE = "dc:date";
@@ -35,6 +36,8 @@ namespace object {
static const char* KEY_CHANNEL_NAME = "upnp:channelName";
static const char* KEY_SCHEDULED_START = "upnp:scheduledStartTime";
static const char* KEY_SCHEDULED_END = "upnp:scheduledEndTime";
+ static const char* KEY_OBJECT_UPDATE_ID = "upnp:objectUpdateID";
+ static const char* KEY_CONTAINER_UPDATE_ID= "upnp:containerUpdateID";
}
@@ -87,6 +90,7 @@ class PropertyValidator;
*
*/
class cMetadata {
+ friend class cMediaManager;
public:
/**
@@ -170,19 +174,15 @@ public:
typedef list<Resource> ResourceList;
typedef map<string, PropertyValidator*> ValidatorMap;
- bool AddProperty(Property property);
- bool SetProperty(Property property, int index = 0);
+ bool AddProperty(const Property& property);
+ bool SetProperty(const Property& property, int index = 0);
- Property& GetPropertyByKey(string property);
- PropertyRange GetPropertiesByKey(string property);
+ Property& GetPropertyByKey(const string& property);
+ PropertyRange GetPropertiesByKey(const string& property);
PropertyRange GetAllProperties();
- bool SetObjectID(string objectID);
- bool SetObjectIDByUri(string uri);
- string GetObjectID();
- bool SetParentID(string parentID);
- bool SetParentIDByUri(string uri);
- string GetParentID();
+ bool SetObjectIDByUri(const string& uri);
+ bool SetParentIDByUri(const string& uri);
private:
@@ -309,7 +309,7 @@ public:
/**
* Returns the meta data of a specific container.
*
- * This function is used to retrieve meta informatio about a
+ * This function is used to retrieve meta information about a
* container. It is NOT used to get information about files or
* resources, as this is done by the media plugins.
*
@@ -329,7 +329,7 @@ public:
* - Restricted: true
*
*/
- virtual cMetadata* GetMetadata(string uri);
+ virtual cMetadata GetMetadata(string uri);
/**
* Get the HTTP Uri.
@@ -502,7 +502,7 @@ public:
* @param uri the absolute path to the resource.
* @return the media resource information.
*/
- virtual cMetadata* GetMetadata(string uri) = 0;
+ virtual cMetadata GetMetadata(string uri) = 0;
protected:
};