public abstract class MissionPackageBaseTask extends android.os.AsyncTask<java.lang.Void,MissionPackageBaseTask.ProgressDialogUpdate,java.lang.Boolean> implements android.content.DialogInterface.OnCancelListener, MissionPackageBuilder.Progress
Modifier and Type | Class and Description |
---|---|
static interface |
MissionPackageBaseTask.Callback
Callback interface for when a task completes
|
static class |
MissionPackageBaseTask.ProgressDialogUpdate
Container with progress update
|
Modifier and Type | Field and Description |
---|---|
protected MissionPackageBaseTask.Callback |
_callback |
protected java.lang.String |
_cancelReason |
protected MissionPackageManifest |
_manifest |
protected android.app.ProgressDialog |
_progressDialog |
protected MissionPackageReceiver |
_receiver |
Constructor and Description |
---|
MissionPackageBaseTask(MissionPackageManifest manifest,
MissionPackageReceiver receiver,
boolean bShowProgress,
MissionPackageBaseTask.Callback callback) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String reason) |
void |
dismissProgressDialog() |
android.content.Context |
getContext() |
MissionPackageManifest |
getManifest() |
MapView |
getMapView() |
abstract java.lang.String |
getProgressDialogMessage() |
void |
onCancel(android.content.DialogInterface arg0) |
protected void |
onCancelled() |
protected void |
onPreExecute() |
protected void |
onProgressUpdate(MissionPackageBaseTask.ProgressDialogUpdate... progress) |
void |
publish(int progress) |
void |
setProgressDialog(android.app.ProgressDialog progressDialog) |
java.lang.String |
toString() |
cancel, doInBackground, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onPostExecute, publishProgress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isCancelled
protected android.app.ProgressDialog _progressDialog
protected final MissionPackageReceiver _receiver
protected MissionPackageManifest _manifest
protected java.lang.String _cancelReason
protected final MissionPackageBaseTask.Callback _callback
public MissionPackageBaseTask(MissionPackageManifest manifest, MissionPackageReceiver receiver, boolean bShowProgress, MissionPackageBaseTask.Callback callback)
public abstract java.lang.String getProgressDialogMessage()
public void setProgressDialog(android.app.ProgressDialog progressDialog)
public MissionPackageManifest getManifest()
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<java.lang.Void,MissionPackageBaseTask.ProgressDialogUpdate,java.lang.Boolean>
protected void onProgressUpdate(MissionPackageBaseTask.ProgressDialogUpdate... progress)
onProgressUpdate
in class android.os.AsyncTask<java.lang.Void,MissionPackageBaseTask.ProgressDialogUpdate,java.lang.Boolean>
protected void onCancelled()
onCancelled
in class android.os.AsyncTask<java.lang.Void,MissionPackageBaseTask.ProgressDialogUpdate,java.lang.Boolean>
public void onCancel(android.content.DialogInterface arg0)
onCancel
in interface android.content.DialogInterface.OnCancelListener
public void publish(int progress)
publish
in interface MissionPackageBuilder.Progress
public void cancel(java.lang.String reason)
cancel
in interface MissionPackageBuilder.Progress
public java.lang.String toString()
toString
in class java.lang.Object
public void dismissProgressDialog()
public android.content.Context getContext()
public MapView getMapView()