os/ossrv/genericservices/systemagent/src/inc/halfiles.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericservices/systemagent/src/inc/halfiles.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// HALSettings header file 
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @internalComponent
    1.24 +*/
    1.25 +
    1.26 +#ifndef HALFILES_H
    1.27 +#define HALFILES_H
    1.28 +
    1.29 +#include <hal.h>
    1.30 +#include <f32file.h>
    1.31 +#include <bautils.h>
    1.32 +#include <bacline.h> 
    1.33 +
    1.34 +/** HAL attributes data folder */
    1.35 +_LIT(KHalFilePath,"_:\\private\\102825B1\\");
    1.36 +/** HAL attributes data file name */
    1.37 +_LIT(KHalFileName,"HAL.DAT");
    1.38 +/** Buffer descriptor for holding complete HAL data file path and name. */
    1.39 +typedef TBuf<28> THalFileName; 
    1.40 +
    1.41 +
    1.42 +
    1.43 +/**First 4 bytes in the HAL.DAT ('h' 'a' 'l' and version '0')
    1.44 +*/
    1.45 +const TUint32 typePrefix = 0x006C6168; 
    1.46 +
    1.47 +/**
    1.48 +HALSettings HAL.DAT header class
    1.49 +This class is used to validate HAL.DAT file header
    1.50 +*/
    1.51 +class THalFileHeader
    1.52 +	{
    1.53 +	TUint32 iMachineUid;	//Machine UID	
    1.54 +	TUint32 iTypePrefix;	//HAL.DAT first 4 bytes 'h' 'a' 'l' and version '0'
    1.55 +	public:
    1.56 +	THalFileHeader(TUint32 aMachineUid, TUint32 aTypePrefix);
    1.57 +	TInt ValidateHeader();
    1.58 +	};
    1.59 +	
    1.60 +/** Function to manage command line
    1.61 +*/	
    1.62 +TInt HALSettingsManager();
    1.63 +
    1.64 +/** Function to Initialise HAL attribute
    1.65 +*/
    1.66 +TInt InitialiseHAL();
    1.67 +/** Function to Persist HAL attribute
    1.68 +*/
    1.69 +TInt PersistHAL();
    1.70 +
    1.71 +
    1.72 +#endif //HALFILES_H