26 #ifndef sbDeviceStatus_h
27 #define sbDeviceStatus_h
36 #include <sbIDeviceStatus.h>
91 PRBool aNewBatch = PR_TRUE);
108 PRInt32 aItemType = 0);
129 const nsAString& aStateMessage,
133 PRInt32 aItemType = 0);
137 nsresult rv = mStatus->GetCurrentSubState(&subState);
164 nsCOMPtr<sbIDeviceStatus> mStatus;
166 nsCOMPtr<sbIMediaList> mMediaList;
167 nsCOMPtr<sbIMediaItem> mMediaItem;
200 "sbMSCStatusAutoOperationComplete::isItemOp pass 'none'");
209 "sbDeviceStatusAutoOperationComplete::isItemOp is not current");
220 mResult(NS_ERROR_FAILURE),
230 PRUint32 aBatchCount);
243 PRInt32 aBatchCount);
267 nsRefPtr<TransferRequest> mRequest;
268 PRUint32 mBatchCount;
282 nsresult ExtractDataFromRequest(
284 PRInt32 & aBatchIndex,
285 PRInt32 & aBatchCount,
nsresult UpdateStatus(const nsAString &aOperation, const nsAString &aStateMessage, PRInt32 aItemNum, PRInt32 aItemCount, double aProgress, PRInt32 aItemType=0)
void Transfer(sbDeviceStatusAutoOperationComplete &aDestination)
sbDeviceStatusAutoOperationComplete()
nsresult GetCurrentStatus(sbIDeviceStatus **aCurrentStatus)
SB_AUTO_CLASS2(sbDeviceStatusAutoState, sbDeviceStatusHelper *, PRUint32,(mValue!=nsnull), mValue->ChangeState(mValue2), mValue=nsnull)
nsresult ChangeState(PRUint32 aState)
void OperationStart(Operation aOperationType, PRInt32 aItemNum, PRInt32 aItemCount, PRInt32 aItemType, sbIMediaList *aMediaList=nsnull, sbIMediaItem *aMediaItem=nsnull, PRBool aNewBatch=PR_TRUE)
void OperationComplete(nsresult aResult)
sbDeviceStatusHelper(sbBaseDevice *aDevice)
~sbDeviceStatusAutoOperationComplete()
void SetResult(nsresult aResult)
static bool IsItemOp(sbDeviceStatusHelper::Operation aOperation)
void ItemComplete(nsresult aResult)
const unsigned long STATE_IDLE
void ItemStart(PRInt32 aItemNum, PRInt32 aItemCount, PRInt32 aItemType)
void ItemProgress(double aProgress)
sbBaseDevice::TransferRequest TransferRequest