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: // e32test\secure\d_sldd.h sl@0: // sl@0: // sl@0: sl@0: #ifndef __D_SLDD_H__ sl@0: #define __D_SLDD_H__ sl@0: #include sl@0: #ifndef __KERNEL_MODE__ sl@0: #include sl@0: #endif sl@0: sl@0: class TCapsTestV01 sl@0: { sl@0: public: sl@0: TVersion iVersion; sl@0: }; sl@0: sl@0: class RLddTest : public RBusLogicalChannel sl@0: { sl@0: public: sl@0: enum TControl sl@0: { sl@0: EControlTest1=0, sl@0: EGetIds, sl@0: EGetKernelConfigFlags, sl@0: ESetKernelConfigFlags, sl@0: ESetDisabledCapabilities0, sl@0: EKernelTestData, sl@0: EGetSecureInfos, sl@0: }; sl@0: enum TRequest sl@0: { sl@0: }; sl@0: enum TTestValues sl@0: { sl@0: ETest1Value = 0x07654321, sl@0: }; sl@0: sl@0: struct TIds sl@0: { sl@0: TVendorId iThreadVID; sl@0: TVendorId iProcessVID; sl@0: TSecureId iThreadSID; sl@0: TSecureId iProcessSID; sl@0: }; sl@0: sl@0: public: sl@0: inline TInt OpenLocal(); sl@0: inline TInt OpenProtected(); sl@0: inline TInt Test1(); sl@0: inline void GetIds(RLddTest::TIds& aIds); sl@0: inline TUint32 GetKernelConfigFlags(); sl@0: inline void SetKernelConfigFlags(TUint32 aNewFlags); sl@0: inline void SetDisabledCapabilities0(TUint32 aNewWord0); sl@0: inline void KernelTestData(TUint32*& aAddress, TUint32& aData); sl@0: inline void GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo); sl@0: }; sl@0: sl@0: #ifndef __KERNEL_MODE__ sl@0: inline TInt RLddTest::OpenLocal() sl@0: { return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL); } sl@0: inline TInt RLddTest::OpenProtected() sl@0: { return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL,EOwnerThread,ETrue); } sl@0: inline TInt RLddTest::Test1() sl@0: { return DoControl(EControlTest1); } sl@0: inline void RLddTest::GetIds(RLddTest::TIds& aIds) sl@0: { DoControl(EGetIds,&aIds); } sl@0: inline TUint32 RLddTest::GetKernelConfigFlags() sl@0: { return DoControl(EGetKernelConfigFlags); } sl@0: inline void RLddTest::SetKernelConfigFlags(TUint32 aNewFlags) sl@0: { DoControl(ESetKernelConfigFlags, (TAny*)aNewFlags); } sl@0: inline void RLddTest::SetDisabledCapabilities0(TUint32 aNewWord0) sl@0: { DoControl(ESetDisabledCapabilities0, (TAny*)aNewWord0); } sl@0: inline void RLddTest::KernelTestData(TUint32*& aAddress, TUint32& aData) sl@0: { DoControl(EKernelTestData, &aAddress,&aData); } sl@0: inline void RLddTest::GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo) sl@0: { DoControl(EGetSecureInfos, aThreadSecureInfo,aProcessSecureInfo); } sl@0: #endif sl@0: sl@0: #endif