commsfwtools/preparedefaultcommsdatabase/src/netmetalib.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 /**
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Cut down version of NetMeta.lib to allow Commsdat to build on the TOOLS2 platform
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file NetMetaLib.h
       
    24  @internalTechnology
       
    25 */
       
    26  
       
    27  
       
    28 #ifndef NET_META_LIB_H
       
    29 #define NET_META_LIB_H
       
    30 
       
    31 
       
    32 #include <e32base.h>
       
    33 #include <e32std.h>
       
    34 
       
    35 
       
    36 
       
    37 
       
    38 
       
    39 namespace Meta
       
    40 {
       
    41 class MMetaType;
       
    42 typedef MMetaType* (*TMetaTypeNewL)(const TAny*, const TAny*);
       
    43 
       
    44 
       
    45 struct SVDataTableEntry
       
    46     {
       
    47     TInt iOffset;
       
    48     TMetaTypeNewL iMetaNewL;
       
    49     };
       
    50     
       
    51 
       
    52 class MMetaData
       
    53 	{
       
    54 public:
       
    55 	virtual SVDataTableEntry const* GetVDataTable() const = 0;
       
    56 	virtual TUint8* GetAttribPtr(const TInt aOffset) const = 0;
       
    57 	};
       
    58 
       
    59 	
       
    60 class TMetaVTableIterator
       
    61 	{
       
    62 public:
       
    63 	IMPORT_C explicit TMetaVTableIterator(MMetaData const* aMetaData);
       
    64 	IMPORT_C ~TMetaVTableIterator();
       
    65 	IMPORT_C SVDataTableEntry const* operator++(TInt aDummy);
       
    66 protected:
       
    67     TBool IsNextEntryPresent();
       
    68 private:
       
    69 	SVDataTableEntry const* iEntry;
       
    70 	};
       
    71 	
       
    72 }
       
    73 
       
    74 
       
    75 #endif