27 #ifndef __SB_IPD_STATUS_H__
28 #define __SB_IPD_STATUS_H__
53 #include <sbIDeviceStatus.h>
57 #include <nsAutoPtr.h>
58 #include <nsStringAPI.h>
121 PRUint32 aBatchCount);
131 PRInt32 aItemCount = -1);
134 PRInt32 aItemNum = -1,
135 PRInt32 aItemCount = -1);
139 PRInt32 aItemNum = -1,
140 PRInt32 aItemCount = -1);
144 PRInt32 aItemNum = -1,
145 PRInt32 aItemCount = -1);
160 const nsAString& currentOperation,
161 const nsAString& currentStateMessage,
162 PRInt32 currentIndex,
164 double currentProgress);
186 nsCOMPtr<sbIDeviceStatus> mStatus;
187 PRUint32 mOperationType;
188 nsCOMPtr<sbIMediaList> mMediaList;
189 nsCOMPtr<sbIMediaItem> mMediaItem;
223 #endif // __SB_IPD_STATUS_H__
void OperationComplete(nsresult aResult)
Songbird iPod Device Utility Definitions.
void ItemComplete(nsresult aResult)
nsresult GetCurrentStatus(sbIDeviceStatus **aCurrentStatus)
nsresult ChangeStatus(PRUint32 newState)
void ItemStart(PRInt32 aItemNum=-1, PRInt32 aItemCount=-1)
SB_AUTO_CLASS(sbAutoStatusOperationFailure, sbIPDStatus *, mValue, mValue->OperationComplete(NS_ERROR_FAILURE), mValue=nsnull)
sbIPDStatus(sbIPDDevice *aDevice)
static const PRUint32 OPERATION_TYPE_DELETE
nsresult UpdateStatus(PRUint32 forState, const nsAString ¤tOperation, const nsAString ¤tStateMessage, PRInt32 currentIndex, PRInt32 totalCount, double currentProgress)
void ItemProgress(double aProgress)
static const PRUint32 OPERATION_TYPE_MOUNT
SB_AUTO_CLASS2(sbAutoStatusOperationComplete, sbIPDStatus *, nsresult, mValue, mValue->OperationComplete(mValue2), mValue=nsnull)
static const PRUint32 OPERATION_TYPE_WRITE
void OperationStart(PRUint32 aOperationType, sbBaseDevice::TransferRequest *aRequest, PRUint32 aBatchCount)
static const PRUint32 OPERATION_TYPE_NONE