27 #ifndef SBITUNESIMPORTERJOB_H_
28 #define SBITUNESIMPORTERJOB_H_
30 #include <nsStringAPI.h>
32 #include <nsCOMArray.h>
35 #include <sbIJobProgress.h>
36 #include <sbIJobCancelable.h>
48 NS_DECL_SBIJOBPROGRESS
49 NS_DECL_SBIJOBCANCELABLE
59 return mCancelRequested;
97 typedef nsTArray<nsString> StringArray;
98 typedef nsCOMArray<sbIJobProgressListener> ListenerArray;
107 PRBool mCancelRequested;
111 StringArray mErrorMessages;
115 ListenerArray mListeners;
123 nsString mStatusText;
139 nsresult UpdateProgress();
virtual ~sbiTunesImporterJob()
Generic interface for exposing long running jobs to the UI.
nsresult AddErrorMessage(nsAString const &aErrorMessage)
nsresult SetStatusText(nsAString const &aStatusText)
NS_DECL_ISUPPORTS NS_DECL_SBIJOBPROGRESS static NS_DECL_SBIJOBCANCELABLE sbiTunesImporterJob * New()
nsresult SetStatus(PRUint32 aStatus)
nsresult SetTitleText(nsAString const &aTitleText)
PRBool CancelRequested() const
nsresult SetProgress(PRUint32 aProgress)
nsresult SetTotal(PRUint32 aTotal)