Framework Professional Edition Package


com.prosyst.util.pid
Class ProcessUtils

java.lang.Object
  extended by com.prosyst.util.pid.ProcessUtils

public class ProcessUtils
extends java.lang.Object

Author:
ivand, Ivan Kirchev, Ivo Karabashev

Field Summary
static int EApaCommandBackground
          The application is to open the last used document and to run in the background.
static int EApaCommandBackgroundAndWithoutViews
          The application is to run in the background and viewless mode.
static int EApaCommandCreate
          The application is to create the document specified on the command line.
static int EApaCommandOpen
          The application is to open the document specified on the command line.
static int EApaCommandRun
          The application is to run and open the last used document.
static int EApaCommandRunWithoutViews
          The application is to run without views.
static int EApaCommandViewActivate
          Reserved for future use.
protected static int ESWInstallerOcspProcedureMust
           
protected static int ESWInstallerOcspProcedureOff
           
protected static int ESWInstallerOcspProcedureOn
           
protected static int KCRUidSWInstallerSettings
          Sowftware Installer settings TUid
protected static int KSWInstallerAllowUntrusted
          Defines UI level policy that defines SW Installer behaviour when user tries to install untrusted SW.
protected static int KSWInstallerOcspDefaultURL
          Defines the default URL to OCSP server
protected static int KSWInstallerOcspProcedure
          Defines the policy for the online certificate validation procedure - Off = 0 - On = 1 - Must be passed = 2
static int OCSP_POLICY_MUST
          OCSP checking must succeed in order to install the package.
static int OCSP_POLICY_OFF
          OCSP checking is not performed.
static int OCSP_POLICY_ON
          OCSP checking is performed, but a transient problem will not halt the installation process.
 
Constructor Summary
ProcessUtils()
           
 
Method Summary
static boolean allowUntrusted()
          Defines UI level policy of SW Installer behaviour when user tries to install untrusted SW.
static int executeProcess(java.lang.String process, java.lang.String command)
          Executes process by given name or path and command.
static java.lang.String getIMEI()
          Native function to get the IMEI of the phone.
static java.lang.String getIMSI()
          Native function to get the IMSI of the phone.
static int getOCSPPolicy()
          Defines the policy for the online certificate validation procedure - Off = 0 = OCSP_POLICY_OFF - On = 1 = OCSP_POLICY_ON - Must be passed = 2 = OCSP_POLICY_MUST
static java.lang.String getOCSPServerURL()
          Defines the default URL to OCSP server
static long getPid()
          Native function to get ID of current process.
static java.lang.String[] getRemovableDrives()
          Native function to get the removable drives on the phone.
static long getVolumeID(java.lang.String drive)
          Native function to get the Volume unique ID of the phone.
static int startApp(int appUid, java.lang.String documentName)
          Helper for launching Document based apps (through RApaLsSession::StartApp()) with default TApaCommand = EApaCommandOpen.
static int startApp(int appUid, java.lang.String documentName, int command)
          Helper for launching Document based apps (through RApaLsSession::StartApp()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EApaCommandOpen

public static final int EApaCommandOpen
The application is to open the document specified on the command line.

See Also:
Constant Field Values

EApaCommandCreate

public static final int EApaCommandCreate
The application is to create the document specified on the command line.

See Also:
Constant Field Values

EApaCommandRun

public static final int EApaCommandRun
The application is to run and open the last used document.

See Also:
Constant Field Values

EApaCommandBackground

public static final int EApaCommandBackground
The application is to open the last used document and to run in the background.

See Also:
Constant Field Values

EApaCommandViewActivate

public static final int EApaCommandViewActivate
Reserved for future use.

See Also:
Constant Field Values

EApaCommandRunWithoutViews

public static final int EApaCommandRunWithoutViews
The application is to run without views. This should NOT be used for view based applications.

See Also:
Constant Field Values

EApaCommandBackgroundAndWithoutViews

public static final int EApaCommandBackgroundAndWithoutViews
The application is to run in the background and viewless mode.

See Also:
Constant Field Values

KCRUidSWInstallerSettings

protected static final int KCRUidSWInstallerSettings
Sowftware Installer settings TUid

See Also:
Constant Field Values

KSWInstallerOcspProcedure

protected static final int KSWInstallerOcspProcedure
Defines the policy for the online certificate validation procedure - Off = 0 - On = 1 - Must be passed = 2

See Also:
Constant Field Values

ESWInstallerOcspProcedureOff

protected static final int ESWInstallerOcspProcedureOff
See Also:
Constant Field Values

ESWInstallerOcspProcedureOn

protected static final int ESWInstallerOcspProcedureOn
See Also:
Constant Field Values

ESWInstallerOcspProcedureMust

protected static final int ESWInstallerOcspProcedureMust
See Also:
Constant Field Values

KSWInstallerOcspDefaultURL

protected static final int KSWInstallerOcspDefaultURL
Defines the default URL to OCSP server

See Also:
Constant Field Values

KSWInstallerAllowUntrusted

protected static final int KSWInstallerAllowUntrusted
Defines UI level policy that defines SW Installer behaviour when user tries to install untrusted SW. - Allow = 1 (Untrusted SW can be installed) - Not Allow = 0 (Untrusted SW cannot be installed)

See Also:
Constant Field Values

OCSP_POLICY_OFF

public static final int OCSP_POLICY_OFF
OCSP checking is not performed.

See Also:
Constant Field Values

OCSP_POLICY_ON

public static final int OCSP_POLICY_ON
OCSP checking is performed, but a transient problem will not halt the installation process.

See Also:
Constant Field Values

OCSP_POLICY_MUST

public static final int OCSP_POLICY_MUST
OCSP checking must succeed in order to install the package.

See Also:
Constant Field Values
Constructor Detail

ProcessUtils

public ProcessUtils()
Method Detail

getPid

public static long getPid()
Native function to get ID of current process.

Returns:
PID of the current process

getIMEI

public static java.lang.String getIMEI()
Native function to get the IMEI of the phone.

Returns:
IMEI from the phone

getIMSI

public static java.lang.String getIMSI()
Native function to get the IMSI of the phone.

Returns:
IMSI from the phone

getVolumeID

public static long getVolumeID(java.lang.String drive)
Native function to get the Volume unique ID of the phone.

Returns:
volume unique ID from the phone

getRemovableDrives

public static java.lang.String[] getRemovableDrives()
Native function to get the removable drives on the phone.

Returns:
an array of names (E, F, ...) of the removable drives

executeProcess

public static int executeProcess(java.lang.String process,
                                 java.lang.String command)
Executes process by given name or path and command.

Returns:
0 when succeeded or a Symbian wide error code if < 0

startApp

public static int startApp(int appUid,
                           java.lang.String documentName,
                           int command)
Helper for launching Document based apps (through RApaLsSession::StartApp()).

Parameters:
appUid - The unique indentifier (UID3) of an capable executable, which can handle the document in the documentName.
documentName - Document name, which may be interpreted as link or path from the executable.
command - A constant from EApaCommandXXX, default is EApaCommandOpen
Returns:
0 when succeeded or a Symbian wide error code if < 0

startApp

public static int startApp(int appUid,
                           java.lang.String documentName)
Helper for launching Document based apps (through RApaLsSession::StartApp()) with default TApaCommand = EApaCommandOpen.

Parameters:
appUid - The unique indentifier (UID3) of an capable executable, which can handle the document in the documentName.
documentName - Document name, which may be interpreted as link or path from the executable.
Returns:
0 when succeeded or a Symbian wide error code if < 0

getOCSPPolicy

public static int getOCSPPolicy()
Defines the policy for the online certificate validation procedure - Off = 0 = OCSP_POLICY_OFF - On = 1 = OCSP_POLICY_ON - Must be passed = 2 = OCSP_POLICY_MUST


getOCSPServerURL

public static java.lang.String getOCSPServerURL()
Defines the default URL to OCSP server


allowUntrusted

public static boolean allowUntrusted()
Defines UI level policy of SW Installer behaviour when user tries to install untrusted SW. - true (Untrusted SW can be installed) - false (Untrusted SW cannot be installed)


Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved