ADTS
Class ADTSWrapper

java.lang.Object
  extended by ADTS.ADTSWrapper

public class ADTSWrapper
extends java.lang.Object

Class that wraps Intel's SDK code to be accessible in the Java platform

Currently supports Windows O.S. only


Field Summary
static int BKNO_AUTHORIZATION_EXPIRED
          The application GUID has reached the expiration date
static int BKNO_AUTHORIZED
          Indicates that the GUID is authorized
static int BKNO_ERR_DATA_TOO_BIG
           
static int BKNO_FAILURE
          Express a general error of the library
static int BKNO_INCOMPATIBLE_VERSION
          The version of the Client Agent is uncompatible
static int BKNO_INVALID_GUID
          Indicates that the GUID for baKno validation is invalid
static int BKNO_NO_APP_BEGIN_EVENT
          The BeginEvent fucntion has not been called
static int BKNO_NOT_AUTHORIZED
          Indicates that the GUID is invalid
static int BKNO_NOT_AVAILABLE
          Indicates the Client Agent is not available
static int BKNO_NOT_INITIALIZED
          The Client Agent has not been initialized
static int BKNO_SUCCESS
          The process completed successfully
static int BKNO_TIME_OUT
          The connection with the Client Agent has timed out
 
Constructor Summary
ADTSWrapper()
           
 
Method Summary
 int BeginEvent()
          Fucntion that begins the recording of the user time
 int CheckAuthorization()
          Function that checks the application's current authorization status
 int Connect(java.lang.String param1, java.lang.String param2, java.lang.String param3, java.lang.String param4, java.lang.String baKnoID)
          Funtion that connects the application to Intel's App Store The four parameters form the complete GUID provided by Intel when an application is submitted.
 void Disconnect()
          Fucntion that disconnects the application
 int EndEvent()
          Fucntion that ends the recording of the user time
 int Upgrade(java.lang.String param1, java.lang.String param2, java.lang.String param3, java.lang.String param4)
          Fucntion that upgrades the application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BKNO_INVALID_GUID

public static final int BKNO_INVALID_GUID
Indicates that the GUID for baKno validation is invalid

See Also:
Constant Field Values

BKNO_FAILURE

public static final int BKNO_FAILURE
Express a general error of the library

See Also:
Constant Field Values

BKNO_SUCCESS

public static final int BKNO_SUCCESS
The process completed successfully

See Also:
Constant Field Values

BKNO_NOT_INITIALIZED

public static final int BKNO_NOT_INITIALIZED
The Client Agent has not been initialized

See Also:
Constant Field Values

BKNO_NOT_AVAILABLE

public static final int BKNO_NOT_AVAILABLE
Indicates the Client Agent is not available

See Also:
Constant Field Values

BKNO_INCOMPATIBLE_VERSION

public static final int BKNO_INCOMPATIBLE_VERSION
The version of the Client Agent is uncompatible

See Also:
Constant Field Values

BKNO_ERR_DATA_TOO_BIG

public static final int BKNO_ERR_DATA_TOO_BIG
See Also:
Constant Field Values

BKNO_AUTHORIZED

public static final int BKNO_AUTHORIZED
Indicates that the GUID is authorized

See Also:
Constant Field Values

BKNO_NOT_AUTHORIZED

public static final int BKNO_NOT_AUTHORIZED
Indicates that the GUID is invalid

See Also:
Constant Field Values

BKNO_AUTHORIZATION_EXPIRED

public static final int BKNO_AUTHORIZATION_EXPIRED
The application GUID has reached the expiration date

See Also:
Constant Field Values

BKNO_NO_APP_BEGIN_EVENT

public static final int BKNO_NO_APP_BEGIN_EVENT
The BeginEvent fucntion has not been called

See Also:
Constant Field Values

BKNO_TIME_OUT

public static final int BKNO_TIME_OUT
The connection with the Client Agent has timed out

See Also:
Constant Field Values
Constructor Detail

ADTSWrapper

public ADTSWrapper()
Method Detail

Connect

public int Connect(java.lang.String param1,
                   java.lang.String param2,
                   java.lang.String param3,
                   java.lang.String param4,
                   java.lang.String baKnoID)

Funtion that connects the application to Intel's App Store

The four parameters form the complete GUID provided by Intel when an application is submitted. They must be provided in Hexadecimal value of size 8 exactly (i.e.:0x12345678).

For example, if Intel's GUID is 12341234-2345-3456-4567-567890123456 . Then the parameters are 0x12341234, 0x23453456, 0x45675678 and 0x90123456

For development purposes, the four parameters in Debug mode are 0x11111111

baKnoID is a GUID provided by baKno to customers and a debug ID is also provided: 11111111-1111-1111-1111-111111111111

Parameters:
param1 -
param2 -
param3 -
param4 -
baKnoID -
Returns:
the number that represent the result of the connection

CheckAuthorization

public int CheckAuthorization()
Function that checks the application's current authorization status

Returns:
the number that represents the authorization status

BeginEvent

public int BeginEvent()
Fucntion that begins the recording of the user time

Returns:

EndEvent

public int EndEvent()
Fucntion that ends the recording of the user time

Returns:

Disconnect

public void Disconnect()
Fucntion that disconnects the application


Upgrade

public int Upgrade(java.lang.String param1,
                   java.lang.String param2,
                   java.lang.String param3,
                   java.lang.String param4)
Fucntion that upgrades the application