diff -r aa99f2208aad -r b8d18c84f71c localisation/apparchitecture/apfile/aprfndr.h --- a/localisation/apparchitecture/apfile/aprfndr.h Wed Jul 28 16:03:37 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of the License "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: -// - -#ifndef __APRFNDR_H__ -#define __APRFNDR_H__ - -#include -#include -#include - -class TDriveUnitInfo; - -/** -@internalComponent -*/ -class CApaAppRegFinder : public CBase - { -public: // Construction / Destruction - IMPORT_C static CApaAppRegFinder* NewL(const RFs& aFs); - IMPORT_C static CApaAppRegFinder* NewLC(const RFs& aFs); - ~CApaAppRegFinder(); -private: // Private construction - CApaAppRegFinder(const RFs& aFs); - void ConstructL(); -public: - IMPORT_C TBool NextL(TApaAppEntry& aEntry, const RPointerArray& aForcedRegistrations); // increments a scan for all apps - IMPORT_C void FindAllAppsL(); // sets up a scan for all apps -#ifdef SYMBIAN_APPARC_APPINFO_CACHE - IMPORT_C const RArray& DriveList() const; - IMPORT_C void FindAllRemovableMediaAppsL(); // sets up a scan for all removable media apps -#endif // SYMBIAN_APPARC_APPINFO_CACHE - -private: -#ifdef SYMBIAN_APPARC_APPINFO_CACHE - void BuildDriveListL(); -#else - void GetDriveListL(); - static void BuildDriveListL(const RFs& aFs, const TDriveList& aSourceDriveList, RArray& aDestDriveList); -#endif // SYMBIAN_APPARC_APPINFO_CACHE - TInt GetFileListL(TDriveUnit aDriveUnit, const TDesC& aPathName); - void GetFolderListL(); - static void CheckErrorL(TInt aError); - TBool DoNextL(TApaAppEntry& aEntry, const RPointerArray& aForcedRegistrations, - TBool& aEntryFound); - TBool GetNextDriveAndFolder(); - -private: - enum TScanStage - { - EScanStageNonImportROM, - EScanStageImportNonROM, - EScanStageImportNonNativeResourceNonROM, - EScanStageImportROM, - EScanStageImportNonNativeResourceROM, - EScanStageComplete - }; - - -private: - CDir* iFileList; - TInt iCurrentIndexInDriveList; - TInt iCurrentIndexInFolderList; - TInt iFileIndex; - const RFs& iFs; - RPointerArray iListOfFolders; - TInt iScanStage; - RSidCheckerMap iSidCheckerMap; -#ifdef SYMBIAN_APPARC_APPINFO_CACHE - RArray iListOfDrives; - TBool iRemovableMediaDriveScan; -#else - RArray* iListOfDrives; -#endif // SYMBIAN_APPARC_APPINFO_CACHE - TUid iLastChkedApp; //Uid of the last app whose sid cheking has been done. - }; - -class TDriveUnitInfo -{ -public: - TDriveUnit iDriveUnit; - TUint iDriveAtt; -}; - -#endif // __APRFNDR_H__