# HG changeset patch # User hgs # Date 1287575576 -10800 # Node ID 9dcba1ee99f7e2bcbf5cfb78a6647f931b13764e # Parent d1838696558c6a24ac83672e88f541dfc689bac6 201041 diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/appmngr2runtimeapi.metaxml --- a/appinstall_plat/appmngr2runtimeapi/appmngr2runtimeapi.metaxml Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - -AppMngr2 Runtime Plugin API -Application Manager uses plug-ins for run-time specific services, such as installing and uninstalling. Runtime Plugin implements these services for particular run-time type, like SISX, Java or Widget. AppMngr2 Runtime Plugin API is ECOM interface that defines Application Manager run-time plug-ins. -c++ -AppMngr2 - - - - -no -no - - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/bwins/appmngr2pluginapiu.def --- a/appinstall_plat/appmngr2runtimeapi/bwins/appmngr2pluginapiu.def Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -EXPORTS - ??0CAppMngr2AppInfo@@IAE@AAVCAppMngr2Runtime@@AAVRFs@@@Z @ 1 NONAME ; CAppMngr2AppInfo::CAppMngr2AppInfo(class CAppMngr2Runtime &, class RFs &) - ??0CAppMngr2InfoIterator@@QAE@AAVCAppMngr2InfoBase@@W4TAppMngr2InfoType@@@Z @ 2 NONAME ; CAppMngr2InfoIterator::CAppMngr2InfoIterator(class CAppMngr2InfoBase &, enum TAppMngr2InfoType) - ??0CAppMngr2PackageInfo@@IAE@AAVCAppMngr2Runtime@@AAVRFs@@@Z @ 3 NONAME ; CAppMngr2PackageInfo::CAppMngr2PackageInfo(class CAppMngr2Runtime &, class RFs &) - ??0CAppMngr2Runtime@@IAE@AAVMAppMngr2RuntimeObserver@@@Z @ 4 NONAME ; CAppMngr2Runtime::CAppMngr2Runtime(class MAppMngr2RuntimeObserver &) - ??1CAppMngr2AppInfo@@UAE@XZ @ 5 NONAME ; CAppMngr2AppInfo::~CAppMngr2AppInfo(void) - ??1CAppMngr2InfoIterator@@UAE@XZ @ 6 NONAME ; CAppMngr2InfoIterator::~CAppMngr2InfoIterator(void) - ??1CAppMngr2PackageInfo@@UAE@XZ @ 7 NONAME ; CAppMngr2PackageInfo::~CAppMngr2PackageInfo(void) - ??1CAppMngr2RecognizedFile@@UAE@XZ @ 8 NONAME ; CAppMngr2RecognizedFile::~CAppMngr2RecognizedFile(void) - ??1CAppMngr2Runtime@@UAE@XZ @ 9 NONAME ; CAppMngr2Runtime::~CAppMngr2Runtime(void) - ?AddNearestResourceFileL@CAppMngr2Runtime@@QAEHABVTDesC16@@@Z @ 10 NONAME ; int CAppMngr2Runtime::AddNearestResourceFileL(class TDesC16 const &) - ?BaseConstructL@CAppMngr2InfoIterator@@QAEXXZ @ 11 NONAME ; void CAppMngr2InfoIterator::BaseConstructL(void) - ?ConstructL@CAppMngr2AppInfo@@QAEXXZ @ 12 NONAME ; void CAppMngr2AppInfo::ConstructL(void) - ?ConstructL@CAppMngr2PackageInfo@@QAEXXZ @ 13 NONAME ; void CAppMngr2PackageInfo::ConstructL(void) - ?DataType@CAppMngr2RecognizedFile@@QAEABVTDataType@@XZ @ 14 NONAME ; class TDataType const & CAppMngr2RecognizedFile::DataType(void) - ?EikonEnv@CAppMngr2Runtime@@QAEAAVCEikonEnv@@XZ @ 15 NONAME ; class CEikonEnv & CAppMngr2Runtime::EikonEnv(void) - ?FileName@CAppMngr2RecognizedFile@@QAEABVTDesC16@@XZ @ 16 NONAME ; class TDesC16 const & CAppMngr2RecognizedFile::FileName(void) - ?FullBitmapFileNameLC@CAppMngr2Runtime@@QAEPAVHBufC16@@ABVTDesC16@@@Z @ 17 NONAME ; class HBufC16 * CAppMngr2Runtime::FullBitmapFileNameLC(class TDesC16 const &) - ?FullBitmapFileNameLC@TAppMngr2DriveUtils@@SAPAVHBufC16@@ABVTDesC16@@AAVRFs@@@Z @ 18 NONAME ; class HBufC16 * TAppMngr2DriveUtils::FullBitmapFileNameLC(class TDesC16 const &, class RFs &) - ?GetAdditionalDirsToScanL@CAppMngr2Runtime@@UAEXAAVRFs@@AAV?$RPointerArray@VHBufC16@@@@@Z @ 19 NONAME ; void CAppMngr2Runtime::GetAdditionalDirsToScanL(class RFs &, class RPointerArray &) - ?GetMenuItemsL@CAppMngr2InfoBase@@UAEXAAV?$RPointerArray@USData@CEikMenuPaneItem@@@@@Z @ 20 NONAME ; void CAppMngr2InfoBase::GetMenuItemsL(class RPointerArray &) - ?GetMiddleSoftkeyCommandL@CAppMngr2InfoBase@@UAEXAAH0@Z @ 21 NONAME ; void CAppMngr2InfoBase::GetMiddleSoftkeyCommandL(int &, int &) - ?HasNext@CAppMngr2InfoIterator@@UBEHXZ @ 22 NONAME ; int CAppMngr2InfoIterator::HasNext(void) const - ?IndicatorIconIndex@CAppMngr2InfoBase@@UBEHXZ @ 23 NONAME ; int CAppMngr2InfoBase::IndicatorIconIndex(void) const - ?IsDRMForwardable@TAppMngr2DRMUtils@@SAHABVTDesC16@@@Z @ 24 NONAME ; int TAppMngr2DRMUtils::IsDRMForwardable(class TDesC16 const &) - ?IsDRMProtected@TAppMngr2DRMUtils@@SAHABVTDesC16@@@Z @ 25 NONAME ; int TAppMngr2DRMUtils::IsDRMProtected(class TDesC16 const &) - ?IsDRMRightsObjectExpiredOrMissingL@TAppMngr2DRMUtils@@SAHABVTDesC16@@@Z @ 26 NONAME ; int TAppMngr2DRMUtils::IsDRMRightsObjectExpiredOrMissingL(class TDesC16 const &) - ?IsDRMRightsObjectMissingL@TAppMngr2DRMUtils@@SAHABVTDesC16@@@Z @ 27 NONAME ; int TAppMngr2DRMUtils::IsDRMRightsObjectMissingL(class TDesC16 const &) - ?IsShowOnTop@CAppMngr2InfoBase@@QBEHXZ @ 28 NONAME ; int CAppMngr2InfoBase::IsShowOnTop(void) const - ?Location@CAppMngr2InfoBase@@QBE?AW4TAppMngr2Location@@XZ @ 29 NONAME ; enum TAppMngr2Location CAppMngr2InfoBase::Location(void) const - ?LocationDrive@CAppMngr2InfoBase@@QBE?AVTDriveUnit@@XZ @ 30 NONAME ; class TDriveUnit CAppMngr2InfoBase::LocationDrive(void) const - ?LocationFromDriveL@TAppMngr2DriveUtils@@SA?AW4TAppMngr2Location@@HAAVRFs@@@Z @ 31 NONAME ; enum TAppMngr2Location TAppMngr2DriveUtils::LocationFromDriveL(int, class RFs &) - ?LocationFromFileNameL@TAppMngr2DriveUtils@@SA?AW4TAppMngr2Location@@ABVTDesC16@@AAVRFs@@@Z @ 32 NONAME ; enum TAppMngr2Location TAppMngr2DriveUtils::LocationFromFileNameL(class TDesC16 const &, class RFs &) - ?NearestResourceFileLC@TAppMngr2DriveUtils@@SAPAV?$TBuf@$0BAA@@@ABVTDesC16@@AAVRFs@@@Z @ 33 NONAME ; class TBuf<256> * TAppMngr2DriveUtils::NearestResourceFileLC(class TDesC16 const &, class RFs &) - ?NewL@CAppMngr2RecognizedFile@@SAPAV1@ABVTDesC16@@ABVTDataType@@@Z @ 34 NONAME ; class CAppMngr2RecognizedFile * CAppMngr2RecognizedFile::NewL(class TDesC16 const &, class TDataType const &) - ?NewL@CAppMngr2RecognizedFile@@SAPAV1@PAVHBufC16@@0@Z @ 35 NONAME ; class CAppMngr2RecognizedFile * CAppMngr2RecognizedFile::NewL(class HBufC16 *, class HBufC16 *) - ?NewL@CAppMngr2Runtime@@SAPAV1@VTUid@@AAVMAppMngr2RuntimeObserver@@@Z @ 36 NONAME ; class CAppMngr2Runtime * CAppMngr2Runtime::NewL(class TUid, class MAppMngr2RuntimeObserver &) - ?Next@CAppMngr2InfoIterator@@UAEXAAVTPtrC16@@0@Z @ 37 NONAME ; void CAppMngr2InfoIterator::Next(class TPtrC16 &, class TPtrC16 &) - ?Observer@CAppMngr2Runtime@@QAEAAVMAppMngr2RuntimeObserver@@XZ @ 38 NONAME ; class MAppMngr2RuntimeObserver & CAppMngr2Runtime::Observer(void) - ?ReadMenuItemDataFromResourceL@CAppMngr2InfoBase@@QAEXHAAUSData@CEikMenuPaneItem@@@Z @ 39 NONAME ; void CAppMngr2InfoBase::ReadMenuItemDataFromResourceL(int, struct CEikMenuPaneItem::SData &) - ?Reset@CAppMngr2InfoIterator@@UAEXXZ @ 40 NONAME ; void CAppMngr2InfoIterator::Reset(void) - ?Runtime@CAppMngr2InfoBase@@QBEAAVCAppMngr2Runtime@@XZ @ 41 NONAME ; class CAppMngr2Runtime & CAppMngr2InfoBase::Runtime(void) const - ?RuntimeUid@CAppMngr2Runtime@@QBE?BVTUid@@XZ @ 42 NONAME ; class TUid const CAppMngr2Runtime::RuntimeUid(void) const - ?SetAllFieldsL@CAppMngr2InfoIterator@@MAEXXZ @ 43 NONAME ; void CAppMngr2InfoIterator::SetAllFieldsL(void) - ?SetFieldL@CAppMngr2InfoIterator@@IAEXHABVTDesC16@@@Z @ 44 NONAME ; void CAppMngr2InfoIterator::SetFieldL(int, class TDesC16 const &) - ?SetLocationL@CAppMngr2InfoIterator@@MAEXXZ @ 45 NONAME ; void CAppMngr2InfoIterator::SetLocationL(void) - ?SetOtherFieldsL@CAppMngr2InfoIterator@@MAEXXZ @ 46 NONAME ; void CAppMngr2InfoIterator::SetOtherFieldsL(void) - ?SetStatusL@CAppMngr2InfoIterator@@MAEXXZ @ 47 NONAME ; void CAppMngr2InfoIterator::SetStatusL(void) - ?ShowDeleteConfirmationQueryL@CAppMngr2PackageInfo@@IAEHXZ @ 48 NONAME ; int CAppMngr2PackageInfo::ShowDeleteConfirmationQueryL(void) - ?SizeStringWithUnitsL@CAppMngr2InfoBase@@QAEPAVHBufC16@@_J@Z @ 49 NONAME ; class HBufC16 * CAppMngr2InfoBase::SizeStringWithUnitsL(long long) - ?SpecificIconL@CAppMngr2InfoBase@@UBEPAVCGulIcon@@XZ @ 50 NONAME ; class CGulIcon * CAppMngr2InfoBase::SpecificIconL(void) const - ?SpecificIndicatorIconL@CAppMngr2InfoBase@@UBEPAVCGulIcon@@XZ @ 51 NONAME ; class CGulIcon * CAppMngr2InfoBase::SpecificIndicatorIconL(void) const - ?SupportsGenericCommand@CAppMngr2InfoBase@@UAEHH@Z @ 52 NONAME ; int CAppMngr2InfoBase::SupportsGenericCommand(int) - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/eabi/appmngr2pluginapiu.def --- a/appinstall_plat/appmngr2runtimeapi/eabi/appmngr2pluginapiu.def Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -EXPORTS - _ZN16CAppMngr2AppInfo10ConstructLEv @ 1 NONAME - _ZN16CAppMngr2AppInfoC2ER16CAppMngr2RuntimeR3RFs @ 2 NONAME - _ZN16CAppMngr2AppInfoD0Ev @ 3 NONAME - _ZN16CAppMngr2AppInfoD1Ev @ 4 NONAME - _ZN16CAppMngr2AppInfoD2Ev @ 5 NONAME - _ZN16CAppMngr2Runtime20FullBitmapFileNameLCERK7TDesC16 @ 6 NONAME - _ZN16CAppMngr2Runtime23AddNearestResourceFileLERK7TDesC16 @ 7 NONAME - _ZN16CAppMngr2Runtime24GetAdditionalDirsToScanLER3RFsR13RPointerArrayI7HBufC16E @ 8 NONAME - _ZN16CAppMngr2Runtime4NewLE4TUidR24MAppMngr2RuntimeObserver @ 9 NONAME - _ZN16CAppMngr2Runtime8EikonEnvEv @ 10 NONAME - _ZN16CAppMngr2Runtime8ObserverEv @ 11 NONAME - _ZN16CAppMngr2RuntimeC2ER24MAppMngr2RuntimeObserver @ 12 NONAME - _ZN16CAppMngr2RuntimeD0Ev @ 13 NONAME - _ZN16CAppMngr2RuntimeD1Ev @ 14 NONAME - _ZN16CAppMngr2RuntimeD2Ev @ 15 NONAME - _ZN17CAppMngr2InfoBase13GetMenuItemsLER13RPointerArrayIN16CEikMenuPaneItem5SDataEE @ 16 NONAME - _ZN17CAppMngr2InfoBase20SizeStringWithUnitsLEx @ 17 NONAME - _ZN17CAppMngr2InfoBase22SupportsGenericCommandEi @ 18 NONAME - _ZN17CAppMngr2InfoBase24GetMiddleSoftkeyCommandLERiS0_ @ 19 NONAME - _ZN17CAppMngr2InfoBase29ReadMenuItemDataFromResourceLEiRN16CEikMenuPaneItem5SDataE @ 20 NONAME - _ZN17TAppMngr2DRMUtils14IsDRMProtectedERK7TDesC16 @ 21 NONAME - _ZN17TAppMngr2DRMUtils16IsDRMForwardableERK7TDesC16 @ 22 NONAME - _ZN17TAppMngr2DRMUtils25IsDRMRightsObjectMissingLERK7TDesC16 @ 23 NONAME - _ZN17TAppMngr2DRMUtils34IsDRMRightsObjectExpiredOrMissingLERK7TDesC16 @ 24 NONAME - _ZN19TAppMngr2DriveUtils18LocationFromDriveLEiR3RFs @ 25 NONAME - _ZN19TAppMngr2DriveUtils20FullBitmapFileNameLCERK7TDesC16R3RFs @ 26 NONAME - _ZN19TAppMngr2DriveUtils21LocationFromFileNameLERK7TDesC16R3RFs @ 27 NONAME - _ZN19TAppMngr2DriveUtils21NearestResourceFileLCERK7TDesC16R3RFs @ 28 NONAME - _ZN20CAppMngr2PackageInfo10ConstructLEv @ 29 NONAME - _ZN20CAppMngr2PackageInfo28ShowDeleteConfirmationQueryLEv @ 30 NONAME - _ZN20CAppMngr2PackageInfoC2ER16CAppMngr2RuntimeR3RFs @ 31 NONAME - _ZN20CAppMngr2PackageInfoD0Ev @ 32 NONAME - _ZN20CAppMngr2PackageInfoD1Ev @ 33 NONAME - _ZN20CAppMngr2PackageInfoD2Ev @ 34 NONAME - _ZN21CAppMngr2InfoIterator10SetStatusLEv @ 35 NONAME - _ZN21CAppMngr2InfoIterator12SetLocationLEv @ 36 NONAME - _ZN21CAppMngr2InfoIterator13SetAllFieldsLEv @ 37 NONAME - _ZN21CAppMngr2InfoIterator14BaseConstructLEv @ 38 NONAME - _ZN21CAppMngr2InfoIterator15SetOtherFieldsLEv @ 39 NONAME - _ZN21CAppMngr2InfoIterator4NextER7TPtrC16S1_ @ 40 NONAME - _ZN21CAppMngr2InfoIterator5ResetEv @ 41 NONAME - _ZN21CAppMngr2InfoIterator9SetFieldLEiRK7TDesC16 @ 42 NONAME - _ZN21CAppMngr2InfoIteratorC1ER17CAppMngr2InfoBase17TAppMngr2InfoType @ 43 NONAME - _ZN21CAppMngr2InfoIteratorC2ER17CAppMngr2InfoBase17TAppMngr2InfoType @ 44 NONAME - _ZN21CAppMngr2InfoIteratorD0Ev @ 45 NONAME - _ZN21CAppMngr2InfoIteratorD1Ev @ 46 NONAME - _ZN21CAppMngr2InfoIteratorD2Ev @ 47 NONAME - _ZN23CAppMngr2RecognizedFile4NewLEP7HBufC16S1_ @ 48 NONAME - _ZN23CAppMngr2RecognizedFile4NewLERK7TDesC16RK9TDataType @ 49 NONAME - _ZN23CAppMngr2RecognizedFile8DataTypeEv @ 50 NONAME - _ZN23CAppMngr2RecognizedFile8FileNameEv @ 51 NONAME - _ZN23CAppMngr2RecognizedFileD0Ev @ 52 NONAME - _ZN23CAppMngr2RecognizedFileD1Ev @ 53 NONAME - _ZN23CAppMngr2RecognizedFileD2Ev @ 54 NONAME - _ZNK16CAppMngr2Runtime10RuntimeUidEv @ 55 NONAME - _ZNK17CAppMngr2InfoBase11IsShowOnTopEv @ 56 NONAME - _ZNK17CAppMngr2InfoBase13LocationDriveEv @ 57 NONAME - _ZNK17CAppMngr2InfoBase13SpecificIconLEv @ 58 NONAME - _ZNK17CAppMngr2InfoBase18IndicatorIconIndexEv @ 59 NONAME - _ZNK17CAppMngr2InfoBase22SpecificIndicatorIconLEv @ 60 NONAME - _ZNK17CAppMngr2InfoBase7RuntimeEv @ 61 NONAME - _ZNK17CAppMngr2InfoBase8LocationEv @ 62 NONAME - _ZNK21CAppMngr2InfoIterator7HasNextEv @ 63 NONAME - _ZTI16CAppMngr2AppInfo @ 64 NONAME ; ## - _ZTI16CAppMngr2Runtime @ 65 NONAME ; ## - _ZTI17CAppMngr2InfoBase @ 66 NONAME ; ## - _ZTI20CAppMngr2PackageInfo @ 67 NONAME ; ## - _ZTI21CAppMngr2InfoIterator @ 68 NONAME ; ## - _ZTI23CAppMngr2RecognizedFile @ 69 NONAME ; ## - _ZTV16CAppMngr2AppInfo @ 70 NONAME ; ## - _ZTV16CAppMngr2Runtime @ 71 NONAME ; ## - _ZTV17CAppMngr2InfoBase @ 72 NONAME ; ## - _ZTV20CAppMngr2PackageInfo @ 73 NONAME ; ## - _ZTV21CAppMngr2InfoIterator @ 74 NONAME ; ## - _ZTV23CAppMngr2RecognizedFile @ 75 NONAME ; ## - _ZThn4_N21CAppMngr2InfoIterator4NextER7TPtrC16S1_ @ 76 NONAME ; ## - _ZThn4_N21CAppMngr2InfoIterator5ResetEv @ 77 NONAME ; ## - _ZThn4_NK21CAppMngr2InfoIterator7HasNextEv @ 78 NONAME ; ## - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/group/appmngr2pluginapi.mmp --- a/appinstall_plat/appmngr2runtimeapi/group/appmngr2pluginapi.mmp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -/* -* 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: Runtime plugin API -* -*/ - - -#include -#include - -TARGET appmngr2pluginapi.dll -TARGETTYPE DLL -UID 0x1000008d 0x20016BF3 - -CAPABILITY CAP_GENERAL_DLL -VENDORID VID_DEFAULT - -SOURCEPATH ../src -SOURCE appmngr2runtime.cpp -SOURCE appmngr2infobase.cpp -SOURCE appmngr2appinfo.cpp -SOURCE appmngr2packageinfo.cpp -SOURCE appmngr2driveutils.cpp -SOURCE appmngr2drmutils.cpp -SOURCE appmngr2infoiterator.cpp -SOURCE appmngr2recognizedfile.cpp - -USERINCLUDE ../inc - -MW_LAYER_SYSTEMINCLUDE - -LIBRARY euser.lib // Base -LIBRARY ecom.lib // ECom -LIBRARY commonengine.lib // StringLoader -LIBRARY avkon.lib // AknTextUtils -LIBRARY cone.lib // CCoeEnv -LIBRARY eikcore.lib // CEikonEnv -LIBRARY bafl.lib // TResourceReader, BaflUtils -LIBRARY efsrv.lib // TParse -LIBRARY caf.lib // ContentAccess::CContent -LIBRARY drmhelper.lib // CDRMHelper -LIBRARY platformenv.lib // DriveInfo -LIBRARY apmime.lib // TDataType - -DEBUGLIBRARY flogger.lib // RFileLogger - -SMPSAFE - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/group/bld.inf --- a/appinstall_plat/appmngr2runtimeapi/group/bld.inf Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -/* -* Copyright (c) 2008 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: Build information file for AppMngr2 Runtime Plugin API -* -*/ - - -#include - -PRJ_PLATFORMS -DEFAULT - -PRJ_EXPORTS -../inc/appmngr2appinfo.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2appinfo.h ) -../inc/appmngr2cleanuputils.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2cleanuputils.h ) -../inc/appmngr2cleanuputils.inl MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2cleanuputils.inl ) -../inc/appmngr2driveutils.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2driveutils.h ) -../inc/appmngr2drmutils.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2drmutils.h ) -../inc/appmngr2common.hrh MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2common.hrh ) -../inc/appmngr2infobase.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2infobase.h ) -../inc/appmngr2infoiterator.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2infoiterator.h ) -../inc/appmngr2packageinfo.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2packageinfo.h ) -../inc/appmngr2runtime.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2runtime.h ) -../inc/appmngr2runtimeobserver.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2runtimeobserver.h ) -../inc/appmngr2recognizedfile.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2recognizedfile.h ) -../inc/appmngr2debugconfig.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2debugconfig.h ) -../inc/appmngr2debugutils.h MW_LAYER_PLATFORM_EXPORT_PATH( appmngr2debugutils.h ) - -// export iby files -../rom/appmngr2runtime.iby CORE_MW_LAYER_IBY_EXPORT_PATH( appmngr2runtime.iby ) - -PRJ_MMPFILES -appmngr2pluginapi.mmp - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2appinfo.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2appinfo.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2008 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: AppInfo represents installed application -* -*/ - - -#ifndef C_APPMNGR2APPINFO_H -#define C_APPMNGR2APPINFO_H - -#include "appmngr2infobase.h" // CAppMngr2InfoBase - -/** - * CAppMngr2AppInfo represents installed application. - * - * Runtime plug-in must define it's own CAppMngr2AppInfo derived class - * to provide the actual functionality for abstract functions defined in - * CAppMngr2InfoBase class. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2AppInfo : public CAppMngr2InfoBase - { -public: // constructor and destructor - IMPORT_C void ConstructL(); - IMPORT_C ~CAppMngr2AppInfo(); - -protected: // new functions - /** - * Exported protected constructor for derived classes - */ - IMPORT_C CAppMngr2AppInfo( CAppMngr2Runtime& aRuntime, RFs& aFsSession ); - }; - -#endif // C_APPMNGR2APPINFO_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2cleanuputils.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2cleanuputils.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility definitions to push pointer arrays in cleanup stack -* -*/ - - -#ifndef C_APPMNGR2CLEANUPUTILS_H -#define C_APPMNGR2CLEANUPUTILS_H - -template -class CleanupResetAndDestroy - { -public: - inline static void PushL( T& aRef ); -private: - static void ResetAndDestroy( TAny *aPtr ); - }; - -template -inline void CleanupResetAndDestroyPushL( T& aRef ); - -#include "appmngr2cleanuputils.inl" - -#endif // C_APPMNGR2CLEANUPUTILS_H diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2cleanuputils.inl --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2cleanuputils.inl Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility definitions to push pointer arrays in cleanup stack -* -*/ - - -template -inline void CleanupResetAndDestroy::PushL( T& aRef ) - { - CleanupStack::PushL( TCleanupItem( &ResetAndDestroy, &aRef ) ); - } - -template -void CleanupResetAndDestroy::ResetAndDestroy( TAny *aPtr ) - { - if( aPtr ) - { - static_cast( aPtr )->ResetAndDestroy(); - } - } - -template -inline void CleanupResetAndDestroyPushL( T& aRef ) - { - CleanupResetAndDestroy::PushL( aRef ); - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2common.hrh --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2common.hrh Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -/* -* Copyright (c) 2008 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: Common resource ids for AppMngr2 runtime plug-ins -* -*/ - - -#ifndef APPMNGR2COMMON_HRH -#define APPMNGR2COMMON_HRH - -enum TAppMngr2GenericCommand - { - EAppMngr2CmdNone, - EAppMngr2CmdViewDetails, - EAppMngr2CmdUninstall, - EAppMngr2CmdInstall, - EAppMngr2PlaceForPluginSpecificCmds, - EAppMngr2CmdRemove, - EAppMngr2CmdLog, - EAppMngr2ReservedForOtherGenericCommands - }; - -#define KAppMngr2FirstFreePluginSpecificCmd 30 - -enum TAppMngr2IconIndex - { - // Range 0 ... 0x2FFF reserved for runtime plug-in icon indexes - - // Specific icons flag - EAppMngr2UseSpecificIcon = 0x3000, // use item specific icons - - // Default icon indexes - EAppMngr2NoIndicatorIcon, // no indicator icon, item in phone memory - EAppMngr2IconQgnIndiAmInstMmcAdd, // item in memory card indicator icon - EAppMngr2IconQgnIndiFmgrMsAdd, // item in mass storage indicator icon - EAppMngr2ReservedForOtherDefaultIcons - }; - - -// AppMngr2 UID value -#define KAppMngr2AppUidValue 0x101F8512 - -// AppMngr2 View ID values -#define KAppMngr2InstalledViewIdValue 2 -#define KAppMngr2PackagesViewIdValue 5 - - -#endif // APPMNGR2COMMON_HRH - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2debugconfig.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2debugconfig.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,147 +0,0 @@ -/* -* 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: Defines trace macros -* -*/ - - -#ifndef APPMNGR2DEBUGCONFIG_H -#define APPMNGR2DEBUGCONFIG_H - -#ifdef _DEBUG - - -/* --------------------------------------------------------------------------- - * Enable/disable traces - * --------------------------------------------------------------------------- - * Uncomment one of the following macros to enable tracing: - */ -//#define PRINT_FLOG_TO_RDEBUG -//#define PRINT_FLOG_TO_UTRACE -//#define PRINT_FLOG_TO_FLOGGER -/* - * Select the trace type by uncommenting FLOG_DEBUG_TRACES or - * FLOG_PERFORMANCE_TRACES (or both) below. - * - * Note that also SYMBIAN_TRACE_ENABLE must be defined in order - * to use PRINT_FLOG_TO_UTRACE. - */ - - -/* --------------------------------------------------------------------------- - * Debug traces - * --------------------------------------------------------------------------- - * Uncomment the following line to enable debug traces: - */ -//#define FLOG_DEBUG_TRACES -/* - * Debug traces are generated using FLOG macro. FLOG takes a format - * string and variable number of arguments, like TDes::Format(). Except - * that format string "x" is replaced with string literal _L("x"), so - * string literal _L() should not be used when calling FLOG. - * - * Examples: - * FLOG( "CAppMngr2AppUi::ConstructL" ); - * FLOG( "CAppMngr2AppUi::HandleCommandL( %d )", aCommand ); - * FLOG( "Scanning %d: %S", iIndex, &iDirName ) ); - */ - - -/* --------------------------------------------------------------------------- - * Performance traces - * --------------------------------------------------------------------------- - * Uncomment the following line to enable performance traces: - */ -//#define FLOG_PERFORMANCE_TRACES -/* - * Performance traces measure and print times that different - * code fragments take (in milliseconds). Please note that - * printing traces is usually slow and this may affect to the - * results if debug or other performance traces are printed - * out from the timed functions. - * - * There are two sets of performance tracing macros: static and - * dynamic. Parameter is used to match corresponding macros and - * it is also printed in trace output. Macros use temporary TTime - * variables, hence macros (using the same parameter label) must - * be in the same scope. - * - * The macros are: - * FLOG_PERF_STATIC_BEGIN - records start time - * FLOG_PERF_STATIC_END - records end time and prints results - * FLOG_PERF_DEFINE - defines temporary variables - * FLOG_PERF_START - records start time (fast) - * FLOG_PERF_STOP - records end time (fast) - * FLOG_PERF_PRINT - prints out the results (slow) - * - * Examples: - * FLOG_PERF_STATIC_BEGIN( LoadPluginsL ) - * LoadPluginsL(); - * FLOG_PERF_STATIC_END( LoadPluginsL ) - * FLOG_PERF_STATIC_BEGIN( CreateScannerL ) - * CreateScannerL(); - * FLOG_PERF_STATIC_END( CreateScannerL ) - * FLOG_PERF_STATIC_BEGIN( FetchDataTypesL ) - * FetchDataTypesL(); - * FLOG_PERF_STATIC_END( FetchDataTypesL ) - * - * This generates traces like: - * AppMngr2: PERF LoadPluginsL: 157 ms - * AppMngr2: PERF CreateScannerL: 8 ms - * AppMngr2: PERF FetchDataTypesL: 2 ms - * - * Dynamic macros do the same thing as static macros, but possibly - * slow parts (that may affect to results) are put into separate - * FLOG_PERF_DEFINE and FLOG_PERF_PRINT macros. Printing the trace - * is usually slow, which may affect to results (e.g. if static - * macros are nested). Dynamic macros can be used to measure run - * times of active objects too. - * - * Semicolons are not needed after FLOG macros. Semicolons can be - * used, but they may issue "illegal empty declaration" warning - * after FLOG_PERF_DEFINE() macros when traces are disabled. - */ - - -// Sanity check: each FLOG macro produces compilation error if -// PRINT_FLOG_TO_UTRACE is defined but SYMBIAN_TRACE_ENABLE is not. -#if( defined( PRINT_FLOG_TO_UTRACE ) && !defined( SYMBIAN_TRACE_ENABLE ) ) -#error "SYMBIAN_TRACE_ENABLE not defined, PRINT_FLOG_TO_UTRACE needs it." -#endif - -// Sanity check: traces can be printed to only one target (RDebug, UTrace, or FLogger) -#if( defined( PRINT_FLOG_TO_RDEBUG ) && defined( PRINT_FLOG_TO_UTRACE ) ) -#error "Cannot define both PRINT_FLOG_TO_RDEBUG and PRINT_FLOG_TO_UTRACE macros." -#endif -#if( defined( PRINT_FLOG_TO_RDEBUG ) && defined( PRINT_FLOG_TO_FLOGGER ) ) -#error "Cannot define both PRINT_FLOG_TO_RDEBUG and PRINT_FLOG_TO_FLOGGER macros." -#endif -#if( defined( PRINT_FLOG_TO_UTRACE ) && defined( PRINT_FLOG_TO_FLOGGER ) ) -#error "Cannot define both PRINT_FLOG_TO_UTRACE and PRINT_FLOG_TO_FLOGGER macros." -#endif - -// Sanity check: when traces are enabled, also trace type must be selected. -#if( defined( PRINT_FLOG_TO_RDEBUG ) || defined( PRINT_FLOG_TO_UTRACE ) || defined( PRINT_FLOG_TO_FLOGGER ) ) -#define FLOG_TRACES_ENABLED -#endif -#if( defined( FLOG_TRACES_ENABLED ) ) -#if( !defined( FLOG_DEBUG_TRACES ) && !defined( FLOG_PERFORMANCE_TRACES ) ) -#error "Traces enabled but FLOG_DEBUG_TRACES or FLOG_PERFORMANCE_TRACES is not defined." -#endif -#endif - -#endif // _DEBUG - -#endif // APPMNGR2DEBUGCONFIG_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2debugutils.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2debugutils.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,135 +0,0 @@ -/* -* Copyright (c) 2008 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: Defines trace macros -* -*/ - - -#ifndef APPMNGR2DEBUGUTILS_H -#define APPMNGR2DEBUGUTILS_H - -#include "appmngr2debugconfig.h" // Configuration macros -#ifdef PRINT_FLOG_TO_RDEBUG -#include // RDebug -#endif -#ifdef PRINT_FLOG_TO_UTRACE -#include // TUTrace -#endif -#ifdef PRINT_FLOG_TO_FLOGGER -#include // RFileLogger -#endif -#ifdef FLOG_PERFORMANCE_TRACES -#include // TTime, TTimeIntervalMicroSeconds -#endif - -inline void DebugPrint( TRefByValue aFmt, ... ); - -#ifdef FLOG_TRACES_ENABLED - -#ifdef FLOG_PERFORMANCE_TRACES - -// Static macros -#define FLOG_PERF_STATIC_BEGIN(a) TTime perf_begin_ ##a ; perf_begin_ ##a.UniversalTime(); -#define FLOG_PERF_STATIC_END(a) TTime perf_end_ ##a; perf_end_ ##a.UniversalTime(); \ - TTimeIntervalMicroSeconds perf_diff_ ##a; \ - perf_diff_ ##a = perf_end_ ##a.MicroSecondsFrom( perf_begin_ ##a ); \ - _LIT( perf_name_ ##a, #a ); \ - DebugPrint( _L("PERF %S: %Ld ms" ), &perf_name_ ##a, perf_diff_ ##a.Int64() / TInt64( 1000 ) ); - -// Dynamic macros -#define FLOG_PERF_DEFINE(a) TTime perf_begin_ ##a; TTime perf_end_ ##a; \ - TTimeIntervalMicroSeconds perf_diff_ ##a; -#define FLOG_PERF_START(a) perf_begin_ ##a.UniversalTime(); -#define FLOG_PERF_STOP(a) perf_end_ ##a.UniversalTime(); -#define FLOG_PERF_PRINT(a) _LIT( perf_name_ ##a, #a ); \ - perf_diff_ ##a = perf_end_ ##a.MicroSecondsFrom( perf_begin_ ##a ); \ - DebugPrint( _L("PERF %S: %Ld ms" ), &perf_name_ ##a, perf_diff_ ##a.Int64() / TInt64( 1000 ) ); - -#else - -#define FLOG_PERF_STATIC_BEGIN(a) -#define FLOG_PERF_STATIC_END(a) -#define FLOG_PERF_DEFINE(a) -#define FLOG_PERF_START(a) -#define FLOG_PERF_STOP(a) -#define FLOG_PERF_PRINT(a) - -#endif // FLOG_PERFORMANCE_TRACES - - -#if( defined( FLOG_DEBUG_TRACES ) ) -#define FLOG( a, ARGS... ) DebugPrint( _L( a ), ##ARGS ); -#else -#define FLOG( a, ARGS... ) -#endif // FLOG_DEBUG_TRACES - - -#else -#define FLOG_PERF_STATIC_BEGIN(a) -#define FLOG_PERF_STATIC_END(a) -#define FLOG_PERF_DEFINE(a) -#define FLOG_PERF_START(a) -#define FLOG_PERF_STOP(a) -#define FLOG_PERF_PRINT(a) -#define FLOG( a, ARGS... ) -#endif // FLOG_TRACES_ENABLED - - -const TInt KMaxPrintSize = 256; -_LIT( KAppMngr2Tag, "AppMngr2: " ); - -#if( defined( PRINT_FLOG_TO_UTRACE ) ) - -inline void DebugPrint( TRefByValue aFmt, ... ) - { - VA_LIST list; - VA_START( list, aFmt ); - TBuf buf; - buf.Copy( KAppMngr2Tag ); - buf.AppendFormatList( aFmt, list ); - TUTrace::PrintfPrimary( KDebug, EFalse, EFalse, buf ); - } - -#elif( defined( PRINT_FLOG_TO_RDEBUG ) ) - -inline void DebugPrint( TRefByValue aFmt, ... ) - { - VA_LIST list; - VA_START( list, aFmt ); - TBuf buf; - buf.Copy( KAppMngr2Tag ); - buf.AppendFormatList( aFmt, list ); - RDebug::Print( buf ); - } - -#elif( defined( PRINT_FLOG_TO_FLOGGER ) ) - -_LIT( KLogDir, "AppMngr2" ); -_LIT( KLogFile, "AppMngr2.txt" ); - -inline void DebugPrint( TRefByValue aFmt, ... ) - { - VA_LIST list; - VA_START( list, aFmt ); - RFileLogger::WriteFormat( KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list ); - } - -#else - -// No implementation needed, DebugPrint() not used - -#endif - -#endif // APPMNGR2DEBUGUTILS_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2driveutils.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2driveutils.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility definitions for drive and file handling -* -*/ - - -#ifndef C_APPMNGR2DRIVEUTILS_H -#define C_APPMNGR2DRIVEUTILS_H - -#include // TAppMngr2Location - -/** - * Utility functions to get TAppMngr2Location values and to - * construct resource and bitmap file names. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class TAppMngr2DriveUtils - { -public: // new functions - /** - * Returns location info (TAppMngr2Location) based on given file name (aFileName). - * - * @param aFileName File which location is needed - * @param aFs File server session - * @return TAppMngr2Location Location of the file - */ - IMPORT_C static TAppMngr2Location LocationFromFileNameL( const TDesC& aFileName, RFs& aFs ); - - /** - * Returns location info (TAppMngr2Location) based on given drive (aDrive). - * - * @param aDrive Drive which location is needed - * @param aFs File server session - * @return TAppMngr2Location Location of the drive - */ - IMPORT_C static TAppMngr2Location LocationFromDriveL( TInt aDrive, RFs& aFs ); - - /** - * Returns the nearest resource file using for given file (aFileName) using - * EDefaultRom drive, KDC_RESOURCE_FILES_DIR, and BaflUtils::NearestLanguageFile(). - * - * TFileName object is allocated on heap and it is left in the cleanup stack. - * The caller of this method is responsible to delete the allocated TFileName object. - * - * @param aFileName Resource file name - * @param aFs File server session - * @return TFileName* Full name of the nearest resource file to load - */ - IMPORT_C static TFileName* NearestResourceFileLC( const TDesC& aFileName, RFs& aFs ); - - /** - * Returns full bitmap file name. Constructs file name using EDefaultRom - * drive, KDC_APP_BITMAP_DIR directory, and given MBM/MIF file name. - * - * Full file name is allocated on heap and it is left in the cleanup stack. - * The caller of this method is responsible to delete the allocated HBufC object. - * - * @param aBitmapFile MBM or MIF file name - * @return HBufC* Full file name for aBitmapFile - */ - IMPORT_C static HBufC* FullBitmapFileNameLC( const TDesC& aBitmapFile, RFs& aFs ); - - }; - -#endif // C_APPMNGR2DRIVEUTILS_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2drmutils.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2drmutils.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility definitions for DRM file handling -* -*/ - - -#ifndef C_APPMNGR2DRMUTILS_H -#define C_APPMNGR2DRMUTILS_H - -#include // basic definitions - -/** - * Utility functions to check the DRM status of a given file. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class TAppMngr2DRMUtils - { -public: // new functions - IMPORT_C static TBool IsDRMProtected( const TDesC& aFileName ); - IMPORT_C static TBool IsDRMForwardable( const TDesC& aFileName ); - IMPORT_C static TBool IsDRMRightsObjectExpiredOrMissingL( const TDesC& aFileName ); - IMPORT_C static TBool IsDRMRightsObjectMissingL( const TDesC& aFileName ); - }; - -#endif // C_APPMNGR2DRMUTILS_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2infobase.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2infobase.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,382 +0,0 @@ -/* -* Copyright (c) 2008 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: Base class definitions for items displayed in AppMngr2 -* -*/ - - -#ifndef C_APPMNGR2INFOBASE_H -#define C_APPMNGR2INFOBASE_H - -#include // CBase -#include // CEikMenuPaneItem::SData - -class CAppMngr2Runtime; - -enum TAppMngr2Location - { - EAppMngr2LocationPhone, - EAppMngr2LocationMemoryCard, - EAppMngr2LocationMassStorage - }; - -/** - * CAppMngr2InfoBase is the base class for objects representing: - * - installed applications and - * - installation packages (aka installation files). - * - * Installed applications and installation packages are displayed in the - * Appliction Manager UI using the data that Runtime plug-ins provide with - * CAppMngr2InfoBase derived objects. Application Manager gets the data via - * GetInstalledAppsL() and GetInstallationFilesL() metods in CAppMngr2Runtime - * class. - * - * CAppMngr2InfoBase contains the common functionality for both installed - * applications and installation packages. Derived classes CAppMngr2AppInfo - * and CAppMngr2PackageInfo are placeholders for more specific functionality. - * - * CAppMngr2InfoBase, as well as CAppMngr2AppInfo and CAppMngr2PackageInfo, - * are abstracts classes. Runtime plug-ins must provide the actual implementation - * by using derived classes. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2InfoBase : public CBase - { -public: // constructor and destructor - void ConstructL(); - ~CAppMngr2InfoBase(); - -public: // new functions - /** - * Reference to the CAppMngr2Runtime object of this plugin. - * - * @return CAppMngr2Runtime& Runtime object - */ - IMPORT_C CAppMngr2Runtime& Runtime() const; - - /** - * Icon index of this item (installed application or installation package). - * - * Items are displayed in a list in the UI. Each item has an icon image, - * two labels (name and details) and an optional small indicator icon. - * IconIndex() method provides index for the icon image. - * - * Icon index can be either: - * - index to icon array loaded in CAppMngr2Runtime::LoadIconsL() method - * - special value EAppMngr2UseSpecificIcon defined in AppMngr2Common.hrh - * - * If item has a specific icon that no other items use, return value - * EAppMngr2UseSpecificIcon and load the specific icon via SpecificIconL(). - * - * There are no default icons, each plug-in must provide implementation - * for IconIndex() method. - * - * @return TInt Icon index - */ - virtual TInt IconIndex() const = 0; - - /** - * Optional specific icon for this item. - * - * Returns new icon specific for the item. Note that this method is not - * used unless IconIndex() method returns EAppMngr2UseSpecificIcon value. - * - * The caller of this method is responsible to delete the returned - * icon object. - * - * Default implementation leaves with KErrNotSupported. Plug-in must - * override it if IconIndex() returns EAppMngr2UseSpecificIcon value. - * - * If the same icon bitmap is used in many items, it is more efficient - * to load it once in CAppMngr2Runtime::LoadIconsL() and return icon - * indexes form IconIndex() method. - * - * @return CGulIcon Item specific icon - */ - IMPORT_C virtual CGulIcon* SpecificIconL() const; - - /** - * Name of this item. - * - * Items are displayed in a list in the UI. The list uses two labels - * (name and details) for each item. Descriptor that the Name() method - * returns is displayed as the first label (the 1st line of the item). - * - * @return const TDesC& Displayable name - */ - virtual const TDesC& Name() const = 0; - - /** - * Details (size) of this item. - * - * Items are displayed in a list in the UI. The list uses two labels - * (name and details) for each item. Descriptor that the Details() method - * returns is displayed as the second label (the 2nd line of the item). - * - * Plug-ins can use SizeStringWithUnitsL() method to create details - * string to display the item size in UI. - * - * @returns const TDesC& Displayable additional information line - */ - virtual const TDesC& Details() const = 0; - - /** - * Indicator icon index of this item. - * - * Icon index can be either: - * - default icon index defined in TAppMngr2IconIndex in AppMngr2Common.hrh - * - index to icon array loaded in CAppMngr2Runtime::LoadIconsL() method - * - special value EAppMngr2UseSpecificIcon defined in AppMngr2Common.hrh - * - * Default implementation returns the default icon indexes based on - * the value of iLocation member variable, so plug-ins usually does not - * need to override this method. - * - * If EAppMngr2UseSpecificIcon value is returned, SpecificIndicatorIconL() - * method is called to get the indicator icon. - * - * @return TInt Index to the icon array, or a TAppMngr2IconIndex value - */ - IMPORT_C virtual TInt IndicatorIconIndex() const; - - /** - * Optional specific indicator icon for this item. - * - * Returns new indicator icon specific for the item. Note that this - * method is not used unless IndicatorIconIndex() method returns - * special EAppMngr2UseSpecificIcon value. - * - * The caller of this method is responsible to delete the returned - * icon object. - * - * Default implementation leaves with KErrNotSupported. Plug-in must - * override it if IndicatorIconIndex() returns EAppMngr2UseSpecificIcon. - * - * If the same icon bitmap is used in many items, it is more efficient - * to load it once in CAppMngr2Runtime::LoadIconsL() and return icon - * indexes form IconIndex() method. - * - * @return CGulIcon Item specific icon - */ - IMPORT_C virtual CGulIcon* SpecificIndicatorIconL() const; - - /** - * ShowOnTop highlight status of this item. - * - * Returns ETrue if this item should be highlighted (e.g. displayed - * separately on top of other items in installation files/installed - * applications list). All items are displayed in alphabetical order. - * If ShowOnTop flag is set, then the item is displayed before other - * items (or in completely separate list of highligted items). All - * separately displayed items are listed in alphabetical order too. - * - * @return TBool ETrue, if this item should be displayed separately - */ - IMPORT_C TBool IsShowOnTop() const; - - /** - * Optional specific menu items for this item. - * - * If the item supports specific menu commands, return the menu pane - * data. Plug-in can use ReadMenuItemDataFromResourceL() method to - * read menu pane data from resources. Menu commands are run via - * HandleCommandL() method. - * - * The caller of this method is responsible to delete the returned - * CEikMenuPaneItem::SData data structs. - * - * Default implementation is empty. - * - * @param aMenuCmds Array where plug-in specific menu items are added - */ - IMPORT_C virtual void GetMenuItemsL( RPointerArray& aMenuCmds ); - - /** - * Enable generic menu commands for this item. - * - * Generic menu commands are defined in TAppMngr2GenericCommands enum in - * AppMngr2Common.hrh. Generic commands are hidden from the menu if the - * currently selected item does not support them. Return ETrue for those - * command ids that are supported by this item. Generic commands are - * run via HandleCommandL() method. - * - * @param aCmdId Generic command id - * @return TBool ETrue if command aCmdId is supported - */ - IMPORT_C virtual TBool SupportsGenericCommand( TInt aCmdId ); - - /** - * Optional specific middle softkey command for this item. - * - * If the item supports specific middle softkey command, return TBUF - * resource id (for the command label) and command id. Item specific - * command is run via HandleCommandL() method when user presses the - * middle softkey. - * - * Default middle softkey command is used, if plug-in does not override it. - * - * @param aResourceId Command label to be displayed in UI (TBUF resource) - * @param aCommandId Command id to be passed to HandleCommandL - */ - IMPORT_C virtual void GetMiddleSoftkeyCommandL( TInt& aResourceId, TInt& aCommandId ); - - /** - * Starts asynchronously a user invoked command. - * - * The command can be a generic one or specific to the plug-in. The ids - * for the generic commands are defined in AppMngr2Common.hrh (see the - * enumeration TAppMngr2GenericCommand). The plug-in specific commands - * are defined via GetMenuItemsL() and GetMiddleSoftkeyCommandL() methods. - * - * The caller of this method must call HandleCommandResultL() after the - * asynchronous request has been completed. - * - * This asynchronous request must be completed properly using the method - * User::RequestComplete() even if the command itself has been implemented - * in synchronous manner. - * - * @param aCommandId Id of the command to be run - * @param aStatus Active object request status - */ - virtual void HandleCommandL( TInt aCommandId, TRequestStatus& aStatus ) = 0; - - /** - * Handles the completion result of an asynchronous command. - * - * This method is provided so that the plug-in may decide upon handling - * possible errors encountered during the command processing (note that - * the completion status is received directly by the caller of the method - * HandleCommandL() and not by this plug-in). These actions may include - * for example closing open sessions and deleting objects. - * - * This function should leave if an error note should be displayed in - * the UI (e.g. KErrNoMemory). Note that the result may be KErrCancel - * or SwiUI::KSWInstErrUserCancel if the user cancelled the operation. - * - * @param aResult Completion code, KErrNone or some error code - */ - virtual void HandleCommandResultL( TInt aResult ) = 0; - - /** - * Cancels the current asynchronous command. - * - * This method may be called at any time when an asynchronous command - * is started using HandleCommandL() method. It must cancel the running - * command as quickly as possible. - */ - virtual void CancelCommand() = 0; - - /** - * Utility function to create displayable string that contains size - * followed by kilobyte (kB), megabyte (MB) or gigabyte (GB) units. - * - * Size is rounded and formatted using the relevant unit, for example - * SizeStringWithUnitsL( 5120 ) returns "5 kB". - * - * The caller of this method is responsible to delete the returned string. - * - * @param aSizeInBytes Item size - * @return HBufC* New string that contains displayable size string - */ - IMPORT_C HBufC* SizeStringWithUnitsL( TInt64 aSizeInBytes ); - - /** - * Utility function to construct CEikMenuPaneItem from MENU_ITEM resource. - * - * @param aResourceId MENU_ITEM resource id - * @param aMenuItem CEikMenuPaneItem::SData struct that is filled in - */ - IMPORT_C void ReadMenuItemDataFromResourceL( TInt aResourceId, - CEikMenuPaneItem::SData& aMenuItem ); - - /** - * Returns the location of installation file or installed application. - * - * Remote drives are not supported. Derived class must fill in the - * iLocation member variable to provide data for this function. - * - * @return TAppMngr2Location Location of the item - */ - IMPORT_C TAppMngr2Location Location() const; - - /** - * Returns the drive where installation file is located, or where - * installed application is installed. - * - * Derived class must fill in the iLocationDrive member variable - * to provide data for this function. - * - * @return TDriveUnit Drive where the item is located - */ - IMPORT_C TDriveUnit LocationDrive() const; - -protected: // new functions - /** - * Constructor, not exported because used via CAppMngr2AppInfo and CAppMngr2PackageInfo - */ - CAppMngr2InfoBase( CAppMngr2Runtime& aRuntime, RFs& aFsSession ); - -protected: // data - /** - * Location of this item. - * - * Default implementation of IndicatorIconIndex() function uses this - * value to return the default indicator icon index. See also the - * Location() function defined above. - */ - TAppMngr2Location iLocation; - - /** - * Drive of this item. - * - * Location drive defines the drive where this item resides (either - * installation package is stored, or application is installed). - * CAppMngr2InfoIterator uses this value to display the drive - * in "Details" dialog. See also the LocationDrive() function - * defined above. - */ - TDriveUnit iLocationDrive; - - /** - * ShowOnTop (highlight) flag. - * - * If ShowOnTop flag is ETrue, the item is highlighted in UI. It - * may be displayed on top of other items in installed application - * or installation files list, or it may be displayed in separate - * list of highlighted items. - * - * For example, new or untrusted installed applications can be highlighted. - * When set, the item needs to show the reason why iShowOnTop is enabled - * (e.g. by using "new" or "untrusted" icon). See also the IsShowOnTop() - * function defined above. - */ - TBool iShowOnTop; - - /** - * File server session, provided by framework when item is created. - */ - RFs& iFs; - -private: // data - /** - * Reference to CAppMngr2Runtime class for this item. - * See also the Runtime() function defined above. - */ - CAppMngr2Runtime& iRuntime; - }; - -#endif // C_APPMNGR2INFOBASE_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2infoiterator.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2infoiterator.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +0,0 @@ -/* -* Copyright (c) 2008 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: Implements MCUIInfoIterator API for CCUIDetailsDialog -* -*/ - - -#ifndef C_APPMNGR2INFOITERATOR_H -#define C_APPMNGR2INFOITERATOR_H - -#include // SwiUI::CommonUI::MCUIInfoIterator - -class CAppMngr2InfoBase; -class CDesC8Array; - -enum TAppMngr2InfoType - { - EAppMngr2StatusInstalled, - EAppMngr2StatusNotInstalled - }; - - -/** - * CAppMngr2InfoIterator is the base class for plug-in specific data collecting - * iterators. CAppMngr2InfoIterator derived iterators can be used to get the data - * shown in details dialog (CCUIDetailsDialog). Details dialog shows application - * details and certificate info. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2InfoIterator : public CBase, public SwiUI::CommonUI::MCUIInfoIterator - { -public: // constructors and destructor - /** - * Constructs new info iterator to show details dialog. - * - * @param aInfo Reference to application or package info object - * @param aInfoType Type info (installed application or not installed package) - */ - IMPORT_C CAppMngr2InfoIterator( CAppMngr2InfoBase& aInfo, TAppMngr2InfoType aInfoType ); - - /** - * Allocates memory for CDesCArrays. - * - * BaseConstructL() must be called from derived ConstructL() before any other - * leaving functions. BaseConstructL() calls SetAllFieldsL() to get all the - * displayable details. - */ - IMPORT_C void BaseConstructL(); - - /** - * Destructor, deletes allocated memory. - */ - IMPORT_C ~CAppMngr2InfoIterator(); - -public: // from MCUIInfoIterator - IMPORT_C TBool HasNext() const; - IMPORT_C void Next( TPtrC& aKey, TPtrC& aValue ); - IMPORT_C void Reset(); - -protected: // new functions - /** - * Sets field to given value. - * - * Uses StringLoader to load aResourceId and adds it to MCUIInfoIterator - * as a new key having value aValue. - * - * @param aResourceId Resource id for MCUIInfoIterator key - * @param aValue Value for the key - */ - IMPORT_C void SetFieldL( TInt aResourceId, const TDesC& aValue ); - - /** - * Sets all default fields, can be overridden in derived classes. - * - * Default implementation sets name (from CAppMngr2InfoBase::Name()), - * status (either installed or not installed), location drive (from - * CAppMngr2InfoBase::Location()), and application/file size (from - * CAppMngr2InfoBase::Details()). Status and location fields are set - * using SetStatusL() and SetLocationL() functions, so that they can - * be overridden separately. Finally calls SetOtherFieldsL() to set - * other fields, if derived class has some additional fields that - * are not covered here. - */ - IMPORT_C virtual void SetAllFieldsL(); - - /** - * Sets status (installed or not installed) based on aInfoType - * defined in constructor. This function can be overridden in - * derived classes. - */ - IMPORT_C virtual void SetStatusL(); - - /** - * Sets location drive based on CAppMngr2InfoBase::Location(). - * This function can be overridden in derived classes. - */ - IMPORT_C virtual void SetLocationL(); - - /** - * Sets other possble fields, default implemenation is empty. - * This function can be overridden in derived classes. - */ - IMPORT_C virtual void SetOtherFieldsL(); - -protected: // data - CAppMngr2InfoBase& iInfo; - TAppMngr2InfoType iInfoType; - TInt iCurrentIndex; - CDesCArray* iKeys; - CDesCArray* iValues; - }; - -#endif // C_APPMNGR2INFOITERATOR_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2packageinfo.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2packageinfo.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -/* -* Copyright (c) 2008 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: PackageInfo represents installable package (sisx, jad, jar, ...) -* -*/ - - -#ifndef C_APPMNGR2PACKAGEINFO_H -#define C_APPMNGR2PACKAGEINFO_H - -#include // CAppMngr2InfoBase - -class RFs; - -/** - * CAppMngr2PackageInfo represents installation package (installation file). - * - * Runtime plug-in must define it's own CAppMngr2PackageInfo derived class - * to provide the actual functionality for abstract functions defined in - * CAppMngr2InfoBase class. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2PackageInfo : public CAppMngr2InfoBase - { -public: // constructor and destructor - IMPORT_C void ConstructL(); - IMPORT_C ~CAppMngr2PackageInfo(); - -protected: // new functions - IMPORT_C CAppMngr2PackageInfo( CAppMngr2Runtime& aRuntime, RFs& aFsSession ); - - /** - * Utility function to show R_APPMNGR2_YES_NO_CONFIRMATION_QUERY - * confirmation query with R_AM_DELETEQUERY string and item name. - * - * @return TBool ETrue, if user accepted the query - */ - IMPORT_C TBool ShowDeleteConfirmationQueryL(); - }; - -#endif // C_APPMNGR2PACKAGEINFO_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2recognizedfile.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2recognizedfile.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2008 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: Class that contains file name and it's MIME type -* -*/ - - -#ifndef C_APPMNGR2RECOGNIZEDFILE_H -#define C_APPMNGR2RECOGNIZEDFILE_H - -#include // CBase - -class TDataType; - -/** - * File and it's MIME type. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2RecognizedFile : public CBase - { -public: // constructor and destructor - /** - * Creates new CAppMngr2RecognizedFile. - * - * File name and data type are copied into the new CAppMngr2RecognizedFile object. - * - * @param aFileName File name - * @param aDataType Data (MIME) type - * @returns new CAppMngr2RecognizedFile object - */ - IMPORT_C static CAppMngr2RecognizedFile* NewL( const TDesC& aFileName, - const TDataType& aDataType ); - - /** - * Creates new CAppMngr2RecognizedFile by taking ownership of given parameters. - * - * Note the construction order - the caller must take care of deleting the given - * parameters if this function leaves. - * - * @param aFileName File name - * @param aMimeType MIME type - * @returns new CAppMngr2RecognizedFile object - */ - IMPORT_C static CAppMngr2RecognizedFile* NewL( HBufC* aFileName, HBufC* aMimeType ); - - /** - * Destructor. - */ - IMPORT_C ~CAppMngr2RecognizedFile(); - -public: // new functions - /** - * Returns file name. - * @return const TDesC& File name - */ - IMPORT_C const TDesC& FileName(); - - /** - * Returns data (MIME) type as TDataType. - * @return const TDataType& Data type. - */ - IMPORT_C const TDataType& DataType(); - -private: // new functions - CAppMngr2RecognizedFile(); - -private: // data - HBufC* iFileName; - TDataType* iDataType; - }; - -#endif // C_APPMNGR2RECOGNIZEDFILE_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2runtime.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2runtime.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,288 +0,0 @@ -/* -* Copyright (c) 2008 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: Base class for AppMngr2 plug-ins that define runtime types -* -*/ - - -#ifndef C_APPMNGR2RUNTIME_H -#define C_APPMNGR2RUNTIME_H - -#include // CBase -#include // CDataTypeArray - -class CAppMngr2AppInfo; -class CAppMngr2PackageInfo; -class CAppMngr2RecognizedFile; -class MAppMngr2RuntimeObserver; -class CAknIconArray; -class CEikonEnv; - - -/** - * ECom interface UID for AppMngr2 Runtime plugins - */ -const TUid KAppMngr2PluginInterface = { 0x20016BF4 }; - - -/** - * Base class for Application Manager Runtime plug-ins. - * - * CAppMngr2Runtime class represents one Runtime plug-in. As it is abstract - * class plug-in must provide the actual implementation using derived class. - * - * Application Manager lists ECom plug-ins implementing KAppMngr2PluginInterface - * and creates new CAppMngr2Runtime objects. Creating new CAppMngr2Runtime object - * loads the Runtime plug-in's DLL and instantiates it. - * - * After all Runtime plug-ins are loaded, Application Manager calls LoadIconsL() - * to load plug-in specific icons, GetSupportedDataTypesL() to identify installation - * files that this plug-in support, and GetAdditionalDirsToScanL() to get plug-in - * specific directories that may contain installation files. Then Application Manager - * scans directories and recognizes files in them, and proceeds to get installed - * applications and installation packages. Installed applications are prompted from - * each plug-in via GetInstalledAppsL() method. Each plug-in creates CAppMngr2AppInfo - * derived objects to represent currently installed applications. Installation packages - * are based on recognized files in scanned directories. Application Manager provides - * list of files that match the supported data types via GetInstallationFilesL() - * method, and the plug-in creates CAppMngr2PackageInfo objects representing - * installation packages. - * - * Application Manager monitors changes in scanned directories and known application - * registeries. When a change is notified, Application Manager gets the latest data - * using GetInstalledAppsL() and GetInstallationFilesL() methods again. If Application - * Manager does not listen some specific registry, plug-in can notify change using - * MAppMngr2RuntimeObserver interface. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class CAppMngr2Runtime : public CBase - { -public: // constructor and destructor - - /** - * ECom object instantiation. - * - * Loads the ECom plug-in DLL and instantiates new Runtime plug-in object. - * - * @param aUid Specifices the concrete implementation - * @param aObserver Observer implementing MAppMngr2RuntimeObserver functions - * @return CAppMngr2Runtime New Runtime plug-in object - */ - IMPORT_C static CAppMngr2Runtime* NewL( TUid aImplementationUid, - MAppMngr2RuntimeObserver &aObserver ); - - /** - * Destructs the ECom object and unloads the plug-in DLL. - */ - IMPORT_C ~CAppMngr2Runtime(); - - -public: // new functions - - /** - * Runtime plug-in UID. - * - * Returns UID that identifies the runtime plug-in - * - * $return TUid Runtime plug-in UID - */ - IMPORT_C const TUid RuntimeUid() const; - - /** - * Utility function to open resource file. - * - * Adds nearest localized resource file to the list maintained by CCoeEnv. - * Uses DriveInfo::EDefaultRom drive and KDC_RESOURCE_FILES_DIR directory - * by default, if not defined in aFileName. Nearest extension language code - * is obtained from BaflUtils::NearestLanguageFile(). Added resource files - * must be deleted using CCoeEnv::DeleteResourceFile() function. - * - * @param aFileName Resource file name - * @return TInt Offset value for this resource file - */ - IMPORT_C TInt AddNearestResourceFileL( const TDesC& aFileName ); - - /** - * Utility function to construct full bitmap file name. - * - * Constructs the file name using DriveInfo::EDefaultRom drive, - * KDC_APP_BITMAP_DIR directory, and given MBM/MIF file name. - * - * The caller of this method is responsible to delete the retuned string. - * - * @param aBitmapFile MBM or MIF file name - * @return HBufC* Full file name for aBitmapFile - */ - IMPORT_C HBufC* FullBitmapFileNameLC( const TDesC& aBitmapFile ); - - /** - * Utility function to return cached CEikonEnv reference. - * - * @return CEikonEnv& Reference to cached CEikonEnv::Static() instance - */ - IMPORT_C CEikonEnv& EikonEnv(); - - /** - * Runtime observer. - * - * Returns reference to object implementing MAppMngr2RuntimeObserver - * interface. See appmngr2runtimeobserver.h for more info. - * - * @return MAppMngr2RuntimeObserver& Reference to observer - */ - IMPORT_C MAppMngr2RuntimeObserver& Observer(); - -public: // new pure virtual functions - - /** - * Load icons for this plug-in. - * - * Plug-in specific icons are used when CAppMngr2InfoBase::IconIndex() - * or CAppMngr2InfoBase::IndicatorIconIndex() return indexes to the - * returned aIconArray. - * - * There are no default icons, so each plug-in must provide implementation - * for LoadIconsL() method. - * - * @param aIconArray Array where to append the loaded icons - */ - virtual void LoadIconsL( CAknIconArray& aIconArray ) = 0; - - /** - * Supported data types for this plug-in. - * - * Return MIME types that this Runtime plug-in supports for creating - * installation packages (CAppMngr2PackageInfo objects). Application - * Manager scans installation files and recognizes file types. Files - * that match to the supported MIME types are provided to the plug-in - * via GetInstallationFilesL() method. - * - * Scanning and recognizing is implemented in Application Manager for - * performance reasons. Plug-ins should not scan or recognize files as - * Application Manager has done it already once and it provides list - * of files and their MIME types to the plug-ins. - * - * @param aDataTypeArray Array where to append supported data types - */ - virtual void GetSupportedDataTypesL( CDataTypeArray& aDataTypeArray ) = 0; - - /** - * Define additional directories for installation file scanning. - * - * By default all PathInfo::EInstallsPath directories in all non-remote - * drives are scanned. Also KSWInstallerPackageFolder directory defined - * in CenRep is scanned. Use this function to add more directories for - * scanning. All directory names are checked with RFs::IsValidName() and - * invalid names are ignored. Wild-cards (like '*') are not allowed in - * directory names. - * - * @param aFsSession File server session - * @param aDirs Array where to append additional directories to scan - */ - IMPORT_C virtual void GetAdditionalDirsToScanL( RFs& aFsSession, - RPointerArray& aDirs ); - - /** - * Create package info objects. - * - * Package info objects represent installation files in "Installation - * Files" view. Each package info object is displayed as a separate item. - * Package info objects should be based on recognized installation files, - * provided in aFileList array. - * - * GetInstallationFilesL() may be called several times. It is called once - * for each scanned directory that contains recognized files for this Runtime - * plugin. - * - * This asynchronous request must be completed properly using the method - * User::RequestComplete() even if the GetInstallationFilesL() itself has - * been implemented in synchronous manner. Outstanding request may be - * cancelled by calling CancelGetInstallationFiles(). - * - * @param aPackageInfos Array where to append package info objects - * @param aFileList List of file names and corresponding MIME types - * @param aFsSession File server session - * @param aStatus Request status for the asynchronous request - */ - virtual void GetInstallationFilesL( - RPointerArray& aPackageInfos, - const RPointerArray& aFileList, - RFs& aFsSession, - TRequestStatus& aStatus ) = 0; - - /** - * Cancel pending asynchronous GetInstallationFilesL() request. - */ - virtual void CancelGetInstallationFiles() = 0; - - /** - * Create application info objects. - * - * Application info objects represent installed applications in "Installed" - * view. Each application info object is displayed as a separate item. - * - * This asynchronous request must be completed properly using the method - * User::RequestComplete() even if the GetInstalledAppsL() itself has - * been implemented in synchronous manner. Outstanding request may be - * cancelled by calling CancelGetInstalledApps(). - * - * @param aApps Array where to add application info objects - * @param aFsSession File server session - * @param aStatus Request status for the asynchronous request - */ - virtual void GetInstalledAppsL( - RPointerArray& aApps, - RFs& aFsSession, - TRequestStatus& aStatus ) = 0; - - /** - * Cancel pending asynchronous GetInstalledAppsL() request. - */ - virtual void CancelGetInstalledApps() = 0; - -protected: // new functions - /** - * Protected constructor exported for derived classes. - */ - IMPORT_C CAppMngr2Runtime( MAppMngr2RuntimeObserver &aObserver ); - -private: // new functions - void ConstructL( TUid aImplementationUid ); - -private: // data - /** - * ECom instance identifier key. - */ - TUid iDtorIDKey; - - /** - * Implementation UID that identifies the plugin. - */ - TUid iRuntimeUid; - - /** - * Application implementing observer interface. - */ - MAppMngr2RuntimeObserver& iObserver; - - /** - * CEikonEnv pointer, cached from CEikonEnv::Static(). - */ - CEikonEnv* iCachedEikonEnv; // not owned - }; - -#endif // C_APPMNGR2RUNTIME_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/inc/appmngr2runtimeobserver.h --- a/appinstall_plat/appmngr2runtimeapi/inc/appmngr2runtimeobserver.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -/* -* Copyright (c) 2008 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: AppMngr2 Runtime plugin observer interface -* -*/ - - -#ifndef C_APPMNGR2RUNTIMEOBSERVER_H -#define C_APPMNGR2RUNTIMEOBSERVER_H - -/** - * Application Manager's change notification interface. - * - * Application Manager monitors changes in application list and scanned - * directories. There may be some plug-in specific changes that are not - * visible in monitored interfaces, and that require refreshing displayed - * installed application (or installation packages) list. Runtime plug-in - * can notify the Application Manager via this interface when needed. - * - * @lib appmngr2pluginapi.lib - * @since S60 v5.1 - */ -class MAppMngr2RuntimeObserver - { -public: - /** - * Runtime plugin can use RefreshInstalledApps() function to - * refresh the installed applications list. Refreshing the list - * makes AppMngr2 to refetch all installed application data. - * Note that AppMngr2 listens EAppListChanged events via - * MApaAppListServObserver, so plugins should use this - * function only if AppMngr2 is not notified otherwise. - */ - virtual void RefreshInstalledApps() = 0; - - /** - * Runtime plugin can use RefreshInstallationFiles() function - * to refresh the installation files list. Refreshing the list - * makes AppMngr2 to rescan install directories and refetch - * all installation package data. Note that AppMngr2 listens - * RFs::NotifyChange() events to handle file additions and - * deletions in defined install directories. Hence, plugins - * should use this function only if AppMngr2 is not notified - * otherwise. - */ - virtual void RefreshInstallationFiles() = 0; - }; - -#endif // C_APPMNGR2RUNTIMEOBSERVER_H - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/rom/appmngr2runtime.iby --- a/appinstall_plat/appmngr2runtimeapi/rom/appmngr2runtime.iby Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -/* -* Copyright (c) 2008 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: Image description file for project AppMngr2 -* -*/ - - -#ifndef APPMNGR2RUNTIME_IBY -#define APPMNGR2RUNTIME_IBY - -file=ABI_DIR\BUILD_DIR\appmngr2pluginapi.dll SHARED_LIB_DIR\appmngr2pluginapi.dll - -#endif // APPMNGR2RUNTIME_IBY diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2appinfo.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2appinfo.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/* -* Copyright (c) 2008 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: AppInfo implementation -* -*/ - - -#include "appmngr2appinfo.h" - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2AppInfo::ConstructL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2AppInfo::ConstructL() - { - CAppMngr2InfoBase::ConstructL(); - } - -// --------------------------------------------------------------------------- -// CAppMngr2AppInfo::~CAppMngr2AppInfo() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2AppInfo::~CAppMngr2AppInfo() - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2AppInfo::CAppMngr2AppInfo() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2AppInfo::CAppMngr2AppInfo( CAppMngr2Runtime& aRuntime, - RFs& aFsSession ) : CAppMngr2InfoBase( aRuntime, aFsSession ) - { - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2driveutils.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2driveutils.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility functions for drive and file handling -* -*/ - - -#include "appmngr2driveutils.h" // TAppMngr2DriveUtils -#include "appmngr2debugutils.h" // FLOG macros -#include // DriveInfo -#include // BaflUtils -#include // KDC_* constant strings - -_LIT( KDriveFormat, "%c:" ); - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// TAppMngr2DriveUtils::LocationFromFileName() -// --------------------------------------------------------------------------- -// -EXPORT_C TAppMngr2Location TAppMngr2DriveUtils::LocationFromFileNameL( - const TDesC& aFileName, RFs& aFs ) - { - TParsePtrC fileNameParser( aFileName ); - const TChar driveLetter( fileNameParser.Drive()[ 0 ] ); - TInt driveNumber; - User::LeaveIfError( aFs.CharToDrive( driveLetter, driveNumber ) ); - return LocationFromDriveL( driveNumber, aFs ); - } - -// --------------------------------------------------------------------------- -// TAppMngr2DriveUtils::LocationFromDrive() -// --------------------------------------------------------------------------- -// -EXPORT_C TAppMngr2Location TAppMngr2DriveUtils::LocationFromDriveL( - TInt aDrive, RFs& aFs ) - { - TUint driveStatus = 0; - User::LeaveIfError( DriveInfo::GetDriveStatus( aFs, aDrive, driveStatus ) ); - if( driveStatus & DriveInfo::EDriveRemovable ) - { - return EAppMngr2LocationMemoryCard; - } - if( driveStatus & DriveInfo::EDriveExternallyMountable ) - { - return EAppMngr2LocationMassStorage; - } - return EAppMngr2LocationPhone; - } - -// --------------------------------------------------------------------------- -// TAppMngr2DriveUtils::NearestResourceFileLC() -// --------------------------------------------------------------------------- -// -EXPORT_C TFileName* TAppMngr2DriveUtils::NearestResourceFileLC( - const TDesC& aFileName, RFs& aFs ) - { - FLOG( "NearestResourceFileLC( %S )", &aFileName ); - - TInt romDriveNumber = KErrNotFound; - DriveInfo::GetDefaultDrive( DriveInfo::EDefaultRom, romDriveNumber ); - TChar romDriveLetter; - User::LeaveIfError( aFs.DriveToChar( romDriveNumber, romDriveLetter ) ); - - TFileName* fullName = new (ELeave) TFileName; - CleanupStack::PushL( fullName ); - - fullName->Format( KDriveFormat, static_cast( romDriveLetter ) ); - fullName->Append( KDC_RESOURCE_FILES_DIR ); - fullName->Append( aFileName ); - - BaflUtils::NearestLanguageFile( aFs, *fullName ); - FLOG( "NearestResourceFileLC, returns %S", fullName ); - return fullName; - } - -// --------------------------------------------------------------------------- -// TAppMngr2DriveUtils::FullBitmapFileNameLC() -// --------------------------------------------------------------------------- -// -EXPORT_C HBufC* TAppMngr2DriveUtils::FullBitmapFileNameLC( - const TDesC& aBitmapFile, RFs& aFs ) - { - FLOG( "FullBitmapFileNameLC( %S )", &aBitmapFile ); - TInt romDriveNumber = KErrNotFound; - DriveInfo::GetDefaultDrive( DriveInfo::EDefaultRom, romDriveNumber ); - TChar romDriveLetter; - User::LeaveIfError( aFs.DriveToChar( romDriveNumber, romDriveLetter ) ); - - HBufC* fullName = HBufC::NewLC( KMaxFileName ); - TPtr fullNameDes = fullName->Des(); - - fullNameDes.Format( KDriveFormat, static_cast( romDriveLetter ) ); - fullNameDes.Append( KDC_APP_BITMAP_DIR ); - fullNameDes.Append( aBitmapFile ); - - FLOG( "FullBitmapFileNameLC, returns %S", fullName ); - return fullName; - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2drmutils.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2drmutils.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,129 +0,0 @@ -/* -* Copyright (c) 2008 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: Utility functions for DRM file handling -* -*/ - - -#include "appmngr2drmutils.h" // TAppMngr2DRMUtils -#include "appmngr2debugutils.h" // FLOG macros -#include // ContentAccess::CContent -#include // CDRMHelper - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// TAppMngr2DRMUtils::IsDRMProtected() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool TAppMngr2DRMUtils::IsDRMProtected( const TDesC& aFileName ) - { - FLOG( "TAppMngr2DRMUtils::IsDRMProtected( %S )", &aFileName ); - TInt isProtected = EFalse; - - ContentAccess::CContent* content = NULL; - TRAPD( err, content = ContentAccess::CContent::NewL( aFileName ) ); - FLOG( "TAppMngr2DRMUtils::IsDRMProtected(), CAF err %d", err ); - if( err == KErrNone ) - { - content->GetAttribute( ContentAccess::EIsProtected, isProtected ); - delete content; - } - - FLOG( "TAppMngr2DRMUtils::IsDRMProtected() returns %d", isProtected ); - return isProtected; - } - -// --------------------------------------------------------------------------- -// TAppMngr2DRMUtils::IsDRMForwardable() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool TAppMngr2DRMUtils::IsDRMForwardable( const TDesC& aFileName ) - { - FLOG( "TAppMngr2DRMUtils::IsDRMForwardable( %S )", &aFileName ); - TInt isForwardable = ETrue; - - ContentAccess::CContent* content = NULL; - TRAPD( err, content = ContentAccess::CContent::NewL( aFileName ) ); - FLOG( "TAppMngr2DRMUtils::IsDRMForwardable(), CAF err %d", err ); - if( err == KErrNone ) - { - content->GetAttribute( ContentAccess::EIsForwardable, isForwardable ); - delete content; - } - - FLOG( "TAppMngr2DRMUtils::IsDRMForwardable() returns %d", isForwardable ); - return isForwardable; - } - -// --------------------------------------------------------------------------- -// TAppMngr2DRMUtils::IsDRMRightsObjectExpiredOrMissingL() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool TAppMngr2DRMUtils::IsDRMRightsObjectExpiredOrMissingL( const TDesC& aFileName ) - { - FLOG( "TAppMngr2DRMUtils::IsDRMRightsObjectExpiredOrMissingL( %S )", &aFileName ); - TInt err = KErrNone; - - ContentAccess::CContent* content = ContentAccess::CContent::NewLC( aFileName ); - content->GetAttribute( ContentAccess::ECanExecute, err ); - CleanupStack::PopAndDestroy( content ); - - TBool isRightsObjectExpiredOrMissing = EFalse; - if( err == KErrCANoRights || err == KErrCANoPermission ) - { - isRightsObjectExpiredOrMissing = ETrue; - } - FLOG( "TAppMngr2DRMUtils::IsDRMRightsObjectExpiredOrMissingL() returns %d", - isRightsObjectExpiredOrMissing ); - return isRightsObjectExpiredOrMissing; - } - -// --------------------------------------------------------------------------- -// TAppMngr2DRMUtils::IsDRMRightsObjectMissingL() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool TAppMngr2DRMUtils::IsDRMRightsObjectMissingL( const TDesC& aFileName ) - { - FLOG( "TAppMngr2DRMUtils::IsDRMRightsObjectMissingL( %S )", &aFileName ); - TUint32 intent = 0; - TBool isExpired = EFalse; - TBool isSendingAllowed = EFalse; - - CDRMHelperRightsConstraints* rightsPlay = NULL; - CDRMHelperRightsConstraints* rightsDisplay = NULL; - CDRMHelperRightsConstraints* rightsExecute = NULL; - CDRMHelperRightsConstraints* rightsPrint = NULL; - - CDRMHelper* drm = CDRMHelper::NewLC( *CCoeEnv::Static() ); - TRAPD( err, drm->GetRightsDetailsL( aFileName, intent, isExpired, isSendingAllowed, - rightsPlay, rightsDisplay, rightsExecute, rightsPrint )); - FLOG( "TAppMngr2DRMUtils::IsDRMRightsObjectMissingL(), GetRightsDetailsL err %d", err ); - CleanupStack::PopAndDestroy( drm ); - - delete rightsPlay; - delete rightsDisplay; - delete rightsExecute; - delete rightsPrint; - - TBool isRightsObjectMissing = EFalse; - if( err == KErrCANoRights ) - { - isRightsObjectMissing = ETrue; - } - FLOG( "TAppMngr2DRMUtils::IsDRMRightsObjectMissingL() returns %d", isRightsObjectMissing ); - return isRightsObjectMissing; - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2infobase.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2infobase.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,243 +0,0 @@ -/* -* Copyright (c) 2008 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: Base class implementation for items displayed in AppMngr2 -* -*/ - - -#include "appmngr2infobase.h" // CAppMngr2InfoBase -#include "appmngr2runtime.h" // CAppMngr2Runtime -#include "appmngr2common.hrh" // Default icon indexes -//#include // Resource IDs -#include // DisplayTextLanguageSpecificNumberConversion -#include // StringLoader -#include // TResourceReader -#include // Math::Round - -const TUint KKiloByte = KKilo; -const TUint KMegaByte = KKilo*KKiloByte; -const TUint KGigaByte = KKilo*KMegaByte; -const TInt KDecimalPlaces = 0; - - -// ======== LOCAL FUNCTIONS ========= - -// --------------------------------------------------------------------------- -// DivideAndReturnRoundedInt() -// --------------------------------------------------------------------------- -// -TInt DivideAndReturnRoundedInt( TInt64 aDivident, TUint aDivisor ) - { - // Ignored possible math errors returned by Math::Round() and Math::Int(). - TReal rounded = 0; - Math::Round( rounded, I64REAL( aDivident ) / aDivisor, KDecimalPlaces ); - if( rounded < 1 ) - { - rounded = 1; - } - TInt32 final = 0; - Math::Int( final, rounded ); - return final; - } - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::ConstructL() -// --------------------------------------------------------------------------- -// -void CAppMngr2InfoBase::ConstructL() - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::~CAppMngr2InfoBase() -// --------------------------------------------------------------------------- -// -CAppMngr2InfoBase::~CAppMngr2InfoBase() - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::Runtime() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2Runtime& CAppMngr2InfoBase::Runtime() const - { - return iRuntime; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::SpecificIconL() -// --------------------------------------------------------------------------- -// -EXPORT_C CGulIcon* CAppMngr2InfoBase::SpecificIconL() const - { - User::Leave( KErrNotSupported ); // should not get here - return NULL; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::IndicatorIconIndex() -// --------------------------------------------------------------------------- -// -EXPORT_C TInt CAppMngr2InfoBase::IndicatorIconIndex() const - { - if( iLocation == EAppMngr2LocationMemoryCard ) - { - return EAppMngr2IconQgnIndiAmInstMmcAdd; - } - if( iLocation == EAppMngr2LocationMassStorage ) - { - return EAppMngr2IconQgnIndiFmgrMsAdd; - } - return EAppMngr2NoIndicatorIcon; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::SpecificIndicatorIconL() -// --------------------------------------------------------------------------- -// -EXPORT_C CGulIcon* CAppMngr2InfoBase::SpecificIndicatorIconL() const - { - User::Leave( KErrNotSupported ); // should not get here - return NULL; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::IsShowOnTop() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool CAppMngr2InfoBase::IsShowOnTop() const - { - return iShowOnTop; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::GetMenuItemsL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoBase::GetMenuItemsL( - RPointerArray& /*aMenuCmds*/ ) - { - // no item specific menu items by default - } - - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::SupportsGenericCmd() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool CAppMngr2InfoBase::SupportsGenericCommand( TInt /*aCmdId*/ ) - { - return EFalse; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::GetMiddleSoftkeyCommandL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoBase::GetMiddleSoftkeyCommandL( - TInt& /*aResourceId*/, TInt& /*aCommandId*/ ) - { - // no item specific middle softkey command by default - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::SizeStringWithUnitsL() -// --------------------------------------------------------------------------- -// -EXPORT_C HBufC* CAppMngr2InfoBase::SizeStringWithUnitsL( TInt64 aSizeInBytes ) - { - HBufC* dispString = NULL; - if( aSizeInBytes <= KMegaByte ) - { - TInt kiloBytes = DivideAndReturnRoundedInt( aSizeInBytes, KKiloByte ); - // Temporary fix until appmngr2pluginapi is removed - // dispString = StringLoader::LoadLC( R_SWINS_UNIT_KILOBYTE, kiloBytes ); - _LIT( KKiloByte, "%N kB" ); - dispString = KKiloByte().AllocLC(); - } - else if( aSizeInBytes <= KGigaByte ) - { - TInt megaBytes = DivideAndReturnRoundedInt( aSizeInBytes, KMegaByte ); - // Temporary fix until appmngr2pluginapi is removed - // dispString = StringLoader::LoadLC( R_SWINS_UNIT_MEGABYTE, megaBytes ); - _LIT( KMegaByte, "%N MB" ); - dispString = KMegaByte().AllocLC(); - } - else // aSizeInBytes > KGigaByte - { - TInt gigaBytes = DivideAndReturnRoundedInt( aSizeInBytes, KGigaByte ); - // Temporary fix until appmngr2pluginapi is removed - // dispString = StringLoader::LoadLC( R_SWINS_UNIT_GIGABYTE, gigaBytes ); - _LIT( KGigaByte, "%N GB" ); - dispString = KGigaByte().AllocLC(); - } - - TPtr ptr = dispString->Des(); - AknTextUtils::DisplayTextLanguageSpecificNumberConversion( ptr ); - - CleanupStack::Pop( dispString ); - return dispString; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::ReadMenuItemDataFromResourceL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoBase::ReadMenuItemDataFromResourceL( - TInt aResourceId, CEikMenuPaneItem::SData& aMenuItemData ) - { - TResourceReader reader; - iRuntime.EikonEnv().CreateResourceReaderLC( reader, aResourceId ); - - aMenuItemData.iCommandId = reader.ReadInt32(); - aMenuItemData.iCascadeId = reader.ReadInt32(); - aMenuItemData.iFlags = reader.ReadInt32(); - aMenuItemData.iText.Copy( reader.ReadTPtrC() ); - aMenuItemData.iExtraText = reader.ReadTPtrC(); - // bmpfile, bmpid, bmpmask, and extension ignored - - CleanupStack::PopAndDestroy(); // resource reader - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::Location() -// --------------------------------------------------------------------------- -// -EXPORT_C TAppMngr2Location CAppMngr2InfoBase::Location() const - { - return iLocation; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::LocationDrive() -// --------------------------------------------------------------------------- -// -EXPORT_C TDriveUnit CAppMngr2InfoBase::LocationDrive() const - { - return iLocationDrive; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoBase::CAppMngr2InfoBase() -// --------------------------------------------------------------------------- -// -CAppMngr2InfoBase::CAppMngr2InfoBase( CAppMngr2Runtime& aRuntime, - RFs& aFsSession ) : iFs( aFsSession ), iRuntime( aRuntime ) - { - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2infoiterator.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2infoiterator.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,179 +0,0 @@ -/* -* 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: Implements MCUIInfoIterator API for CCUIDetailsDialog -* -*/ - - -#include "appmngr2infoiterator.h" // CAppMngr2InfoIterator -#include "appmngr2infobase.h" // CAppMngr2InfoBase -#include // CDesC8Array -#include // StringLoader -#include // Resource IDs - -const TInt KGranularity = 8; - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::CAppMngr2InfoIterator() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2InfoIterator::CAppMngr2InfoIterator( CAppMngr2InfoBase& aInfo, - TAppMngr2InfoType aInfoType ) : iInfo( aInfo ), iInfoType( aInfoType ) - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::BaseConstructL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::BaseConstructL() - { - iKeys = new ( ELeave ) CDesCArrayFlat( KGranularity ); - iValues = new ( ELeave ) CDesCArrayFlat( KGranularity ); - SetAllFieldsL(); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::~CAppMngr2InfoIterator() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2InfoIterator::~CAppMngr2InfoIterator() - { - if( iKeys ) - { - iKeys->Reset(); - delete iKeys; - } - if( iValues ) - { - iValues->Reset(); - delete iValues; - } - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::HasNext() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool CAppMngr2InfoIterator::HasNext() const - { - TInt keysCount = iKeys->Count(); - return ( keysCount > 0 && keysCount > iCurrentIndex ); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::Next() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::Next( TPtrC& aKey, TPtrC& aValue ) - { - aKey.Set( ( *iKeys )[ iCurrentIndex ] ); - aValue.Set( ( *iValues )[ iCurrentIndex ] ); - iCurrentIndex++; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::Reset() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::Reset() - { - iCurrentIndex = 0; - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::SetFieldL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::SetFieldL( TInt aResourceId, const TDesC& aValue ) - { - HBufC* fieldName = StringLoader::LoadLC( aResourceId ); - iKeys->AppendL( fieldName->Des() ); - CleanupStack::PopAndDestroy( fieldName ); - iValues->AppendL( aValue ); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::SetAllFieldsL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::SetAllFieldsL() - { - SetFieldL( R_SWCOMMON_DETAIL_NAME, iInfo.Name() ); - SetStatusL(); - SetLocationL(); - SetFieldL( R_SWCOMMON_DETAIL_APPSIZE, iInfo.Details() ); - SetOtherFieldsL(); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::SetStatusL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::SetStatusL() - { - HBufC* status = NULL; - if( iInfoType == EAppMngr2StatusInstalled ) - { - status = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_INSTALLED ); - } - else // iInfoType is EAppMngr2StatusNotInstalled - { - status = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_NOT_INSTALLED ); - } - SetFieldL( R_SWCOMMON_DETAIL_STATUS, *status ); - CleanupStack::PopAndDestroy( status ); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::SetLocationL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::SetLocationL() - { - TChar driveChar; - RFs::DriveToChar( iInfo.LocationDrive(), driveChar ); - const TInt KSingleLetter = 1; - TBuf driveLetter; - driveLetter.Append( driveChar ); - - HBufC* memory = NULL; - if( iInfo.Location() == EAppMngr2LocationMemoryCard ) - { - memory = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_MMC, driveLetter ); - } - else if( iInfo.Location() == EAppMngr2LocationMassStorage ) - { - memory = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_MASS_STORAGE, driveLetter ); - } - else - { - memory = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_DEVICE, driveLetter ); - } - SetFieldL( R_SWCOMMON_DETAIL_LOCATION, *memory ); - CleanupStack::PopAndDestroy( memory ); - } - -// --------------------------------------------------------------------------- -// CAppMngr2InfoIterator::SetOtherFieldsL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2InfoIterator::SetOtherFieldsL() - { - // empty default implementation - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2packageinfo.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2packageinfo.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2008 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: PackageInfo implementation -* -*/ - - -#include "appmngr2packageinfo.h" -#include // StringLoader -#include // CAknQueryDialog -//#include // Resource IDs - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2PackageInfo::ConstructL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2PackageInfo::ConstructL() - { - CAppMngr2InfoBase::ConstructL(); // base class - } - -// --------------------------------------------------------------------------- -// CAppMngr2PackageInfo::~CAppMngr2PackageInfo() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2PackageInfo::~CAppMngr2PackageInfo() - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2PackageInfo::CAppMngr2PackageInfo() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2PackageInfo::CAppMngr2PackageInfo( CAppMngr2Runtime& aRuntime, - RFs& aFsSession ) : CAppMngr2InfoBase( aRuntime, aFsSession ) - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2PackageInfo::ShowDeleteConfirmationQueryL() -// --------------------------------------------------------------------------- -// -EXPORT_C TBool CAppMngr2PackageInfo::ShowDeleteConfirmationQueryL() - { - /* Temporary fix until appmngr2pluginapi is removed - - HBufC* deleteQuery = StringLoader::LoadLC( R_AM_DELETEQUERY, Name() ); - - CAknQueryDialog* dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone ); - TBool okToDelete = dlg->ExecuteLD( R_APPMNGR2_YES_NO_CONFIRMATION_QUERY, *deleteQuery ); - CleanupStack::PopAndDestroy( deleteQuery ); - - return okToDelete; - */ - return ETrue; - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2recognizedfile.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2recognizedfile.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,97 +0,0 @@ -/* -* Copyright (c) 2008 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: Class that contains file name and it's MIME type -* -*/ - - -#include "appmngr2recognizedfile.h" // CAppMngr2RecognizedFile -#include // TDataType - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile::NewL() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2RecognizedFile* CAppMngr2RecognizedFile::NewL( - const TDesC& aFileName, const TDataType& aDataType ) - { - CAppMngr2RecognizedFile* self = new (ELeave) CAppMngr2RecognizedFile; - CleanupStack::PushL( self ); - self->iFileName = aFileName.AllocL(); - self->iDataType = new (ELeave) TDataType( aDataType ); - CleanupStack::Pop( self ); - return self; - } - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile::NewL() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2RecognizedFile* CAppMngr2RecognizedFile::NewL( - HBufC* aFileName, HBufC* aMimeType ) - { - CAppMngr2RecognizedFile* self = new (ELeave) CAppMngr2RecognizedFile; - CleanupStack::PushL( self ); - - TBuf8 dataType; - dataType.Copy( *aMimeType ); - self->iDataType = new (ELeave) TDataType( dataType ); - - // takes ownership of the parameters, may not leave after this - self->iFileName = aFileName; - delete aMimeType; - - CleanupStack::Pop( self ); - return self; - } - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile::FileName() -// --------------------------------------------------------------------------- -// -EXPORT_C const TDesC& CAppMngr2RecognizedFile::FileName() - { - return *iFileName; - } - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile:: -// --------------------------------------------------------------------------- -// -EXPORT_C const TDataType& CAppMngr2RecognizedFile::DataType() - { - return *iDataType; - } - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile::~CAppMngr2RecognizedFile() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2RecognizedFile::~CAppMngr2RecognizedFile() - { - delete iFileName; - delete iDataType; - } - -// --------------------------------------------------------------------------- -// CAppMngr2RecognizedFile::CAppMngr2RecognizedFile() -// --------------------------------------------------------------------------- -// -CAppMngr2RecognizedFile::CAppMngr2RecognizedFile() - { - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/src/appmngr2runtime.cpp --- a/appinstall_plat/appmngr2runtimeapi/src/appmngr2runtime.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +0,0 @@ -/* -* Copyright (c) 2008 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: Base class implementation for AppMngr2 plug-ins -* -*/ - - -#include "appmngr2runtime.h" // CAppMngr2Runtime -#include "appmngr2driveutils.h" // TAppMngr2DriveUtils -#include "appmngr2debugutils.h" // FLOG macros -#include // REComSession -#include // CEikonEnv - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::NewL() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2Runtime* CAppMngr2Runtime::NewL( TUid aImplementationUid, - MAppMngr2RuntimeObserver &aObserver ) - { - FLOG( "CAppMngr2Runtime::NewL( 0x%08x )", aImplementationUid.iUid ); - TUid destructorIDKey; - TAny* ptr = REComSession::CreateImplementationL( aImplementationUid, - destructorIDKey, &aObserver ); - CAppMngr2Runtime* self = reinterpret_cast( ptr ); - if( self ) - { - CleanupStack::PushL( self ); - self->iDtorIDKey = destructorIDKey; - self->ConstructL( aImplementationUid ); - CleanupStack::Pop( self ); - } - return self; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::~CAppMngr2Runtime() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2Runtime::~CAppMngr2Runtime() - { - FLOG( "CAppMngr2Runtime::~CAppMngr2Runtime( 0x%08x )", iRuntimeUid.iUid ); - REComSession::DestroyedImplementation( iDtorIDKey ); - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::RuntimeUid() -// --------------------------------------------------------------------------- -// -EXPORT_C const TUid CAppMngr2Runtime::RuntimeUid() const - { - return iRuntimeUid; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::AddNearestResourceFileL() -// --------------------------------------------------------------------------- -// -EXPORT_C TInt CAppMngr2Runtime::AddNearestResourceFileL( const TDesC& aFileName ) - { - TFileName* fullName = TAppMngr2DriveUtils::NearestResourceFileLC( aFileName, - EikonEnv().FsSession() ); - TInt resourceId = EikonEnv().AddResourceFileL( *fullName ); - CleanupStack::PopAndDestroy( fullName ); - return resourceId; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::FullBitmapFileNameLC() -// --------------------------------------------------------------------------- -// -EXPORT_C HBufC* CAppMngr2Runtime::FullBitmapFileNameLC( const TDesC& aBitmapFile ) - { - HBufC* fullName = TAppMngr2DriveUtils::FullBitmapFileNameLC( aBitmapFile, - EikonEnv().FsSession() ); - return fullName; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::EikonEnv() -// --------------------------------------------------------------------------- -// -EXPORT_C CEikonEnv& CAppMngr2Runtime::EikonEnv() - { - if( !iCachedEikonEnv ) - { - iCachedEikonEnv = CEikonEnv::Static(); - } - return *iCachedEikonEnv; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::Observer() -// --------------------------------------------------------------------------- -// -EXPORT_C MAppMngr2RuntimeObserver& CAppMngr2Runtime::Observer() - { - return iObserver; - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::GetAdditionalDirsToScanL() -// --------------------------------------------------------------------------- -// -EXPORT_C void CAppMngr2Runtime::GetAdditionalDirsToScanL( RFs& /*aFsSession*/, - RPointerArray& /*aDirs*/ ) - { - // no additional directories by default - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::CAppMngr2Runtime() -// --------------------------------------------------------------------------- -// -EXPORT_C CAppMngr2Runtime::CAppMngr2Runtime( MAppMngr2RuntimeObserver &aObserver ) - : iObserver( aObserver ) - { - } - -// --------------------------------------------------------------------------- -// CAppMngr2Runtime::ConstructL() -// --------------------------------------------------------------------------- -// -void CAppMngr2Runtime::ConstructL( TUid aImplementationUid ) - { - iRuntimeUid = aImplementationUid; - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/bwins/appmngr2runtimeapitestu.def --- a/appinstall_plat/appmngr2runtimeapi/tsrc/bwins/appmngr2runtimeapitestu.def Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -EXPORTS - ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest.cfg --- a/appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest.cfg Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,171 +0,0 @@ -// -// 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: AppMngr2 STIF test configuration file -// - - -// Common definitions to all test cases -[Define] -KNumberToRepeatOOMTest 50 -KSisxPluginUid 20016BF6 -KMidletPluginUid 20016BF8 -KWidgetPluginUid 20016BFA -[Enddefine] - - -// All tests combined into one test case as subroutines for ATS3. -// This is to make sure that tests are run sequentially. Tests will -// fail if they are run in parallel (at most one installer instance -// can be active at a time). -[Test] -title AppMngr2 Runtime API Tests -callsub AppMngr2_OOM_Test -bringtoforeground -callsub AppMngr2_SISX_Test -callsub AppMngr2_Widget_Test -sendtobackground -[Endtest] - - -[Sub AppMngr2_OOM_Test] -print AppMngr2_OOM_Test -create appmngr2runtimeapitest test - -oomignorefailure ON -loop KNumberToRepeatOOMTest -oomheapfailnext LOOP_COUNTER -test LoadAllPlugins -endloop -oomignorefailure OFF -oomheaptonormal - -delete test -[EndSub] - - -[Sub AppMngr2_SISX_Test] -print AppMngr2_SISX_Test -create appmngr2runtimeapitest test - -test CheckFilesExist e:\testing\data\ sistest.sisx - -test LoadPlugin KSisxPluginUid -test CheckPluginsLoaded KSisxPluginUid -test LoadIcons -test GetAdditionalDirsToScan - -test GetInstallationFiles e:\testing\data\ -test CheckInstallationFiles sistest.sisx - -// Commented out because Details dialog does not get presskey events -//test ShowInstallationFileDetails sistest.sisx -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartInstallFile sistest.sisx -pause 2000 -presskey global EKeyDevice0 // Confirm install -pause 2000 -presskey global EKeyDevice0 // Accept untrusted -pause 2000 -presskey global EKeyDevice0 // Owerwrite existing (if present) -pause 2000 -presskey global EKeyDevice0 // Additional press (if some of the above missed) -waittestclass test -test CheckInstallEnded - -test GetInstalledApps -test CheckAppInstalled sistest - -// Commented out because Details dialog does not get presskey events -//test ShowInstalledDetails sistest -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartUninstallApp sistest -pause 2000 -presskey global EKeyDevice0 // Accept uninstall -pause 2000 -presskey global EKeyDevice0 // Additional press (if the above missed) -waittestclass test -test CheckUninstallEnded - -delete test -[EndSub] - - -[Sub AppMngr2_Widget_Test] -print AppMngr2_Widget_Test -create appmngr2runtimeapitest test - -test CheckFilesExist e:\testing\data\ widgettest.wgz - -test LoadPlugin KWidgetPluginUid -test CheckPluginsLoaded KWidgetPluginUid -test LoadIcons -test GetAdditionalDirsToScan - -test GetInstallationFiles e:\testing\data\ -test CheckInstallationFiles widgettest.wgz - -// Commented out because Details dialog does not get presskey events -//test ShowInstallationFileDetails widgettest.wgz -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartInstallFile widgettest.wgz -pause 2000 -presskey global EKeyDevice0 // Confirm install (and overwrite existing if present) -pause 2000 -presskey global EKeyDevice0 // Select internal memory -pause 2000 -presskey global EKeyDevice0 // Additional press (if some of the above missed) -waittestclass test -test CheckInstallEnded - -test GetInstalledApps -test CheckAppInstalled widgettest - -// Commented out because Details dialog does not get presskey events -//test ShowInstalledDetails widgettest -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartUninstallApp widgettest -pause 2000 -presskey global EKeyDevice0 // Accept uninstall -pause 2000 -presskey global EKeyDevice0 // Additional press (if the above missed) -waittestclass test -test CheckUninstallEnded - -delete test -[EndSub] - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest_winscw.cfg --- a/appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest_winscw.cfg Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,171 +0,0 @@ -// -// 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: AppMngr2 STIF test configuration file for WINSCW emulator -// - - -// Common definitions to all test cases -[Define] -KNumberToRepeatOOMTest 50 -KSisxPluginUid 20016BF6 -KMidletPluginUid 20016BF8 -KWidgetPluginUid 20016BFA -[Enddefine] - - -// All tests combined into one test case as subroutines for ATS3. -// This is to make sure that tests are run sequentially. Tests will -// fail if they are run in parallel (at most one installer instance -// can be active at a time). -[Test] -title AppMngr2 Runtime API Tests -callsub AppMngr2_OOM_Test -bringtoforeground -callsub AppMngr2_SISX_Test -callsub AppMngr2_Widget_Test -sendtobackground -[Endtest] - - -[Sub AppMngr2_OOM_Test] -print AppMngr2_OOM_Test -create appmngr2runtimeapitest test - -oomignorefailure ON -loop KNumberToRepeatOOMTest -oomheapfailnext LOOP_COUNTER -test LoadAllPlugins -endloop -oomignorefailure OFF -oomheaptonormal - -delete test -[EndSub] - - -[Sub AppMngr2_SISX_Test] -print AppMngr2_SISX_Test -create appmngr2runtimeapitest test - -test CheckFilesExist e:\testing\data\ sistest_winscw.sisx - -test LoadPlugin KSisxPluginUid -test CheckPluginsLoaded KSisxPluginUid -test LoadIcons -test GetAdditionalDirsToScan - -test GetInstallationFiles e:\testing\data\ -test CheckInstallationFiles sistest_winscw.sisx - -// Commented out because Details dialog does not get presskey events -//test ShowInstallationFileDetails sistest_winscw.sisx -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartInstallFile sistest_winscw.sisx -pause 2000 -presskey global EKeyDevice0 // Confirm install -pause 2000 -presskey global EKeyDevice0 // Accept untrusted -pause 2000 -presskey global EKeyDevice0 // Owerwrite existing (if present) -pause 2000 -presskey global EKeyDevice0 // Additional press (if some of the above missed) -waittestclass test -test CheckInstallEnded - -test GetInstalledApps -test CheckAppInstalled sistest - -// Commented out because Details dialog does not get presskey events -//test ShowInstalledDetails sistest -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartUninstallApp sistest -pause 2000 -presskey global EKeyDevice0 // Accept uninstall -pause 2000 -presskey global EKeyDevice0 // Additional press (if the above missed) -waittestclass test -test CheckUninstallEnded - -delete test -[EndSub] - - -[Sub AppMngr2_Widget_Test] -print AppMngr2_Widget_Test -create appmngr2runtimeapitest test - -test CheckFilesExist e:\testing\data\ widgettest.wgz - -test LoadPlugin KWidgetPluginUid -test CheckPluginsLoaded KWidgetPluginUid -test LoadIcons -test GetAdditionalDirsToScan - -test GetInstallationFiles e:\testing\data\ -test CheckInstallationFiles widgettest.wgz - -// Commented out because Details dialog does not get presskey events -//test ShowInstallationFileDetails widgettest.wgz -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartInstallFile widgettest.wgz -pause 2000 -presskey global EKeyDevice0 // Confirm install (and overwrite existing if present) -pause 2000 -presskey global EKeyDevice0 // Select internal memory -pause 2000 -presskey global EKeyDevice0 // Additional press (if some of the above missed) -waittestclass test -test CheckInstallEnded - -test GetInstalledApps -test CheckAppInstalled widgettest - -// Commented out because Details dialog does not get presskey events -//test ShowInstalledDetails widgettest -//pause 2000 -//presskey global EKeyDevice0 // Ok to close details dialog -//pause 2000 -//presskey global EKeyDevice0 // Additional press (if the above missed) -//waittestclass test -//test CheckShowDetailsEnded - -test StartUninstallApp widgettest -pause 2000 -presskey global EKeyDevice0 // Accept uninstall -pause 2000 -presskey global EKeyDevice0 // Additional press (if the above missed) -waittestclass test -test CheckUninstallEnded - -delete test -[EndSub] - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/sistest.sisx Binary file appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/sistest.sisx has changed diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/sistest_winscw.sisx Binary file appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/sistest_winscw.sisx has changed diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/widgettest.wgz Binary file appinstall_plat/appmngr2runtimeapi/tsrc/data/mmc/widgettest.wgz has changed diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/make_all.bat --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/make_all.bat Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: Utility script to create test installation files -@rem - - - -cd sistest -call make_sistest_sisx.bat -cd ..\widgettest -call make_widgettest_wgz.bat -cd .. diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/bld.inf --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/bld.inf Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -/* -* Copyright (c) 2008 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: Build information file for sistest -* -*/ - - -PRJ_PLATFORMS -DEFAULT - -PRJ_MMPFILES -sistest.mmp diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/make_sistest_sisx.bat --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/make_sistest_sisx.bat Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: Utility script to create test sisx files -@rem - - -call bldmake bldfiles -call abld build armv5 urel -call abld build winscw udeb -makesis sistest.pkg -makesis sistest_winscw.pkg -signsis sistest.sis sistest.sisx selfsign.cer selfsign.key -signsis sistest_winscw.sis sistest_winscw.sisx selfsign.cer selfsign.key -del /F/Q ..\..\data\mmc\sistest.sisx -move sistest.sisx ..\..\data\mmc\. -del /F/Q ..\..\data\mmc\sistest_winscw.sisx -move sistest_winscw.sisx ..\..\data\mmc\. -del sistest.sis -del sistest_winscw.sis -call abld reallyclean -call bldmake clean diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/selfsign.cer --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/selfsign.cer Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEOzCCA/ugAwIBAgIBATAJBgcqhkjOOAQDMEMxDTALBgNVBAMTBFRlc3QxFTAT -BgNVBAsTDFM2MCBTZWN1cml0eTEOMAwGA1UEChMFTm9raWExCzAJBgNVBAYTAkZJ -MB4XDTA4MTAwODEzMDY0MFoXDTE4MTAwNjEzMDY0MFowQzENMAsGA1UEAxMEVGVz -dDEVMBMGA1UECxMMUzYwIFNlY3VyaXR5MQ4wDAYDVQQKEwVOb2tpYTELMAkGA1UE -BhMCRkkwggM6MIICLQYHKoZIzjgEATCCAiACggEBANeyGEpY5ifjJHot7yVoQ3sw -Yz0EOM+M8kVmy1N3IEBqMFedXcq9DRKnGOXcZuTglsBk1qPiqsC3tsfWtnXphqcr -eaOuFO2+z9P1bZ0Bm1k9qIrLAn+CtCBQqtDvoolu590swbZzdhACWGY+dtqyOfDZ -bsja+4fi8VmwRPFlmk5EtsCoYSZrM1yXeRiDyALCpHhVfKI6PtIfrRiuJtlMsVG3 -eOLciEuNGK7TuVnLxRrevqXA5YUM+MwQVvQhGp/7VcSM/sqd9e+RDp8bcwNEOCQg -I8CW7oNnG4yJCTgC6Zbrxg/LUOibSSYfDByRjtTS+NLiLlyVGf7VFsk3GhF4yX8C -FQCPR3MImAja9ycDhMOa8JdA7rMVcQKCAQAzB7Lcc4Zq4IEwR4zg/UeguuphJfI+ -WHPL4eiYXg1Xw2LviIAdQi2BdnPgB80SR8Rx21J2LmRz3hu33O+pJZl2ctkFxo9c -UjeCyUfX07E2g2Jdlyq0hT0LSAW2LmZMtcxxbBl77wUrvdsa3OECsNh42rW7xDcZ -R5AslyoGVZN1N53ygYEUv1159ZMsqQUpVyLQbFpicgdLp5B5DOlZp1k05auzTMdZ -ywaZJy+oUwBfyvzyC07OVkdGMh/rQhmwcWuREMhXE8B5IMQg/o4qmSQ6spZoIMn2 -vckroWw/IfWu9/uK8IBP6oruApafPJMMYa3ndhfQoosQxaI6DmEB7Qs+A4IBBQAC -ggEAD94sGJsW9hBGT0zEs7KdopF/rZr4OCTYLQwmT6D8j5u7VZZFePtkjveM7Ejx -TXzA6L9+gGzCYWaBtaqelNCA4wOBCmKbgna39xwkXRuRVM47JbdUFfQeOzuQlXEk -R/0fdbuYz8CkPan5qxRqjknixeMPWAQY7hJNcKgZ8TpzpIhRU1k4vlVADbwG32qj -ZlbRcEbCb6xQNVuMx278NhdabWDgR5PoFowIt8X7cxuD1IcrZyybbymitlhDicUo -mSVjSU8aAnYNqUvjD/+oxSZth1IwXfZiU/I+/h+bzdg93Y9nNcokr0z1y5Xwh7wm -rr13hozzWlqi4pnaP6R2pcZRtjAJBgcqhkjOOAQDAy8AMCwCFFXTpn4dVyy/nokP -x1Sp3NQ/tQxsAhQsnyBB/d0nET/eTAPyiAi/1uswkA== ------END CERTIFICATE----- diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/selfsign.key --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/selfsign.key Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ ------BEGIN DSA PRIVATE KEY----- -MIIDPQIBAAKCAQEA17IYSljmJ+Mkei3vJWhDezBjPQQ4z4zyRWbLU3cgQGowV51d -yr0NEqcY5dxm5OCWwGTWo+KqwLe2x9a2demGpyt5o64U7b7P0/VtnQGbWT2oissC -f4K0IFCq0O+iiW7n3SzBtnN2EAJYZj522rI58NluyNr7h+LxWbBE8WWaTkS2wKhh -JmszXJd5GIPIAsKkeFV8ojo+0h+tGK4m2UyxUbd44tyIS40YrtO5WcvFGt6+pcDl -hQz4zBBW9CEan/tVxIz+yp3175EOnxtzA0Q4JCAjwJbug2cbjIkJOALpluvGD8tQ -6JtJJh8MHJGO1NL40uIuXJUZ/tUWyTcaEXjJfwIVAI9HcwiYCNr3JwOEw5rwl0Du -sxVxAoIBADMHstxzhmrggTBHjOD9R6C66mEl8j5Yc8vh6JheDVfDYu+IgB1CLYF2 -c+AHzRJHxHHbUnYuZHPeG7fc76klmXZy2QXGj1xSN4LJR9fTsTaDYl2XKrSFPQtI -BbYuZky1zHFsGXvvBSu92xrc4QKw2HjatbvENxlHkCyXKgZVk3U3nfKBgRS/XXn1 -kyypBSlXItBsWmJyB0unkHkM6VmnWTTlq7NMx1nLBpknL6hTAF/K/PILTs5WR0Yy -H+tCGbBxa5EQyFcTwHkgxCD+jiqZJDqylmggyfa9ySuhbD8h9a73+4rwgE/qiu4C -lp88kwxhred2F9CiixDFojoOYQHtCz4CggEAD94sGJsW9hBGT0zEs7KdopF/rZr4 -OCTYLQwmT6D8j5u7VZZFePtkjveM7EjxTXzA6L9+gGzCYWaBtaqelNCA4wOBCmKb -gna39xwkXRuRVM47JbdUFfQeOzuQlXEkR/0fdbuYz8CkPan5qxRqjknixeMPWAQY -7hJNcKgZ8TpzpIhRU1k4vlVADbwG32qjZlbRcEbCb6xQNVuMx278NhdabWDgR5Po -FowIt8X7cxuD1IcrZyybbymitlhDicUomSVjSU8aAnYNqUvjD/+oxSZth1IwXfZi -U/I+/h+bzdg93Y9nNcokr0z1y5Xwh7wmrr13hozzWlqi4pnaP6R2pcZRtgIUAv4J -AwXM+xLc/vFN22iRKI11evw= ------END DSA PRIVATE KEY----- diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.cpp --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.cpp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2008 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: Basic console application for installation testing -* -*/ - - -#include "sistest.h" -#include -#include -#include // Console - -_LIT( KTextConsoleTitle, "Console" ); -_LIT( KTextFailed, " failed, leave code = %d" ); -_LIT( KTextPressAnyKey, " [press any key]\n" ); - -LOCAL_D CConsoleBase* console; - -LOCAL_C void MainL() - { - console->Write(_L("Hello, world!\n")); - } - -LOCAL_C void DoStartL() - { - CActiveScheduler* scheduler = new (ELeave) CActiveScheduler(); - CleanupStack::PushL(scheduler); - CActiveScheduler::Install(scheduler); - - MainL(); - - CleanupStack::PopAndDestroy(scheduler); - } - -GLDEF_C TInt E32Main() - { - __UHEAP_MARK; - CTrapCleanup* cleanup = CTrapCleanup::New(); - - TRAPD( createError, console = Console::NewL( KTextConsoleTitle, - TSize( KConsFullScreen,KConsFullScreen ) ) ); - if( createError ) - { - return createError; - } - - TRAPD( mainError, DoStartL() ); - if( mainError ) - { - console->Printf(KTextFailed, mainError); - } - console->Printf(KTextPressAnyKey); - console->Getch(); - - delete console; - delete cleanup; - __UHEAP_MARKEND; - return KErrNone; - } - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.h --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.h Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2008 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: Basic console application for installation testing -* -*/ - - -#ifndef __SISTEST_H__ -#define __SISTEST_H__ - -#include - -GLDEF_C TInt E32Main(); - -#endif // __SISTEST_H__ - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.mmp --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.mmp Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/* -* Copyright (c) 2008 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: Project definition file for sistest -* -*/ - - -#include - -TARGET sistest.exe -TARGETTYPE exe -UID 0 0xE4F8641B - -USERINCLUDE . -APP_LAYER_SYSTEMINCLUDE - -SOURCEPATH . -SOURCE sistest.cpp - -LIBRARY euser.lib - -SMPSAFE - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.pkg --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest.pkg Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2008 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: Installation package file for sistest -; - - -; UID is the exe's UID -#{"sistest"},(0xE4F8641B),1,0,0 - -; S60 platform dependencies for S60 3.0 and 5.0 -[0x101F7961],0,0,0,{"Series60ProductID"} -[0x1028315F],0,0,0,{"Series60ProductID"} - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -; Files -"\epoc32\release\armv5\urel\sistest.exe" - "c:\sys\bin\sistest.exe" - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest_winscw.pkg --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/sistest/sistest_winscw.pkg Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2008 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: Installation package file for sistest for WINSCW emulator -; - - -; UID is the exe's UID -#{"sistest"},(0xE4F8641B),1,0,0 - -; S60 platform dependencies for S60 3.0 and 5.0 -[0x101F7961],0,0,0,{"Series60ProductID"} -[0x1028315F],0,0,0,{"Series60ProductID"} - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -; Files -"\epoc32\release\winscw\udeb\sistest.exe" - "c:\sys\bin\sistest.exe" - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/Info.plist Binary file appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/Info.plist has changed diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/make_widgettest_wgz.bat --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/make_widgettest_wgz.bat Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: Utility script to create test widget file -@rem - - -cd .. -zip widgettest.zip widgettest\Info.plist widgettest\widgettest.html widgettest\widgettest.css widgettest\widgettest.js -ren widgettest.zip widgettest.wgz -del /F/Q ..\data\mmc\widgettest.wgz -move widgettest.wgz ..\data\mmc\. -cd widgettest diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/widgettest.css --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/widgettest.css Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -#mainView { - font-size: 14px; - color: blue; -} - -h2 { - text-align: center; - color: black; -} - -.button { - font-size: 14px; - color: blue; - background-color: grey; - margin: 20px 0px 0px 150px; -} - -#resultView { - text-align: center; - color: blue; - font-size: 16pt; - font-weight: bold; - display: none; -} - diff -r d1838696558c -r 9dcba1ee99f7 appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/widgettest.html --- a/appinstall_plat/appmngr2runtimeapi/tsrc/data_src/widgettest/widgettest.html Thu Oct 14 14:11:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - - - - -