diff -r 000000000000 -r 96e5fb8b040d kerneltest/e32test/examples/convert1/convert1_dev.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kerneltest/e32test/examples/convert1/convert1_dev.h Thu Dec 17 09:24:54 2009 +0200 @@ -0,0 +1,133 @@ +// Copyright (c) 2005-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: +// Shared Chunks in its implementation. +// +// + +/** + @file Kernel side interfaces to example data converter device driver which uses + @publishedPartner + @prototype 9.1 +*/ + +#ifndef __CONVERT1_DEV_H__ +#define __CONVERT1_DEV_H__ + +/** + Logical Device (factory class) for 'Convert1' +*/ +class DConvert1Factory : public DLogicalDevice + { +public: + DConvert1Factory(); + ~DConvert1Factory(); + // Inherited from DLogicalDevice + virtual TInt Install(); + virtual void GetCaps(TDes8& aDes) const; + virtual TInt Create(DLogicalChannelBase*& aChannel); + // Resource handling methods + TInt ClaimResource(TInt& aResourceId); + void ReleaseResource(TInt aResourceId); +private: + NFastMutex iResourceMutex; /**< Mutex to protect access to iResourceFlags */ + TUint iResourceFlags; /**< Bitfield of flags representing device resources available for use. + I.e. iResourceFlags&(1<