com.beem.project.beem.service
Class LoginAsyncTask

Package class diagram package LoginAsyncTask
java.lang.Object
  extended by android.os.AsyncTask<IXmppFacade,Integer,Boolean>
      extended by com.beem.project.beem.service.LoginAsyncTask

public class LoginAsyncTask
extends AsyncTask<IXmppFacade,Integer,Boolean>

This is an asynchronous task that will launch a connection to the XMPP server.

See Also:
AsyncTask

Nested Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
AsyncTask.Status
 
Field Summary
static int STATE_CONNECTION_RUNNING
          State of a running connection.
static int STATE_LOGIN_FAILED
          State of a connected but failed authentication.
static int STATE_LOGIN_RUNNING
          State of an already connected connection but authentication is running.
static int STATE_LOGIN_SUCCESS
          State of a connected and authenticated succesfully.
 
Constructor Summary
LoginAsyncTask()
          Constructor.
 
Method Summary
protected  Boolean doInBackground(IXmppFacade... params)
           
 String getErrorMessage()
          Get the error Message.
protected  void onCancelled()
          Make sur to call the parent method when overriding this method.
 
Methods inherited from class android.os.AsyncTask
cancel, execute, get, get, getStatus, isCancelled, onPostExecute, onPreExecute, onProgressUpdate, publishProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_CONNECTION_RUNNING

public static final int STATE_CONNECTION_RUNNING
State of a running connection.

See Also:
Constant Field Values

STATE_LOGIN_RUNNING

public static final int STATE_LOGIN_RUNNING
State of an already connected connection but authentication is running.

See Also:
Constant Field Values

STATE_LOGIN_SUCCESS

public static final int STATE_LOGIN_SUCCESS
State of a connected and authenticated succesfully.

See Also:
Constant Field Values

STATE_LOGIN_FAILED

public static final int STATE_LOGIN_FAILED
State of a connected but failed authentication.

See Also:
Constant Field Values
Constructor Detail

LoginAsyncTask

public LoginAsyncTask()
Constructor.

Method Detail

doInBackground

protected Boolean doInBackground(IXmppFacade... params)
Specified by:
doInBackground in class AsyncTask<IXmppFacade,Integer,Boolean>

onCancelled

protected void onCancelled()
Make sur to call the parent method when overriding this method.

Overrides:
onCancelled in class AsyncTask<IXmppFacade,Integer,Boolean>

getErrorMessage

public String getErrorMessage()
Get the error Message.

Returns:
the error message. null if no error


Copyright © 2009 Beem-project.com. All Rights Reserved.