appinstaller/AppMngr2/Sisx/inc/appmngr2sisxruntime.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:   Native SISX runtime type for AppMngr2
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPMNGR2SISXRUNTIME_H
       
    20 #define C_APPMNGR2SISXRUNTIME_H
       
    21 
       
    22 #include <appmngr2runtime.h>            // CAppMngr2Runtime
       
    23 #include <swi/sisregistrysession.h>     // RSisRegistrySession
       
    24 
       
    25 class MAppMngr2RuntimeObserver;
       
    26 class CAppMngr2PackageInfo;
       
    27 class CAppMngr2SisxSwiMonitor;
       
    28 class CAknIconArray;
       
    29 
       
    30 const TInt KAppMngr2SisxUidValue = 0x20016BF6;
       
    31 const TUid KAppMngr2SisxUid = { KAppMngr2SisxUidValue }; 
       
    32 
       
    33 // Private folder of installer daemon, contains SIS files for untrusted apps
       
    34 _LIT( KAppMngr2DaemonPrivateFolder, "\\private\\10202dce\\" );
       
    35 
       
    36 
       
    37 class CAppMngr2SisxRuntime : public CAppMngr2Runtime
       
    38     {
       
    39 public:     // constructor and destructor
       
    40     static CAppMngr2SisxRuntime* NewL( MAppMngr2RuntimeObserver& aObserver );
       
    41     ~CAppMngr2SisxRuntime();
       
    42 
       
    43 public:     // from CAppMngr2Runtime
       
    44     void LoadIconsL( CAknIconArray& aIconArray );
       
    45     void GetSupportedDataTypesL( CDataTypeArray& aDataTypeArray );
       
    46     void GetAdditionalDirsToScanL( RFs& aFsSession, RPointerArray<HBufC>& aDirs );
       
    47     void GetInstallationFilesL( RPointerArray<CAppMngr2PackageInfo>& aPackageInfos,
       
    48             const RPointerArray<CAppMngr2RecognizedFile>& aFileList,
       
    49             RFs& aFsSession, TRequestStatus& aStatus );
       
    50     void CancelGetInstallationFiles();
       
    51     void GetInstalledAppsL( RPointerArray<CAppMngr2AppInfo>& aApps,
       
    52                 RFs& aFsSession, TRequestStatus& aStatus );
       
    53     void CancelGetInstalledApps();
       
    54 
       
    55 private:    // new functions
       
    56     CAppMngr2SisxRuntime( MAppMngr2RuntimeObserver& aObserver );
       
    57     void ConstructL( MAppMngr2RuntimeObserver& aObserver );
       
    58     void CreateNewPackageL( const TDesC& aFileName,
       
    59             RPointerArray<CAppMngr2PackageInfo>& aPackageInfos, RFs& aFs );
       
    60 
       
    61 private:    // data
       
    62     Swi::RSisRegistrySession iSisRegistrySession;
       
    63     CAppMngr2SisxSwiMonitor* iSwiMonitor;
       
    64     };
       
    65 
       
    66 #endif // C_APPMNGR2SISXRUNTIME_H
       
    67