applicationmanagement/server/inc/AMPreInstallApp.h
changeset 18 7d11f9a6646f
parent 4 75a71fdb4c92
child 21 c707676bf59f
equal deleted inserted replaced
4:75a71fdb4c92 18:7d11f9a6646f
     1 /*
       
     2  * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Implementation of applicationmanagement components
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef AMPREINSTALLAPP_H_
       
    19 #define AMPREINSTALLAPP_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <badesca.h> 
       
    23 #include <f32file.h>
       
    24 #include "ApplicationManagementCommon.h"
       
    25 #include "amstorage.h"
       
    26 
       
    27 
       
    28 _LIT(KPreInstallPath, "\\private\\10202dce\\");
       
    29 
       
    30 namespace NApplicationManagement
       
    31     {
       
    32     
       
    33     class TPreInstalledAppParams
       
    34         {
       
    35 public:
       
    36         TUid iPreInstalledAppUid;
       
    37 #if 1
       
    38        TPreInstalledAppName iPreInstalledAppame;
       
    39        TPreInstalledAppVendorName iPreInstalledAppVendorName;
       
    40        TPreInstalledVersion iVersion;
       
    41        TMimeType iMimeType;
       
    42 #endif
       
    43         //TPreInstalledVersion bufVersion;
       
    44 #if 0
       
    45         HBufC* iPreInstalledAppame;
       
    46         HBufC* iPreInstalledAppVendorName;
       
    47 #endif
       
    48         };
       
    49     
       
    50     class CAMPreInstallApp : public CBase
       
    51         {
       
    52 
       
    53 public:
       
    54         ~CAMPreInstallApp();
       
    55         static CAMPreInstallApp* NewL();
       
    56         static CAMPreInstallApp* NewLC();
       
    57         void ListPreInstalledAppL(const TDesC& installDocPath);
       
    58         void ListPreInstalledAppL();
       
    59         TBool RecognizeL(TDesC& aPathAndName, HBufC* aMimeType);
       
    60         void MakeAllInstallPathsL();
       
    61         void GetPreInstalledAppsL(RPointerArray<TPreInstalledAppParams> &aPreInstalledAppParams);
       
    62 private:
       
    63         CAMPreInstallApp();
       
    64 
       
    65         void ConstructL();
       
    66 
       
    67 private:
       
    68 
       
    69         TFileName iPreInstallPath; // Path where to scan for pre-install files
       
    70 #ifdef RD_MULTIPLE_DRIVE        
       
    71         CDesCArray* iInstallDocPathArray;
       
    72 #else        
       
    73         TFileName iPreInstallDocumentPath; // Path where to scan for pre-install files  
       
    74 #endif // RD_MULTIPLE_DRIVE
       
    75 
       
    76         RFs iFs;
       
    77         CDeliveryComponentStorage *iStorage;
       
    78         RPointerArray<TPreInstalledAppParams> iPreInstalledAppParams;
       
    79         
       
    80         };
       
    81 
       
    82 
       
    83 
       
    84     }
       
    85 
       
    86 #endif /*AMPREINSTALLAPP_H_*/