#include <sbLocalDatabaseMediaItem.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_NSIREQUESTOBSERVER NS_DECL_NSICLASSINFO NS_DECL_SBILIBRARYRESOURCE NS_DECL_SBILOCALDATABASEMEDIAITEM NS_DECL_SBIMEDIAITEM | sbLocalDatabaseMediaItem () |
virtual | ~sbLocalDatabaseMediaItem () |
nsresult | Init (sbLocalDatabaseLibrary *aLibrary, const nsAString &aGuid, PRBool aOwnsLibrary=PR_TRUE) |
Initializes the media item. More... | |
Public Member Functions inherited from sbSupportsWeakReference | |
sbSupportsWeakReference () | |
Public Member Functions inherited from sbILocalDatabaseMediaItem | |
void | SetSuppressNotifications (in boolean aSuppress) |
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 Attributes | |
PRUint32 | mMediaItemId |
PRBool | mOwnsLibrary |
sbLocalDatabaseLibrary * | mLibrary |
nsString | mGuid |
PRBool | mSuppressNotifications |
nsCOMPtr< sbIMediaItemController > | mItemController |
PRBool | mItemControllerFetched |
Additional Inherited Members | |
Public Attributes inherited from sbILocalDatabaseMediaItem | |
readonly attribute unsigned long | mediaItemId |
attribute sbILocalDatabaseResourcePropertyBag | propertyBag |
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... | |
Protected Member Functions inherited from sbSupportsWeakReference | |
~sbSupportsWeakReference () | |
void | ClearWeakReferences () |
PRBool | HasWeakReferences () const |
Definition at line 47 of file sbLocalDatabaseMediaItem.h.
NS_DECL_ISUPPORTS NS_DECL_NSIREQUESTOBSERVER NS_DECL_NSICLASSINFO NS_DECL_SBILIBRARYRESOURCE NS_DECL_SBILOCALDATABASEMEDIAITEM NS_DECL_SBIMEDIAITEM sbLocalDatabaseMediaItem::sbLocalDatabaseMediaItem | ( | ) |
|
virtual |
Definition at line 90 of file sbLocalDatabaseMediaItem.cpp.
nsresult sbLocalDatabaseMediaItem::Init | ( | sbLocalDatabaseLibrary * | aLibrary, |
const nsAString & | aGuid, | ||
PRBool | aOwnsLibrary = PR_TRUE |
||
) |
Initializes the media item.
aLibrary | - The library that owns this media item. |
aGuid | - The GUID of the media item. |
Definition at line 110 of file sbLocalDatabaseMediaItem.cpp.
|
protected |
Definition at line 85 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 93 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 95 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 83 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 73 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 78 of file sbLocalDatabaseMediaItem.h.
|
protected |
Definition at line 90 of file sbLocalDatabaseMediaItem.h.