datacommsserver/esockserver/test/te_mecunittest/inc/testextensions.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 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 "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 //
       
    15 // testexensions.h
       
    16 //
       
    17 
       
    18 /**
       
    19 @file
       
    20 */
       
    21 
       
    22 #ifndef TESTEXTENSIONS_H
       
    23 #define TESTEXTENSIONS_H
       
    24 
       
    25 #include <elements/metadata.h>
       
    26 
       
    27 const TUint KExtVersion1 = 1;
       
    28 const TUint KExtVersion2 = 2;
       
    29 const TUint KExtVersion3 = 3;
       
    30 const TUint KExtVersion4 = 3;
       
    31 
       
    32 class TTestExtension1 : public Meta::SMetaData
       
    33     {
       
    34 public:
       
    35     // Not an allocated UID, but its contained within the test code so doesn't matter
       
    36     enum { EUid = 0x1FFFFFF, ETypeId = 1 };
       
    37     
       
    38     TTestExtension1()
       
    39         : iVersion(KExtVersion1)
       
    40         {
       
    41         }
       
    42 
       
    43     TTestExtension1(TUint aVersion)
       
    44         : iVersion(aVersion)
       
    45         {
       
    46         }
       
    47 
       
    48     DATA_VTABLE
       
    49     
       
    50     TUint iVersion;
       
    51     };
       
    52 
       
    53 
       
    54 class TTestExtension2 : public Meta::SMetaData
       
    55     {
       
    56 public:
       
    57     // Not an allocated UID, but its contained within the test code so doesn't matter
       
    58     enum { EUid = 0x1FFFFFF, ETypeId = 2 };
       
    59     
       
    60     TTestExtension2()
       
    61         : iVersion(KExtVersion1)
       
    62         {
       
    63         }
       
    64 
       
    65     TTestExtension2(TUint aVersion)
       
    66         : iVersion(aVersion)
       
    67         {
       
    68         }
       
    69     
       
    70     DATA_VTABLE
       
    71 
       
    72     TUint iVersion;
       
    73     };
       
    74 
       
    75 
       
    76 class TTestExtension3 : public Meta::SMetaData
       
    77     {
       
    78 public:
       
    79     // Not an allocated UID, but its contained within the test code so doesn't matter
       
    80     enum { EUid = 0x1FFFFFF, ETypeId = 3 };
       
    81     
       
    82     TTestExtension3()
       
    83         : iVersion(KExtVersion1)
       
    84         {
       
    85         }
       
    86 
       
    87     TTestExtension3(TUint aVersion)
       
    88         : iVersion(aVersion)
       
    89         {
       
    90         }
       
    91     
       
    92     DATA_VTABLE
       
    93 
       
    94     TUint iVersion;
       
    95     };
       
    96 
       
    97 #endif
       
    98 // TESTEXTENSIONS
       
    99