sl@0: // Copyright (c) 2002-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: // sl@0: sl@0: #ifndef __BM_T_PROP_LDD_H__ sl@0: #define __BM_T_PROP_LDD_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: _LIT(KPropLddFileName, "t_prop_ldd"); sl@0: _LIT(KPropLdName, "t_prop_dev"); sl@0: sl@0: /* sl@0: * RPropChannel class defines the user-side API to the RPropertyRef test LDD sl@0: */ sl@0: class RPropChannel : public RBusLogicalChannel sl@0: { sl@0: public: sl@0: enum TControl sl@0: { sl@0: EBasicTests, sl@0: }; sl@0: sl@0: struct TBasicInfo sl@0: { sl@0: TUint iCount; sl@0: TUid iCategory; sl@0: TUint iKey; sl@0: RProperty::TType iType; sl@0: }; sl@0: sl@0: sl@0: #ifndef __KERNEL_MODE__ sl@0: TInt Open() sl@0: { sl@0: return DoCreate(KPropLdName, TVersion(1,0,1), KNullUnit, NULL, NULL); sl@0: } sl@0: TInt BasicTests(TUint aCount, TUid aCategory, TUint aKey, RProperty::TType aType) sl@0: { sl@0: TBasicInfo info; sl@0: info.iCount = aCount; sl@0: info.iCategory = aCategory; sl@0: info.iKey = aKey; sl@0: info.iType = aType; sl@0: return DoControl(EBasicTests, &info); sl@0: } sl@0: #endif sl@0: }; sl@0: sl@0: #endif