sbRemoteMediaItem Class Reference

#include <sbRemoteMediaItem.h>

Inheritance diagram for sbRemoteMediaItem:
[legend]
Collaboration diagram for sbRemoteMediaItem:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSICLASSINFO virtual
NS_DECL_SBISECURITYAGGREGATOR
nsresult 
Init ()
 
 NS_FORWARD_SAFE_SBIMEDIAITEM (mMediaItem)
 
 NS_FORWARD_SAFE_NSISECURITYCHECKEDCOMPONENT (mSecurityMixin)
 
virtual already_AddRefed
< sbIMediaItem
GetMediaItem ()
 
 sbRemoteMediaItem (sbRemotePlayer *aRemotePlayer, sbIMediaItem *aMediaItem)
 
- Public Member Functions inherited from sbIMediaItem
void testIsURIAvailable (in nsIObserver aObserver)
 Test if this media item is available for playback. More...
 
nsIChannel openInputStreamAsync (in nsIStreamListener aListener, in nsISupports aContext)
 Asynchronously get an input stream to the content of the media item. More...
 
nsIInputStream openInputStream ()
 Synchronously get an input stream to the content of the media item. More...
 
nsIOutputStream openOutputStream ()
 Get an output stream to the content of the media item. More...
 
AString toString ()
 Get a string representation of the media item, useful for debugging. More...
 
- Public Member Functions inherited from sbILibraryResource
AString getProperty (in AString aID)
 Get the value of a property of this resource. More...
 
void setProperty (in AString aID, in AString aValue)
 Set the value of a property on this resource. More...
 
sbIPropertyArray getProperties ([optional] in sbIPropertyArray aPropertyIDs)
 Get properties from this resource in a property array. More...
 
void setProperties (in sbIPropertyArray aProperties)
 Sets the properties and values in the supplied property array to this resource. This works as if you called setProperty on each property in the array. More...
 
boolean equals (in sbILibraryResource aOtherLibraryResource)
 Tests the equality of two library resources. More...
 

Protected Member Functions

virtual ~sbRemoteMediaItem ()
 

Protected Attributes

nsCOMPtr
< nsISecurityCheckedComponent
mSecurityMixin
 
nsRefPtr< sbRemotePlayermRemotePlayer
 
nsCOMPtr< sbIMediaItemmMediaItem
 
nsCOMPtr< sbILibraryResourcemRemLibraryResource
 

Additional Inherited Members

- Public Attributes inherited from sbISecurityAggregator
readonly attribute sbIRemotePlayer remotePlayer
 
- Public Attributes inherited from sbIMediaItem
readonly attribute sbILibrary library
 The library that this media item is contained in. More...
 
readonly attribute boolean isMutable
 Can the media item be changed? More...
 
readonly attribute
sbIMediaItemController 
itemController
 An interface to the media item controller (if any) that determines this item's availability for playback. More...
 
attribute long long mediaCreated
 Creation time of the media item as a unix timestamp. More...
 
attribute long long mediaUpdated
 Last modification time of the media item as a unix timestamp. More...
 
attribute nsIURI contentSrc
 A nsIURI that resolves to the content of the media item. More...
 
attribute long long contentLength
 Size (in bytes) of the content of the media item. More...
 
attribute AString contentType
 Content type of the content of the media item, typically a mime type (should this be renamed?) More...
 
- Public Attributes inherited from sbILibraryResource
readonly attribute AString guid
 The guid of this resource. More...
 
readonly attribute long long created
 The creation time of this resource as a unix timestamp. More...
 
readonly attribute long long updated
 The last update time of this resource as a unix timestamp. More...
 
readonly attribute
nsIStringEnumerator 
propertyIDs
 Returns a string enumerator of the IDs of all the properties set on this resource. More...
 
readonly attribute boolean userEditable
 True if users should be allowed to modify the resource. More...
 

Detailed Description

Definition at line 52 of file sbRemoteMediaItem.h.

Constructor & Destructor Documentation

sbRemoteMediaItem::sbRemoteMediaItem ( sbRemotePlayer aRemotePlayer,
sbIMediaItem aMediaItem 
)

Definition at line 106 of file sbRemoteMediaItem.cpp.

sbRemoteMediaItem::~sbRemoteMediaItem ( )
protectedvirtual

Definition at line 122 of file sbRemoteMediaItem.cpp.

Member Function Documentation

already_AddRefed< sbIMediaItem > sbRemoteMediaItem::GetMediaItem ( )
virtual

Implements sbIWrappedMediaItem.

Definition at line 160 of file sbRemoteMediaItem.cpp.

nsISecurityCheckedComponent nsresult sbRemoteMediaItem::Init ( )
virtual

Reimplemented in sbRemoteSiteMediaItem, and sbRemoteWebMediaItem.

Definition at line 104 of file sbRemoteMediaItem.cpp.

sbRemoteMediaItem::NS_FORWARD_SAFE_NSISECURITYCHECKEDCOMPONENT ( mSecurityMixin  )
sbRemoteMediaItem::NS_FORWARD_SAFE_SBIMEDIAITEM ( mMediaItem  )

Member Data Documentation

nsCOMPtr<sbIMediaItem> sbRemoteMediaItem::mMediaItem
protected

Definition at line 81 of file sbRemoteMediaItem.h.

nsCOMPtr<sbILibraryResource> sbRemoteMediaItem::mRemLibraryResource
protected

Definition at line 82 of file sbRemoteMediaItem.h.

nsRefPtr<sbRemotePlayer> sbRemoteMediaItem::mRemotePlayer
protected

Definition at line 80 of file sbRemoteMediaItem.h.

nsCOMPtr<nsISecurityCheckedComponent> sbRemoteMediaItem::mSecurityMixin
protected

Definition at line 78 of file sbRemoteMediaItem.h.


The documentation for this class was generated from the following files: