summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/media/mediaManager.h2
-rw-r--r--include/plugin.h26
-rw-r--r--include/tools.h6
3 files changed, 18 insertions, 16 deletions
diff --git a/include/media/mediaManager.h b/include/media/mediaManager.h
index 8a8473f..929181f 100644
--- a/include/media/mediaManager.h
+++ b/include/media/mediaManager.h
@@ -72,6 +72,8 @@ private:
void Action();
bool CheckIntegrity();
+ void CreateResponse(MediaRequest&, const string&);
+
void OnContainerUpdate(string uri, long updateID);
uint32_t mSystemUpdateID;
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:
};
diff --git a/include/tools.h b/include/tools.h
index b12f6be..3c2fcd3 100644
--- a/include/tools.h
+++ b/include/tools.h
@@ -150,11 +150,11 @@ namespace ixml {
* @param upnpproperty the upnp property
* @param value the value of the upnp property
*/
- IXML_Element* IxmlAddProperty(IN IXML_Document* document, IN IXML_Element* node, IN const char* upnpproperty, IN const char* value );
+ IXML_Element* IxmlAddProperty(IN IXML_Document* document, IN IXML_Element* node, IN const string& upnpproperty, IN const string& value );
- IXML_Element* IxmlAddFilteredProperty(IN cStringList* Filter, IN IXML_Document* document, IN IXML_Element* node, IN const char* upnpproperty, IN const char* value );
+ IXML_Element* IxmlAddFilteredProperty(IN const StringList& Filter, IN IXML_Document* document, IN IXML_Element* node, IN const string& upnpproperty, IN const string& value );
- IXML_Element* IxmlReplaceProperty(IN IXML_Document* document, IN IXML_Element* node, IN const char* upnpproperty, IN const char* newValue );
+ IXML_Element* IxmlReplaceProperty(IN IXML_Document* document, IN IXML_Element* node, IN const string& upnpproperty, IN const string& newValue );
}
}