javamanager/preinstaller/src.s60/silentmidletinstall.h
changeset 48 e0d6e9bd3ca7
parent 21 2a9601315dfc
child 83 26b2b12093af
equal deleted inserted replaced
47:f40128debb5d 48:e0d6e9bd3ca7
     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 S60 preinstaller process
    14 * Description:  OMJ Symbian 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
    22 #include <f32file.h>
    23 #include <f32file.h>
    23 #include <e32base.h>
    24 #include <e32base.h>
    24 #include <javasymbianoslayer.h>
    25 #include <javasymbianoslayer.h>
    25 
    26 
    26 #include "preinstallcommsserver.h"
    27 #include "preinstallcommsserver.h"
    99     // in HBufC.
   100     // in HBufC.
   100     HBufC *ParseAttribute(const HBufC *aJad, const TDesC& aAttributeName);
   101     HBufC *ParseAttribute(const HBufC *aJad, const TDesC& aAttributeName);
   101     // Parses the application version string given in aAppVersionString
   102     // Parses the application version string given in aAppVersionString
   102     //  and returns the corresponding Symbian TAppVersion.
   103     //  and returns the corresponding Symbian TAppVersion.
   103     TAppVersion DesToAppVersion(const HBufC *aAppVersionString);
   104     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);
   104 
   108 
   105 
   109 
   106 private:
   110 private:
   107     // File server handle passed to this AO when it was created.
   111     // File server handle passed to this AO when it was created.
   108     // This object does not own it.
   112     // This object does not own it.
   121     HBufC* iMIDletName;
   125     HBufC* iMIDletName;
   122     // Buffer used for parsing midlet vendor from jad file
   126     // Buffer used for parsing midlet vendor from jad file
   123     HBufC* iMIDletVendor;
   127     HBufC* iMIDletVendor;
   124     // Variable used for parsing midlet version from jad file
   128     // Variable used for parsing midlet version from jad file
   125     TAppVersion iMIDletVersion;
   129     TAppVersion iMIDletVersion;
       
   130     // Buffer used for parsing Uid of the first midlet from jad file
       
   131     HBufC* iMIDletUid;
   126 
   132 
   127     // Drive status info for each non-remote, non-substed drive on device
   133     // Drive status info for each non-remote, non-substed drive on device
   128     TUint iDriveStatuses[KMaxDrives];
   134     TUint iDriveStatuses[KMaxDrives];
   129     // How many applications must be preinstalled
   135     // How many applications must be preinstalled
   130     TInt iNumberOfAppsToInstall;
   136     TInt iNumberOfAppsToInstall;