sbBaseDevice::TransferRequest Struct Reference

#include <sbBaseDevice.h>

Inheritance diagram for sbBaseDevice::TransferRequest:
[legend]
Collaboration diagram for sbBaseDevice::TransferRequest:
[legend]

Public Types

enum  {
  REQUEST_MOUNT = sbIDevice::REQUEST_MOUNT, REQUEST_READ = sbIDevice::REQUEST_READ, REQUEST_EJECT = sbIDevice::REQUEST_EJECT, REQUEST_SUSPEND = sbIDevice::REQUEST_SUSPEND,
  REQUEST_WRITE = sbIDevice::REQUEST_WRITE, REQUEST_DELETE = sbIDevice::REQUEST_DELETE, REQUEST_SYNC = sbIDevice::REQUEST_SYNC, REQUEST_IMAGESYNC = sbIDevice::REQUEST_IMAGESYNC,
  REQUEST_WRITE_FILE = sbIDevice::REQUEST_WRITE_FILE, REQUEST_DELETE_FILE = sbIDevice::REQUEST_DELETE_FILE, REQUEST_WIPE = sbIDevice::REQUEST_WIPE, REQUEST_MOVE = sbIDevice::REQUEST_MOVE,
  REQUEST_UPDATE = sbIDevice::REQUEST_UPDATE, REQUEST_NEW_PLAYLIST = sbIDevice::REQUEST_NEW_PLAYLIST, REQUEST_FORMAT = sbIDevice::REQUEST_FORMAT, REQUEST_SYNC_COMPLETE = sbIDevice::REQUEST_SYNC_COMPLETE
}
 
enum  { REQUESTBATCH_UNKNOWN = 0, REQUESTBATCH_AUDIO = 1, REQUESTBATCH_VIDEO = 2, REQUESTBATCH_IMAGE = 4 }
 
enum  CompatibilityType { COMPAT_UNSUPPORTED, COMPAT_SUPPORTED, COMPAT_NEEDS_TRANSCODING }
 

Public Member Functions

PRBool IsPlaylist () const
 
PRBool IsCountable () const
 
- Public Member Functions inherited from sbRequestItem
 NS_IMETHOD_ (nsrefcnt) AddRef(void)
 
 NS_IMETHOD_ (nsrefcnt) Release(void)
 
PRUint32 GetRequestId () const
 
PRUint32 GetType () const
 
void SetType (PRUint32 aType)
 
PRUint32 GetBatchId () const
 
PRUint32 GetBatchIndex () const
 
void SetBatchIndex (PRInt32 aBatchIndex)
 
PRInt64 GetTimeStamp () const
 
bool GetIsCountable () const
 
bool GetIsProcessed () const
 
void SetIsProcessed (bool aIsProcessed)
 

Static Public Member Functions

static TransferRequestNew (PRUint32 aType, sbIMediaItem *aItem, sbIMediaList *aList, PRUint32 aIndex, PRUint32 aOtherIndex, nsISupports *aData)
 
- Static Public Member Functions inherited from sbRequestItem
static sbRequestItemNew (PRUint32 aType, bool aIsCountable=false)
 

Public Attributes

nsCOMPtr< sbIMediaItemitem
 
nsCOMPtr< sbIMediaListlist
 
nsCOMPtr< nsISupportsdata
 
sbITranscodeProfiletranscodeProfile
 
PRUint32 index
 
PRUint32 otherIndex
 
PRUint32 itemType
 
PRBool contentSrcSet
 
PRBool destinationMediaPresent
 
CompatibilityType destinationCompatibility
 
PRBool transcoded
 
nsCOMPtr< sbITranscodeAlbumArtalbumArt
 
nsCOMPtr< sbITemporaryFileFactorytemporaryFileFactory
 
nsCOMPtr< nsIFile > downloadedFile
 

Static Public Attributes

static const int REQUEST_FLAG_USER = sbIDevice::REQUEST_FLAG_USER
 
static const int REQUEST_FLAG_WRITE = sbIDevice::REQUEST_FLAG_WRITE
 

Protected Member Functions

 TransferRequest ()
 
 ~TransferRequest ()
 
- Protected Member Functions inherited from sbRequestItem
 sbRequestItem ()
 
virtual ~sbRequestItem ()
 
void SetIsCountable (bool aIsCountable)
 

Detailed Description

Definition at line 112 of file sbBaseDevice.h.

Member Enumeration Documentation

anonymous enum
Enumerator
REQUEST_MOUNT 
REQUEST_READ 
REQUEST_EJECT 
REQUEST_SUSPEND 
REQUEST_WRITE 
REQUEST_DELETE 
REQUEST_SYNC 
REQUEST_IMAGESYNC 
REQUEST_WRITE_FILE 
REQUEST_DELETE_FILE 
REQUEST_WIPE 
REQUEST_MOVE 
REQUEST_UPDATE 
REQUEST_NEW_PLAYLIST 
REQUEST_FORMAT 
REQUEST_SYNC_COMPLETE 

Definition at line 124 of file sbBaseDevice.h.

anonymous enum
Enumerator
REQUESTBATCH_UNKNOWN 
REQUESTBATCH_AUDIO 
REQUESTBATCH_VIDEO 
REQUESTBATCH_IMAGE 

Definition at line 148 of file sbBaseDevice.h.

Enumerator
COMPAT_UNSUPPORTED 
COMPAT_SUPPORTED 
COMPAT_NEEDS_TRANSCODING 

Definition at line 175 of file sbBaseDevice.h.

Constructor & Destructor Documentation

sbBaseDevice::TransferRequest::TransferRequest ( )
protected

Definition at line 386 of file sbBaseDevice.cpp.

sbBaseDevice::TransferRequest::~TransferRequest ( )
protected

Definition at line 395 of file sbBaseDevice.cpp.

Member Function Documentation

PRBool sbBaseDevice::TransferRequest::IsCountable ( ) const

Returns PR_TRUE if the request should be counted as part of the batch, otherwise returns PR_FALSE

PRBool sbBaseDevice::TransferRequest::IsPlaylist ( ) const

Returns PR_TRUE if the request is for a playlist and PR_FALSE otherwise The playlist test is determined by checking "list". If list is not set then this is not a playlist request. If list is set AND list is not a sbILibrary then this is a playlist request.

Definition at line 377 of file sbBaseDevice.cpp.

Here is the caller graph for this function:

sbBaseDevice::TransferRequest * sbBaseDevice::TransferRequest::New ( PRUint32  aType,
sbIMediaItem aItem,
sbIMediaList aList,
PRUint32  aIndex,
PRUint32  aOtherIndex,
nsISupports aData 
)
static

Definition at line 323 of file sbBaseDevice.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

nsCOMPtr<sbITranscodeAlbumArt> sbBaseDevice::TransferRequest::albumArt

Definition at line 183 of file sbBaseDevice.h.

PRBool sbBaseDevice::TransferRequest::contentSrcSet

Definition at line 169 of file sbBaseDevice.h.

nsCOMPtr<nsISupports> sbBaseDevice::TransferRequest::data

Definition at line 157 of file sbBaseDevice.h.

CompatibilityType sbBaseDevice::TransferRequest::destinationCompatibility

Definition at line 180 of file sbBaseDevice.h.

PRBool sbBaseDevice::TransferRequest::destinationMediaPresent

Definition at line 171 of file sbBaseDevice.h.

nsCOMPtr<nsIFile> sbBaseDevice::TransferRequest::downloadedFile

Definition at line 190 of file sbBaseDevice.h.

PRUint32 sbBaseDevice::TransferRequest::index

Definition at line 163 of file sbBaseDevice.h.

nsCOMPtr<sbIMediaItem> sbBaseDevice::TransferRequest::item

Definition at line 155 of file sbBaseDevice.h.

PRUint32 sbBaseDevice::TransferRequest::itemType

Definition at line 166 of file sbBaseDevice.h.

nsCOMPtr<sbIMediaList> sbBaseDevice::TransferRequest::list

Definition at line 156 of file sbBaseDevice.h.

PRUint32 sbBaseDevice::TransferRequest::otherIndex

Definition at line 164 of file sbBaseDevice.h.

const int sbBaseDevice::TransferRequest::REQUEST_FLAG_USER = sbIDevice::REQUEST_FLAG_USER
static

Definition at line 120 of file sbBaseDevice.h.

const int sbBaseDevice::TransferRequest::REQUEST_FLAG_WRITE = sbIDevice::REQUEST_FLAG_WRITE
static

Definition at line 121 of file sbBaseDevice.h.

nsCOMPtr<sbITemporaryFileFactory> sbBaseDevice::TransferRequest::temporaryFileFactory

Definition at line 188 of file sbBaseDevice.h.

PRBool sbBaseDevice::TransferRequest::transcoded

Definition at line 181 of file sbBaseDevice.h.

sbITranscodeProfile* sbBaseDevice::TransferRequest::transcodeProfile

Definition at line 158 of file sbBaseDevice.h.


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