return _handler->protocol();
}
+bool
+MediaAccess::downloads() const
+{
+ return _handler ? _handler->downloads() : false;
+}
+
///////////////////////////////////////////////////////////////////
//
//
bool isOpen() const { return( _handler != 0 ); }
/**
+ * Hint if files are downloaded or not.
+ */
+ bool downloads() const;
+
+ /**
* Used Protocol if media is opened, otherwise 'unknown'.
**/
std::string protocol() const;
//
///////////////////////////////////////////////////////////////////
+ /**
+ * Hint if files are downloaded or not.
+ */
+ bool downloads() const { return _does_download; }
+
/**
* Protocol hint for MediaAccess.
**/
}
// ---------------------------------------------------------------
+ bool
+ MediaManager::downloads(MediaAccessId accessId) const
+ {
+ MutexLock glock(g_Mutex);
+
+ ManagedMedia &ref( m_impl->findMM(accessId));
+
+ return ref.handler->downloads();
+ }
+
+ // ---------------------------------------------------------------
Url
MediaManager::url(MediaAccessId accessId) const
{
protocol(MediaAccessId accessId) const;
/**
+ * Hint if files are downloaded or not.
+ */
+ bool
+ downloads(MediaAccessId accessId) const;
+
+ /**
* Url of the media access id, otherwise empty Url.
*
* \throws MediaNotOpenException for invalid access id.