sl@0: // Copyright (c) 2005-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 the License "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: // Shared Chunks in its implementation. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file Kernel side interfaces to example data converter device driver which uses sl@0: @publishedPartner sl@0: @prototype 9.1 sl@0: */ sl@0: sl@0: #ifndef __CONVERT1_DEV_H__ sl@0: #define __CONVERT1_DEV_H__ sl@0: sl@0: /** sl@0: Logical Device (factory class) for 'Convert1' sl@0: */ sl@0: class DConvert1Factory : public DLogicalDevice sl@0: { sl@0: public: sl@0: DConvert1Factory(); sl@0: ~DConvert1Factory(); sl@0: // Inherited from DLogicalDevice sl@0: virtual TInt Install(); sl@0: virtual void GetCaps(TDes8& aDes) const; sl@0: virtual TInt Create(DLogicalChannelBase*& aChannel); sl@0: // Resource handling methods sl@0: TInt ClaimResource(TInt& aResourceId); sl@0: void ReleaseResource(TInt aResourceId); sl@0: private: sl@0: NFastMutex iResourceMutex; /**< Mutex to protect access to iResourceFlags */ sl@0: TUint iResourceFlags; /**< Bitfield of flags representing device resources available for use. sl@0: I.e. iResourceFlags&(1<