appfw/apparchitecture/aplist/aplappregfinder.cpp
changeset 81 676b6116ca93
parent 35 13fd6fd25fe7
equal deleted inserted replaced
78:175a0d824084 81:676b6116ca93
    19 #include "../apfile/APFSTD.H"
    19 #include "../apfile/APFSTD.H"
    20 #include "../apserv/apsserv.h"				// class CApaAppListServer
    20 #include "../apserv/apsserv.h"				// class CApaAppListServer
    21 #include "../apgrfx/apprivate.h"
    21 #include "../apgrfx/apprivate.h"
    22 #include <apsidchecker.h>
    22 #include <apsidchecker.h>
    23 #include "aplapplistitem.h"					// class TApaAppEntry
    23 #include "aplapplistitem.h"					// class TApaAppEntry
    24 #include "aplappinforeader.h"				// class ApaUtils
    24 #include "aplappinforeader.h"			// class ApaUtils
       
    25 #include "OstTraceDefinitions.h"
       
    26 #ifdef OST_TRACE_COMPILER_IN_USE
       
    27 #include "aplappregfinderTraces.h"
       
    28 #endif
       
    29 	
    25 
    30 
    26 
    31 
    27 GLDEF_C void Panic(TApfPanic aPanic)
    32 GLDEF_C void Panic(TApfPanic aPanic)
    28 	{
    33 	{
    29 	_LIT(KApFilePanic,"APFILE");
    34 	_LIT(KApFilePanic,"APFILE");
    69 
    74 
    70 
    75 
    71 // Build a list of currently available drives
    76 // Build a list of currently available drives
    72 void CApaAppRegFinder::RebuildDriveListL(TScanScope aScopeOfScan)
    77 void CApaAppRegFinder::RebuildDriveListL(TScanScope aScopeOfScan)
    73 	{
    78 	{
       
    79     OstTraceDef1( OST_TRACE_CATEGORY_DEBUG, APPARC_TRACE_FLOW, CAPAAPPREGFINDER_REBUILDDRIVELISTL_ENTRY, "CApaAppRegFinder::RebuildDriveListL : aScopeOfScan=%d", aScopeOfScan);
       
    80     
    74 	iListOfDrives.Reset();
    81 	iListOfDrives.Reset();
    75 	TDriveList driveList;
    82 	TDriveList driveList;
    76 	User::LeaveIfError(iFs.DriveList(driveList));
    83 	User::LeaveIfError(iFs.DriveList(driveList));
    77 
    84 
    78 	// Scan through all the drives in the drive list from Y to A, querying the 
    85 	// Scan through all the drives in the drive list from Y to A, querying the 
   127 	return iListOfDrives.Array();
   134 	return iListOfDrives.Array();
   128 	}
   135 	}
   129 
   136 
   130 EXPORT_C void CApaAppRegFinder::FindAllAppsL(TScanScope aScopeOfScan)
   137 EXPORT_C void CApaAppRegFinder::FindAllAppsL(TScanScope aScopeOfScan)
   131 	{
   138 	{
       
   139     OstTraceDef1( OST_TRACE_CATEGORY_DEBUG, APPARC_TRACE_FLOW, CAPAAPPREGFINDER_FINDALLAPPSL, "TScanScope passed to this API : aScopeOfScan=%d", aScopeOfScan );
       
   140     
   132 	delete iFileList;
   141 	delete iFileList;
   133 	iFileList = NULL;
   142 	iFileList = NULL;
   134 	RebuildDriveListL(aScopeOfScan);
   143 	RebuildDriveListL(aScopeOfScan);
   135 	iCurrentIndexInDriveList=-1;
   144 	iCurrentIndexInDriveList=-1;
   136 	iScanStage = EScanStageNonImportROM;
   145 	iScanStage = EScanStageNonImportROM;