summaryrefslogtreecommitdiff
path: root/include/media/mediaManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/mediaManager.h')
-rw-r--r--include/media/mediaManager.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/media/mediaManager.h b/include/media/mediaManager.h
index c9e042d..9c5b9a1 100644
--- a/include/media/mediaManager.h
+++ b/include/media/mediaManager.h
@@ -15,14 +15,15 @@
#include <list>
#include <string>
#include <stdint.h>
-#include <tntdb/connection.h>
#include <tntdb/connect.h>
+#include <tntdb/connection.h>
namespace upnp {
class cResourceStreamer;
class cMediaManager : public cThread {
+ friend void cUPnPResourceProvider::OnContainerUpdate(const string& uri, long updateID, const string& target = string());
private:
struct MediaRequest {
@@ -81,13 +82,18 @@ private:
int CreateResponse(MediaRequest&, const string&, const string&);
- void OnContainerUpdate(string uri, long updateID);
+ void OnContainerUpdate(const string& uri, long updateID, const string& target);
+ bool UpdateContainerUpdateId(const string& objectID, long updateID);
+
+ bool ScanURI(const string& uri, cUPnPResourceProvider* provider);
+
+ bool RefreshObject(const cMetadata& metadata);
cUPnPResourceProvider* CreateResourceProvider(const std::string& uri);
uint32_t systemUpdateID;
IdList eventedContainerUpdateIDs;
- StringList scanDirectories;
+ StringList scanTargets;
string databaseFile;
string pluginDirectory;
tntdb::Connection connection;