syncmlfw/common/wbxml/inc/syncml/smlmetinfdtd.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Command structs for Meta Information document (DTD).
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SMLMETINFDTD_H__
       
    20 #define __SMLMETINFDTD_H__
       
    21 
       
    22 //************************************************************************
       
    23 //*  Includes
       
    24 //************************************************************************
       
    25 #include "smldef.h"
       
    26 #include "smldtd.h"
       
    27 #include "xmlelement.h"
       
    28 
       
    29 //************************************************************************
       
    30 //*  Definitions                                                          
       
    31 //************************************************************************
       
    32 typedef struct sml_metinf_anchor_s : public CXMLElement
       
    33 	{
       
    34 public:
       
    35 	SmlPcdataPtr_t	last; /* optional */
       
    36 	SmlPcdataPtr_t	next;
       
    37 
       
    38 public:
       
    39 	IMPORT_C sml_metinf_anchor_s();
       
    40 	IMPORT_C ~sml_metinf_anchor_s();
       
    41 	CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() );
       
    42 	} *SmlMetInfAnchorPtr_t, SmlMetInfAnchor_t;
       
    43 
       
    44 typedef struct sml_metinf_mem_s : public CXMLElement
       
    45 	{
       
    46 public:
       
    47 	SmlPcdataPtr_t	shared; /* optional */
       
    48 	SmlPcdataPtr_t	free;
       
    49 	SmlPcdataPtr_t	freeid;
       
    50 
       
    51 public:
       
    52 	IMPORT_C sml_metinf_mem_s();
       
    53 	IMPORT_C ~sml_metinf_mem_s();
       
    54 	CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams()	);
       
    55 	} *SmlMetInfMemPtr_t, SmlMetInfMem_t;
       
    56 
       
    57 typedef struct sml_metinf_metinf_s : public CXMLElement
       
    58 	{
       
    59 public:
       
    60 	SmlPcdataPtr_t	fieldLevel;/* opt.*/ //1.2 CHANGES: fieldLevel
       
    61 	SmlPcdataPtr_t	format;    /* opt. */
       
    62 	SmlPcdataPtr_t	type;      /* opt. */
       
    63 	SmlPcdataPtr_t	mark;      /* opt. */
       
    64 	SmlPcdataPtr_t	size;      /* opt. */
       
    65 	SmlPcdataPtr_t  nextnonce; /* opt. */
       
    66 	SmlPcdataPtr_t	version; 
       
    67 	SmlPcdataPtr_t	maxmsgsize; /* optional */
       
    68 	SmlPcdataPtr_t	maxobjsize; /* optional */
       
    69 	SmlMetInfMemPtr_t	mem;	/* optional */
       
    70 	SmlPcdataListPtr_t emi; /* optional */
       
    71 	SmlMetInfAnchorPtr_t anchor; /* opt. */
       
    72 
       
    73 public:
       
    74 	IMPORT_C sml_metinf_metinf_s();
       
    75 	IMPORT_C ~sml_metinf_metinf_s();
       
    76 	CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() );
       
    77 	} *SmlMetInfMetInfPtr_t, SmlMetInfMetInf_t;
       
    78  
       
    79 #endif // __SMLMETINFDTD_H__