telephonyserverplugins/simatktsy/exportinc/utility/cbertlv.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2006-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 * Name        : CBerTlv.h
       
    16 * Part of     : Series 60 / utility
       
    17 * Based on 3GPP TS 11.14 V8.8.0 
       
    18 * Version     : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #ifndef CBERTLV_H
       
    26 #define CBERTLV_H
       
    27 
       
    28 #include <cstktsy/CTlv.h>				    // For class CTlvBase
       
    29 #include <cstktsy/bertlv_defs.h>			// BerTlv constants
       
    30 
       
    31 // DESCRIPTION
       
    32 // CBerTlv contains methods to read BER-TLV data
       
    33 
       
    34 class CBerTlv  : public CTlvBase
       
    35     {
       
    36 
       
    37     public: // Constructor
       
    38 
       
    39         /**
       
    40         * Default constructor
       
    41         */
       
    42         IMPORT_C CBerTlv();
       
    43 
       
    44     public: // Methods
       
    45 
       
    46         /**
       
    47         * Find TLV by tag value
       
    48         * @param aTlv: 
       
    49         * @param aTlvTag: TlvTag
       
    50         * @param aItemNbr: number of requested TLV, default is 0
       
    51         * @return TInt: KErrNone or KErrNotFound
       
    52         */
       
    53         IMPORT_C TInt TlvByTagValue( CTlv* aTlv, TUint8 aTlvTag, 
       
    54             TInt aItemNbr = 0 );
       
    55             
       
    56         /**
       
    57         * Find several TLVs by tag value
       
    58         * @param aSubBlock: retruns TLVs
       
    59         * @param aSubBlockId: TlvTag
       
    60         * @return TInt: KErrNone or KErrNotFound
       
    61         */
       
    62         IMPORT_C TInt TlvByTagValueMulti( CTlv* aTlv, TUint8 aTlvTag );	
       
    63     };
       
    64 
       
    65 
       
    66 #endif // CBERTLV_H
       
    67 
       
    68 // End of File