public class DeviceProfileClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
REQUEST_TYPE_GET_PROFILE |
protected static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
boolean |
callbackRecieved(DeviceProfileRequest request,
boolean bSuccess) |
void |
dispose() |
android.content.Context |
getContext() |
static DeviceProfileClient |
getInstance() |
boolean |
getProfile(android.content.Context context,
java.lang.String tool)
Request specified tool profile from all connected servers
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String tool)
Get device profile for 'tool'
Auto import the Mission Package
Also track time last sync'ed to avoid downloading duplicate profiles
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String tool,
long syncSecago,
DeviceProfileCallback callback)
Get device profile for 'tool' with default settings
Auto import the Mission Package
Invoke callback
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String username,
java.lang.String password,
boolean allowAllHostnames,
boolean onEnrollment,
boolean onConnection,
long syncSecago,
DeviceProfileCallback callback)
Get enrollment or connection device profile
Auto import the Mission Package
Invoke callback
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String tool,
java.util.List<java.lang.String> filenames,
java.lang.String outputPath,
java.lang.String ifModifiedSince,
boolean displayNotification,
DeviceProfileCallback callback)
Get files from specified tool profile, if modified since specified time
Invoke callback
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String tool,
java.lang.String filename,
long syncSecago,
boolean autoImportProfile,
java.lang.String outputPath,
DeviceProfileCallback callback)
Get device profile for 'tool'
Invoke callback
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String tool,
java.lang.String filename,
java.lang.String outputPath,
DeviceProfileCallback callback)
Get file from specified tool profile
Invoke callback
|
boolean |
getProfile(android.content.Context context,
java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String tool,
java.lang.String filename,
java.lang.String outputPath,
java.lang.String ifModifiedSince,
boolean displayNotification,
DeviceProfileCallback callback)
Get file from specified tool profile, if modified since specified time
Invoke callback
|
boolean |
hasProfileBeenReceived(java.lang.String tool)
Check if a profile request has been received for the specified tool, since startup
|
void |
setProfileReceived(java.lang.String tool) |
protected static final java.lang.String TAG
public static final int REQUEST_TYPE_GET_PROFILE
public static DeviceProfileClient getInstance()
public android.content.Context getContext()
public void dispose()
public boolean hasProfileBeenReceived(java.lang.String tool)
tool
- the tools namepublic void setProfileReceived(java.lang.String tool)
public boolean callbackRecieved(DeviceProfileRequest request, boolean bSuccess)
public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String username, java.lang.String password, boolean allowAllHostnames, boolean onEnrollment, boolean onConnection, long syncSecago, DeviceProfileCallback callback)
context
- the context to useserver
- the server to connect tousername
- the usernamepassword
- the passwordonEnrollment
- onConnection
- syncSecago
- -1 to get all profile data. Positive value to get profile data published
within this amount of timecallback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String tool, long syncSecago, DeviceProfileCallback callback)
context
- server
- tool
- syncSecago
- -1 to get all profile data. Positive value to get profile data published
within this amount of timecallback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String tool, java.lang.String filename, long syncSecago, boolean autoImportProfile, java.lang.String outputPath, DeviceProfileCallback callback)
context
- server
- username
- password
- tool
- syncSecago
- autoImportProfile
- callback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String tool, java.lang.String filename, java.lang.String outputPath, DeviceProfileCallback callback)
context
- server
- username
- password
- tool
- filename
- callback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String tool, java.util.List<java.lang.String> filenames, java.lang.String outputPath, java.lang.String ifModifiedSince, boolean displayNotification, DeviceProfileCallback callback)
context
- server
- username
- password
- tool
- filenames
- ifModifiedSince
- [optional]callback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String tool, java.lang.String filename, java.lang.String outputPath, java.lang.String ifModifiedSince, boolean displayNotification, DeviceProfileCallback callback)
context
- server
- username
- password
- tool
- filename
- ifModifiedSince
- [optional]callback
- public boolean getProfile(android.content.Context context, java.lang.String server, java.lang.String tool)
context
- server
- tool
- public boolean getProfile(android.content.Context context, java.lang.String tool)
context
- tool
-