#include <sbMetadataJobItem.h>
Public Member Functions | |
NS_DECL_ISUPPORTS | sbMetadataJobItem (sbMetadataJob::JobType aJobType, sbIMediaItem *aMediaItem, nsStringArray *aRequiredProperties, sbMetadataJob *aOwningJob) |
virtual | ~sbMetadataJobItem () |
nsresult | GetHandler (sbIMetadataHandler **aHandler) |
nsresult | SetHandler (sbIMetadataHandler *aHandler) |
nsresult | GetMediaItem (sbIMediaItem **aMediaItem) |
nsresult | GetOwningJob (sbMetadataJob **aJob) |
nsresult | GetJobType (sbMetadataJob::JobType *aJobType) |
nsresult | GetProcessingStarted (PRBool *aProcessingStarted) |
nsresult | SetProcessingStarted (PRBool aProcessingStarted) |
nsresult | GetProcessed (PRBool *aProcessed) |
nsresult | SetProcessed (PRBool aProcessed) |
nsresult | GetURL (nsACString &aURL) |
nsresult | SetURL (const nsACString &aURL) |
nsresult | GetProperties (sbIMutablePropertyArray **aPropertyArray) |
Protected Attributes | |
sbMetadataJob::JobType | mJobType |
nsCOMPtr< sbIMediaItem > | mMediaItem |
nsCOMPtr< sbIMetadataHandler > | mHandler |
nsRefPtr< sbMetadataJob > | mOwningJob |
nsCString | mURL |
nsStringArray * | mPropertyList |
PRBool | mProcessingStarted |
PRBool | mProcessingComplete |
Data container representing a single task in an sbFileMetdataService request
Held by an sbMetadataJob in a waiting queue, then taken by a job processor which runs the sbIMetadataHandler and then returns the item to the job.
Instances of this class are not to be shared between threads. Ownership should be transfered between objects at various stages of the job lifecycle.
Definition at line 61 of file sbMetadataJobItem.h.
sbMetadataJobItem::sbMetadataJobItem | ( | sbMetadataJob::JobType | aJobType, |
sbIMediaItem * | aMediaItem, | ||
nsStringArray * | aRequiredProperties, | ||
sbMetadataJob * | aOwningJob | ||
) |
Definition at line 56 of file sbMetadataJobItem.cpp.
|
virtual |
Definition at line 72 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::GetHandler | ( | sbIMetadataHandler ** | aHandler | ) |
nsresult sbMetadataJobItem::GetJobType | ( | sbMetadataJob::JobType * | aJobType | ) |
nsresult sbMetadataJobItem::GetMediaItem | ( | sbIMediaItem ** | aMediaItem | ) |
nsresult sbMetadataJobItem::GetOwningJob | ( | sbMetadataJob ** | aJob | ) |
nsresult sbMetadataJobItem::GetProcessed | ( | PRBool * | aProcessed | ) |
Definition at line 130 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::GetProcessingStarted | ( | PRBool * | aProcessingStarted | ) |
Definition at line 117 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::GetProperties | ( | sbIMutablePropertyArray ** | aPropertyArray | ) |
Definition at line 154 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::GetURL | ( | nsACString & | aURL | ) |
nsresult sbMetadataJobItem::SetHandler | ( | sbIMetadataHandler * | aHandler | ) |
Definition at line 88 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::SetProcessed | ( | PRBool | aProcessed | ) |
Definition at line 137 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::SetProcessingStarted | ( | PRBool | aProcessingStarted | ) |
Definition at line 124 of file sbMetadataJobItem.cpp.
nsresult sbMetadataJobItem::SetURL | ( | const nsACString & | aURL | ) |
Definition at line 148 of file sbMetadataJobItem.cpp.
|
protected |
Definition at line 89 of file sbMetadataJobItem.h.
|
protected |
Definition at line 87 of file sbMetadataJobItem.h.
|
protected |
Definition at line 88 of file sbMetadataJobItem.h.
|
protected |
Definition at line 90 of file sbMetadataJobItem.h.
|
protected |
Definition at line 99 of file sbMetadataJobItem.h.
|
protected |
Definition at line 96 of file sbMetadataJobItem.h.
|
protected |
Definition at line 93 of file sbMetadataJobItem.h.
|
protected |
Definition at line 92 of file sbMetadataJobItem.h.