50 #include <nsEnumeratorUtils.h>
51 #include <nsISimpleEnumerator.h>
52 #include <nsIStringEnumerator.h>
82 _retval.SetIsVoid(PR_TRUE);
93 sbTemporaryMediaItem::SetProperty(
const nsAString& aID,
109 return NS_ERROR_NOT_IMPLEMENTED;
134 NS_ENSURE_ARG_POINTER(aOtherLibraryResource);
135 NS_ENSURE_ARG_POINTER(_retval);
136 *_retval = aOtherLibraryResource ==
this;
151 sbTemporaryMediaItem::GetGuid(nsAString& aGuid)
164 sbTemporaryMediaItem::GetCreated(PRInt64* aCreated)
166 NS_ENSURE_ARG_POINTER(aCreated);
178 sbTemporaryMediaItem::GetUpdated(PRInt64* aUpdated)
180 NS_ENSURE_ARG_POINTER(aUpdated);
195 NS_ENSURE_ARG_POINTER(aPropertyIDs);
202 rv = NS_NewEmptyEnumerator(getter_AddRefs(propertyIDs));
203 NS_ENSURE_SUCCESS(rv, rv);
204 rv = CallQueryInterface(propertyIDs, aPropertyIDs);
205 NS_ENSURE_SUCCESS(rv, rv);
217 sbTemporaryMediaItem::GetUserEditable(PRBool* aUserEditable)
219 NS_ENSURE_ARG_POINTER(aUserEditable);
220 *aUserEditable = PR_FALSE;
237 sbTemporaryMediaItem::TestIsURIAvailable(
nsIObserver* aObserver)
239 return NS_ERROR_NOT_IMPLEMENTED;
249 sbTemporaryMediaItem::OpenInputStreamAsync(nsIStreamListener* aListener,
253 return NS_ERROR_NOT_IMPLEMENTED;
263 sbTemporaryMediaItem::OpenInputStream(nsIInputStream** _retval)
265 return NS_ERROR_NOT_IMPLEMENTED;
275 sbTemporaryMediaItem::OpenOutputStream(nsIOutputStream** _retval)
277 return NS_ERROR_NOT_IMPLEMENTED;
289 _retval.Assign(NS_LITERAL_STRING(
"sbTemporaryMediaItem"));
304 sbTemporaryMediaItem::GetLibrary(
sbILibrary** aLibrary)
306 return NS_ERROR_NOT_AVAILABLE;
316 sbTemporaryMediaItem::GetIsMutable(PRBool* aIsMutable)
318 NS_ENSURE_ARG_POINTER(aIsMutable);
319 *aIsMutable = PR_FALSE;
331 NS_ENSURE_ARG_POINTER(aMediaItemController);
332 *aMediaItemController = nsnull;
343 sbTemporaryMediaItem::GetMediaCreated(PRInt64* aMediaCreated)
345 NS_ENSURE_ARG_POINTER(aMediaCreated);
351 sbTemporaryMediaItem::SetMediaCreated(PRInt64 aMediaCreated)
363 sbTemporaryMediaItem::GetMediaUpdated(PRInt64* aMediaUpdated)
365 NS_ENSURE_ARG_POINTER(aMediaUpdated);
371 sbTemporaryMediaItem::SetMediaUpdated(PRInt64 aMediaUpdated)
383 sbTemporaryMediaItem::GetContentSrc(nsIURI** aContentSrc)
385 NS_ENSURE_ARG_POINTER(aContentSrc);
386 NS_IF_ADDREF(*aContentSrc = mContentSrc);
391 sbTemporaryMediaItem::SetContentSrc(nsIURI* aContentSrc)
393 mContentSrc = aContentSrc;
404 sbTemporaryMediaItem::GetContentLength(PRInt64* aContentLength)
406 NS_ENSURE_ARG_POINTER(aContentLength);
412 sbTemporaryMediaItem::SetContentLength(PRInt64 aContentLength)
424 sbTemporaryMediaItem::GetContentType(nsAString& aContentType)
426 aContentType.Assign(mContentType);
431 sbTemporaryMediaItem::SetContentType(
const nsAString& aContentType)
433 mContentType.Assign(aContentType);
readonly attribute nsIStringEnumerator propertyIDs
Returns a string enumerator of the IDs of all the properties set on this resource.
static nsresult ToString(const nsDiscriminatedUnion &data, nsACString &outString)
General interface to data resources.
static nsresult GetProperty(nsIPropertyBag2 *aProperties, nsAString const &aProp, nsAString &aValue)
Media library abstraction.
nsresult SetProperties(nsIArray *aProperties)
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...