Java 3D Sidebar
 All Classes Namespaces Functions Variables
SidebarConnection.ConnectionResult Class Reference

Result of the connection process. More...

Public Member Functions

boolean isConnected ()
 
String getErrorMessage ()
 
int getErrorCode ()
 

Static Public Attributes

static final int RESULT_OK = 0
 Result code - OK. More...
 
static final int RESULT_FAILED_SERVICE_CONNECTION = 1
 Result code - Failed to create service connection to sidebar service. More...
 
static final int RESULT_FAILED_NAVI_NOT_RUNNING = 2
 Result code - Navigation is not running. More...
 
static final int RESULT_FAILED_INVALID_LICENSE = 3
 Result code - Sidebar license key is not valid. More...
 

Package Functions

 ConnectionResult (int errorCode)
 

Package Attributes

boolean mIsConnected
 
String mErrorMessage = null
 
int mErrorCode
 

Detailed Description

Result of the connection process.

Constructor & Destructor Documentation

ConnectionResult ( int  errorCode)
package

Member Function Documentation

int getErrorCode ( )
Returns
RESULT_OK if connection was successful
non-zero error code otherwise otherwise

References SidebarConnection.ConnectionResult.mErrorCode.

String getErrorMessage ( )
Returns
error message if error occured, null otherwise

References SidebarConnection.ConnectionResult.mErrorMessage.

boolean isConnected ( )
Returns
true if connection to sidebar service was created successfully, false otherwise

References SidebarConnection.ConnectionResult.mIsConnected.

Member Data Documentation

int mErrorCode
package
String mErrorMessage = null
package
boolean mIsConnected
package
final int RESULT_FAILED_INVALID_LICENSE = 3
static

Result code - Sidebar license key is not valid.

final int RESULT_FAILED_NAVI_NOT_RUNNING = 2
static

Result code - Navigation is not running.

final int RESULT_FAILED_SERVICE_CONNECTION = 1
static

Result code - Failed to create service connection to sidebar service.

Referenced by SidebarConnection.connect().

final int RESULT_OK = 0
static

Result code - OK.