tzservices/tzserver/Server/Source/tzsystemdata.cpp
changeset 81 676b6116ca93
parent 0 2e3d3ce01487
equal deleted inserted replaced
78:175a0d824084 81:676b6116ca93
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    15 
    15 
    16 #include "tzsystemdata.h"
    16 #include "tzsystemdata.h"
    17 #include <bautils.h>
    17 #include <bautils.h>
    18 #include <tzlocalizedcityrecord.h>
    18 #include <tzlocalizedcityrecord.h>
    19 #include <tzlocalizedtimezonerecord.h>
    19 #include <tzlocalizedtimezonerecord.h>
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "tzsystemdataTraces.h"
       
    23 #endif
       
    24 
    20 
    25 
    21 // Resource File locations
    26 // Resource File locations
    22 _LIT(KTzLocalizationTimeZoneResourceFileName,"\\Resource\\TimeZoneLocalization\\timezones.rSC");
    27 _LIT(KTzLocalizationTimeZoneResourceFileName,"\\Resource\\TimeZoneLocalization\\timezones.rSC");
    23 _LIT(KTzLocalizationGroupResourceFileName,"\\Resource\\TimeZoneLocalization\\timezonegroups.rSC");
    28 _LIT(KTzLocalizationGroupResourceFileName,"\\Resource\\TimeZoneLocalization\\timezonegroups.rSC");
    24 _LIT(KFlashPath,"c:\\Resource\\TimeZoneLocalization\\");
    29 _LIT(KFlashPath,"c:\\Resource\\TimeZoneLocalization\\");
    57 Second phase contructor
    62 Second phase contructor
    58 @internalTechnology
    63 @internalTechnology
    59 */
    64 */
    60 void CTzSystemDataDb::ConstructL()
    65 void CTzSystemDataDb::ConstructL()
    61 	{
    66 	{
       
    67     
    62 	User::LeaveIfError(iFs.Connect());
    68 	User::LeaveIfError(iFs.Connect());
    63 	
    69 	
    64 	// If resource files are found on flash drive,
    70 	// If resource files are found on flash drive,
    65   	// these will be used exclusively otherwise the
    71   	// these will be used exclusively otherwise the
    66   	// default ones on ROM will be used.   
    72   	// default ones on ROM will be used.   
   160 			}
   166 			}
   161 		++i;
   167 		++i;
   162 		}
   168 		}
   163 
   169 
   164 	// If it's got to here the aId hasn't been found, so leave
   170 	// If it's got to here the aId hasn't been found, so leave
       
   171 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_ERROR, CTZSYSTEMDATADB_FINDTIMEZONERESOURCEIDL, "CTzSystemDataDb::FindTimeZoneResourceIdL:Time  zone resource id not found;aTimeZoneId=%d", aTimeZoneId );
       
   172 	
   165 	User::Leave(KErrNotFound);
   173 	User::Leave(KErrNotFound);
   166 
   174 
   167 	return KErrNotFound;	// To satisfy compiler
   175 	return KErrNotFound;	// To satisfy compiler
   168 	}
   176 	}
   169 
   177