diff -r 000000000000 -r ba25891c3a9e appinstaller/AppMngr2/Sisx/inc/appmngr2sisxruntime.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/appinstaller/AppMngr2/Sisx/inc/appmngr2sisxruntime.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Native SISX runtime type for AppMngr2 +* +*/ + + +#ifndef C_APPMNGR2SISXRUNTIME_H +#define C_APPMNGR2SISXRUNTIME_H + +#include // CAppMngr2Runtime +#include // RSisRegistrySession + +class MAppMngr2RuntimeObserver; +class CAppMngr2PackageInfo; +class CAppMngr2SisxSwiMonitor; +class CAknIconArray; + +const TInt KAppMngr2SisxUidValue = 0x20016BF6; +const TUid KAppMngr2SisxUid = { KAppMngr2SisxUidValue }; + +// Private folder of installer daemon, contains SIS files for untrusted apps +_LIT( KAppMngr2DaemonPrivateFolder, "\\private\\10202dce\\" ); + + +class CAppMngr2SisxRuntime : public CAppMngr2Runtime + { +public: // constructor and destructor + static CAppMngr2SisxRuntime* NewL( MAppMngr2RuntimeObserver& aObserver ); + ~CAppMngr2SisxRuntime(); + +public: // from CAppMngr2Runtime + void LoadIconsL( CAknIconArray& aIconArray ); + void GetSupportedDataTypesL( CDataTypeArray& aDataTypeArray ); + void GetAdditionalDirsToScanL( RFs& aFsSession, RPointerArray& aDirs ); + void GetInstallationFilesL( RPointerArray& aPackageInfos, + const RPointerArray& aFileList, + RFs& aFsSession, TRequestStatus& aStatus ); + void CancelGetInstallationFiles(); + void GetInstalledAppsL( RPointerArray& aApps, + RFs& aFsSession, TRequestStatus& aStatus ); + void CancelGetInstalledApps(); + +private: // new functions + CAppMngr2SisxRuntime( MAppMngr2RuntimeObserver& aObserver ); + void ConstructL( MAppMngr2RuntimeObserver& aObserver ); + void CreateNewPackageL( const TDesC& aFileName, + RPointerArray& aPackageInfos, RFs& aFs ); + +private: // data + Swi::RSisRegistrySession iSisRegistrySession; + CAppMngr2SisxSwiMonitor* iSwiMonitor; + }; + +#endif // C_APPMNGR2SISXRUNTIME_H +