kerneltest/e32test/dll/d_wsdextension.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test\earlyextension\d_wsdextension.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __D_WSDEXTENSION_H__
       
    19 #define __D_WSDEXTENSION_H__
       
    20 
       
    21 #include <e32cmn.h>
       
    22 #ifndef __KERNEL_MODE__
       
    23 #include <e32std.h>
       
    24 #endif
       
    25 
       
    26 _LIT(KLddName, "D_WSDEXTENSION.LDD");
       
    27 
       
    28 class RLddWsdExtension : public RBusLogicalChannel
       
    29 	{
       
    30 public:
       
    31 	enum TControl
       
    32 		{
       
    33 			EGET_STATIC_DATA = 0,
       
    34 		};
       
    35 
       
    36 	
       
    37 public:
       
    38 	inline TInt Open();
       
    39 	inline TInt Test_getStaticData(TInt& Data);
       
    40 	};
       
    41 
       
    42 #ifndef __KERNEL_MODE__
       
    43 inline TInt RLddWsdExtension::Open()
       
    44 	{ 
       
    45 		return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL, NULL, EOwnerThread); 
       
    46 	}
       
    47 inline TInt RLddWsdExtension::Test_getStaticData(TInt& Data)
       
    48 	{
       
    49 		return DoControl(EGET_STATIC_DATA, (TAny *)&Data); 
       
    50 	}
       
    51 
       
    52 #endif
       
    53 
       
    54 #endif //__D_WSDEXTENSION_H__
       
    55 
       
    56