sbRemoteLibraryResource Class Reference

#include <sbRemoteLibraryResource.h>

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

Public Member Functions

NS_DECL_ISUPPORTS NS_IMETHOD GetGuid (nsAString &aGuid)
 
NS_IMETHOD GetCreated (PRInt64 *aCreated)
 
NS_IMETHOD GetUpdated (PRInt64 *aUpdated)
 
NS_IMETHOD GetUserEditable (PRBool *aUserEditable)
 
NS_IMETHOD GetPropertyIDs (nsIStringEnumerator **aPropertyIDs)
 
NS_IMETHOD GetProperties (sbIPropertyArray *aPropertyIDs, sbIPropertyArray **_retval)
 
NS_IMETHOD Equals (sbILibraryResource *aOtherLibraryResource, PRBool *_retval)
 
NS_IMETHOD GetProperty (const nsAString &aID, nsAString &_retval)
 
NS_IMETHOD SetProperty (const nsAString &aID, const nsAString &aValue)
 
NS_IMETHOD SetProperties (sbIPropertyArray *aProperties)
 
 sbRemoteLibraryResource (sbRemotePlayer *aRemotePlayer, sbIMediaItem *aMediaItem)
 
virtual ~sbRemoteLibraryResource ()
 
- 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

nsRefPtr< sbRemotePlayermRemotePlayer
 
nsCOMPtr< sbIMediaItemmMediaItem
 

Additional Inherited Members

- 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 44 of file sbRemoteLibraryResource.h.

Constructor & Destructor Documentation

sbRemoteLibraryResource::sbRemoteLibraryResource ( sbRemotePlayer aRemotePlayer,
sbIMediaItem aMediaItem 
)
sbRemoteLibraryResource::~sbRemoteLibraryResource ( )
virtual

Definition at line 63 of file sbRemoteLibraryResource.cpp.

Member Function Documentation

NS_IMETHOD sbRemoteLibraryResource::Equals ( sbILibraryResource aOtherLibraryResource,
PRBool *  _retval 
)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHOD sbRemoteLibraryResource::GetCreated ( PRInt64 *  aCreated)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_DECL_ISUPPORTS NS_IMETHOD sbRemoteLibraryResource::GetGuid ( nsAString &  aGuid)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHOD sbRemoteLibraryResource::GetProperties ( sbIPropertyArray aPropertyIDs,
sbIPropertyArray **  _retval 
)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHODIMP sbRemoteLibraryResource::GetProperty ( const nsAString &  aID,
nsAString &  _retval 
)

Definition at line 73 of file sbRemoteLibraryResource.cpp.

Here is the caller graph for this function:

NS_IMETHOD sbRemoteLibraryResource::GetPropertyIDs ( nsIStringEnumerator **  aPropertyIDs)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHOD sbRemoteLibraryResource::GetUpdated ( PRInt64 *  aUpdated)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHOD sbRemoteLibraryResource::GetUserEditable ( PRBool *  aUserEditable)
inline

Definition at line 49 of file sbRemoteLibraryResource.h.

NS_IMETHODIMP sbRemoteLibraryResource::SetProperties ( sbIPropertyArray aProperties)

Definition at line 202 of file sbRemoteLibraryResource.cpp.

NS_IMETHODIMP sbRemoteLibraryResource::SetProperty ( const nsAString &  aID,
const nsAString &  aValue 
)

Definition at line 134 of file sbRemoteLibraryResource.cpp.

Member Data Documentation

nsCOMPtr<sbIMediaItem> sbRemoteLibraryResource::mMediaItem
protected

Definition at line 62 of file sbRemoteLibraryResource.h.

nsRefPtr<sbRemotePlayer> sbRemoteLibraryResource::mRemotePlayer
protected

Definition at line 61 of file sbRemoteLibraryResource.h.


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