kerneltest/e32test/buffer/d_version.h
changeset 271 dc268b18d709
equal deleted inserted replaced
269:d57b86b1867a 271:dc268b18d709
       
     1 // Copyright (c) 2010 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\buffer\d_version.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #if !defined(__D_VERSION_H__)
       
    19 #define __D_VERSION_H__
       
    20 #include <e32cmn.h>
       
    21 #ifndef __KERNEL_MODE__
       
    22 #include <e32std.h>
       
    23 #endif
       
    24 
       
    25 const TInt KNumTVersions=1+3*3*3;
       
    26 
       
    27 _LIT(KVersionTestLddName,"d_version");
       
    28 
       
    29 class RVersionTest : public RBusLogicalChannel
       
    30 	{
       
    31 public:
       
    32 	enum TControl
       
    33 		{
       
    34 		EVersionTestName,
       
    35 		EVersionTestQVS		
       
    36 		};
       
    37 
       
    38 public:
       
    39 #ifndef __KERNEL_MODE__
       
    40 	inline TInt Open()
       
    41 		{ return DoCreate(KVersionTestLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
       
    42 
       
    43 	TInt VersionTestName()
       
    44 		{ return DoControl(EVersionTestName); }
       
    45 	TInt VersionTestQVS()
       
    46 		{ return DoControl(EVersionTestQVS); }
       
    47 
       
    48 #endif
       
    49 	};
       
    50 
       
    51 #endif