javamanager/preinstaller/src.s60/silentmidletinstall.h
branchRCL_3
changeset 83 26b2b12093af
parent 60 6c158198356e
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  OMJ Symbian preinstaller process
    14 * Description:  OMJ S60 preinstaller process
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #ifndef SILENTMIDLETINSTALL_H
    19 #ifndef SILENTMIDLETINSTALL_H
    20 #define SILENTMIDLETINSTALL_H
    20 #define SILENTMIDLETINSTALL_H
    21 
    21 
    22 #include <apgcli.h> // for RApaLsSession
       
    23 #include <f32file.h>
    22 #include <f32file.h>
    24 #include <e32base.h>
    23 #include <e32base.h>
    25 #include <javasymbianoslayer.h>
    24 #include <javasymbianoslayer.h>
    26 
    25 
    27 #include "preinstallcommsserver.h"
    26 #include "preinstallcommsserver.h"
   100     // in HBufC.
    99     // in HBufC.
   101     HBufC *ParseAttribute(const HBufC *aJad, const TDesC& aAttributeName);
   100     HBufC *ParseAttribute(const HBufC *aJad, const TDesC& aAttributeName);
   102     // Parses the application version string given in aAppVersionString
   101     // Parses the application version string given in aAppVersionString
   103     //  and returns the corresponding Symbian TAppVersion.
   102     //  and returns the corresponding Symbian TAppVersion.
   104     TAppVersion DesToAppVersion(const HBufC *aAppVersionString);
   103     TAppVersion DesToAppVersion(const HBufC *aAppVersionString);
   105     // Parses the Uid in iMIDletUid and returns ETrue if there is a native
       
   106     // application with the same Uid installed into the device
       
   107     TBool IsNativeAppPresent(const RApaLsSession& aApaSession);
       
   108 
   104 
   109 
   105 
   110 private:
   106 private:
   111     // File server handle passed to this AO when it was created.
   107     // File server handle passed to this AO when it was created.
   112     // This object does not own it.
   108     // This object does not own it.
   125     HBufC* iMIDletName;
   121     HBufC* iMIDletName;
   126     // Buffer used for parsing midlet vendor from jad file
   122     // Buffer used for parsing midlet vendor from jad file
   127     HBufC* iMIDletVendor;
   123     HBufC* iMIDletVendor;
   128     // Variable used for parsing midlet version from jad file
   124     // Variable used for parsing midlet version from jad file
   129     TAppVersion iMIDletVersion;
   125     TAppVersion iMIDletVersion;
   130     // Buffer used for parsing Uid of the first midlet from jad file
       
   131     HBufC* iMIDletUid;
       
   132 
   126 
   133     // Drive status info for each non-remote, non-substed drive on device
   127     // Drive status info for each non-remote, non-substed drive on device
   134     TUint iDriveStatuses[KMaxDrives];
   128     TUint iDriveStatuses[KMaxDrives];
   135     // How many applications must be preinstalled
   129     // How many applications must be preinstalled
   136     TInt iNumberOfAppsToInstall;
   130     TInt iNumberOfAppsToInstall;