org.openmobileis.embedded.util
Class PPCSystemAPI

java.lang.Object
  extended byorg.openmobileis.embedded.util.PPCSystemAPI
All Implemented Interfaces:
ISystemAPI

public class PPCSystemAPI
extends java.lang.Object
implements ISystemAPI

Title: OpenMobileIS project source
Description: Helper class to access native OS specific task that is not correcly done by the JVM.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
static long HKEY_CLASSES_ROOT
           
static long HKEY_CURRENT_USER
           
static long HKEY_LOCAL_MACHINE
           
 
Constructor Summary
PPCSystemAPI()
           
 
Method Summary
 long currentTimeInMillis()
          Get time stamp, same behavior as system.currentTimeMillis in milli Used to fix Creme V3.1 Bug
 int execProgram(java.lang.String path, java.lang.String args)
          Execute a program on mobile.
 int execProgramAndWait(java.lang.String path, java.lang.String args)
          Execute a program on mobile and wait until the program ended
 java.lang.String getSystemUniqueID()
          Return an unique Id identifying the terminal.
 java.lang.Byte readPPCRegistryBin(long hkey, java.lang.String regkey, java.lang.String entity)
           
 long readPPCRegistryLong(long hkey, java.lang.String regkey, java.lang.String entity)
           
 java.lang.String readPPCRegistryMultiString(long hkey, java.lang.String regkey, java.lang.String entity)
           
 java.lang.String readPPCRegistryString(long hkey, java.lang.String regkey, java.lang.String entity)
           
 java.lang.Long readPPCRegistryType(long hkey, java.lang.String regkey, java.lang.String entity)
           
 java.lang.String readPPCRegistryValue(java.lang.String register, java.lang.String regkey, java.lang.String entity)
          Main method to get registry key value Ex : readPPCRegistryValue("HKEY_LOCAL_MACHINE","Time","TimeZoneInformation")
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HKEY_CLASSES_ROOT

public static final long HKEY_CLASSES_ROOT
See Also:
Constant Field Values

HKEY_CURRENT_USER

public static final long HKEY_CURRENT_USER
See Also:
Constant Field Values

HKEY_LOCAL_MACHINE

public static final long HKEY_LOCAL_MACHINE
See Also:
Constant Field Values
Constructor Detail

PPCSystemAPI

public PPCSystemAPI()
Method Detail

execProgramAndWait

public int execProgramAndWait(java.lang.String path,
                              java.lang.String args)
                       throws OpenMISException
Execute a program on mobile and wait until the program ended

Specified by:
execProgramAndWait in interface ISystemAPI
Throws:
OpenMISException

execProgram

public int execProgram(java.lang.String path,
                       java.lang.String args)
                throws OpenMISException
Execute a program on mobile.

Specified by:
execProgram in interface ISystemAPI
Throws:
OpenMISException

getSystemUniqueID

public java.lang.String getSystemUniqueID()
Return an unique Id identifying the terminal.

Specified by:
getSystemUniqueID in interface ISystemAPI
Returns:

readPPCRegistryType

public java.lang.Long readPPCRegistryType(long hkey,
                                          java.lang.String regkey,
                                          java.lang.String entity)

readPPCRegistryMultiString

public java.lang.String readPPCRegistryMultiString(long hkey,
                                                   java.lang.String regkey,
                                                   java.lang.String entity)

readPPCRegistryString

public java.lang.String readPPCRegistryString(long hkey,
                                              java.lang.String regkey,
                                              java.lang.String entity)

readPPCRegistryLong

public long readPPCRegistryLong(long hkey,
                                java.lang.String regkey,
                                java.lang.String entity)

readPPCRegistryBin

public java.lang.Byte readPPCRegistryBin(long hkey,
                                         java.lang.String regkey,
                                         java.lang.String entity)

readPPCRegistryValue

public java.lang.String readPPCRegistryValue(java.lang.String register,
                                             java.lang.String regkey,
                                             java.lang.String entity)
Main method to get registry key value Ex : readPPCRegistryValue("HKEY_LOCAL_MACHINE","Time","TimeZoneInformation")

Specified by:
readPPCRegistryValue in interface ISystemAPI

currentTimeInMillis

public long currentTimeInMillis()
Get time stamp, same behavior as system.currentTimeMillis in milli Used to fix Creme V3.1 Bug

Specified by:
currentTimeInMillis in interface ISystemAPI


Copyright 2006 OpenMobileIS. All Rights Reserved.