sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // HALSettings header file sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef HALFILES_H sl@0: #define HALFILES_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** HAL attributes data folder */ sl@0: _LIT(KHalFilePath,"_:\\private\\102825B1\\"); sl@0: /** HAL attributes data file name */ sl@0: _LIT(KHalFileName,"HAL.DAT"); sl@0: /** Buffer descriptor for holding complete HAL data file path and name. */ sl@0: typedef TBuf<28> THalFileName; sl@0: sl@0: sl@0: sl@0: /**First 4 bytes in the HAL.DAT ('h' 'a' 'l' and version '0') sl@0: */ sl@0: const TUint32 typePrefix = 0x006C6168; sl@0: sl@0: /** sl@0: HALSettings HAL.DAT header class sl@0: This class is used to validate HAL.DAT file header sl@0: */ sl@0: class THalFileHeader sl@0: { sl@0: TUint32 iMachineUid; //Machine UID sl@0: TUint32 iTypePrefix; //HAL.DAT first 4 bytes 'h' 'a' 'l' and version '0' sl@0: public: sl@0: THalFileHeader(TUint32 aMachineUid, TUint32 aTypePrefix); sl@0: TInt ValidateHeader(); sl@0: }; sl@0: sl@0: /** Function to manage command line sl@0: */ sl@0: TInt HALSettingsManager(); sl@0: sl@0: /** Function to Initialise HAL attribute sl@0: */ sl@0: TInt InitialiseHAL(); sl@0: /** Function to Persist HAL attribute sl@0: */ sl@0: TInt PersistHAL(); sl@0: sl@0: sl@0: #endif //HALFILES_H