FileDocCategorySizeDatePackage
NamsStorage.javaAPI DocphoneME MR2 API (J2ME)4779Wed May 02 18:00:04 BST 2007com.sun.midp.main

NamsStorage

public class NamsStorage extends Object
A wrapper for NAMS MIDlet API.

Fields Summary
public static final int
NAMS_STORAGE_SIZE
size of the NAMS storage
public static final int
NAMS_STATE_NO
free entry in the storage
public static final int
NAMS_STATE_ACTIVE
midlet state is active
public static final int
NAMS_STATE_PAUSED
midlet state is paused
public static final int
NAMS_STATE_DESTROYED
midlet state is destroyed
public static final int
NAMS_STATE_ERROR
midlet failed to start
public static final int
NAMS_STATE_RESERVED
storage entry is reserved for new (starting) midlet
Constructors Summary
Methods Summary
static native booleangetDisplayChangeRequest(int id)
returns display status change request status of a given midlet (not used now)

param
id the ID of the midlet
return
display status change request

static native booleangetDisplayStatus(int id)
returns display status of a given midlet

param
id the ID of the midlet
return
display status

static native booleangetDisplayStatusTrack(int id)
returns display status change tracking status of a given midlet

param
id the ID of the midlet
return
true if notification shall be sent for display status changes of the given midlet false - otherwise

static native intgetMIDletState(int id)
returns state of a given midlet

param
id the ID of the midlet
return
midlet state

static native booleangetMIDletStateTrack(int id)
returns midlet state change tracking status of a given midlet

param
id the ID of the midlet
return
true if notification shall be sent for midlet state changes of the given midlet false - otherwise

public static native intgetNotifierIsolateId()
returns isolate where NAMS Notifier is running (where to send notification events)

param
midletSuiteStorage MIDletSuiteStorage object
param
inp_installer Installer object
param
inp_url URL of the test suite
return
isolate Id

static native voidsetDisplayChangeRequest(int id, boolean request)
stores display status change request a given midlet in NAMS Storage

param
id the ID of the midlet
param
request new display status change request of the midlet

static native voidsetDisplayStatus(int id, boolean status)
stores display status a given midlet in NAMS Storage

param
id the ID of the midlet
param
status new display status of the midlet

static native voidsetDisplayStatusTrack(int id, boolean track)
stores display status traking a given midlet in NAMS Storage

param
id the ID of the midlet
param
track new display status vhange traning of the midlet

static native voidsetMIDletState(int id, int state)
stores state of a given midlet in NAMS Storage

param
id the ID of the midlet
param
state new state of the midlet

static native voidsetMIDletStateTrack(int id, boolean track)
stores midlet state traking a given midlet in NAMS Storage

param
id the ID of the midlet
param
track new midlet state vhange traning of the midlet