natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafresponseaddressattribute.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CNATFWUNSAFRESPONSEADDRESSATTRIBUTE_H
       
    22 #define CNATFWUNSAFRESPONSEADDRESSATTRIBUTE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "natfwunsafaddressattribute.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  * Class for RESPONSE-ADDRESS attribute.
       
    32  */
       
    33 class CNATFWUNSAFResponseAddressAttribute : public CNATFWUNSAFAddressAttribute
       
    34     {
       
    35     public: // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * Decodes a UNSAF attribute from a byte stream.
       
    39         * This version is for lookup table.
       
    40         * @param aByteStream Byte stream, containing attribute type, length and
       
    41         *    value.
       
    42         * @return Decoded UNSAF attribute, ownership is transferred.
       
    43         */
       
    44         static CNATFWUNSAFAttribute* DecodeAttributeL(
       
    45             const TDesC8& aByteStream);
       
    46 
       
    47         /**
       
    48         * Creates a new instance of CNATFWUNSAFResponseAddressAttribute
       
    49         * @param aAddress the address
       
    50         * @return A new instance of CNATFWUNSAFResponseAddressAttribute,
       
    51         *          ownership is transferred.
       
    52         */
       
    53         static CNATFWUNSAFResponseAddressAttribute* NewL(
       
    54             const TInetAddr& aAddress);
       
    55 
       
    56         /**
       
    57         * Creates a new instance of CNATFWUNSAFResponseAddressAttribute and
       
    58         * pushes it to the CleanupStack.
       
    59         * @param aAddress the address
       
    60         * @return A new instance of CNATFWUNSAFResponseAddressAttribute,
       
    61         *          ownership is transferred.
       
    62         */
       
    63         static CNATFWUNSAFResponseAddressAttribute* NewLC(
       
    64             const TInetAddr& aAddress);
       
    65 
       
    66         /**
       
    67         * Destructor, deletes the resources of
       
    68         * CNATFWUNSAFResponseAddressAttribute.
       
    69         */
       
    70         ~CNATFWUNSAFResponseAddressAttribute();
       
    71 
       
    72     public: // From CNATFWUNSAFAttribute
       
    73 
       
    74         CNATFWUNSAFAttribute::TType Type() const;
       
    75 
       
    76     private: // Constructors
       
    77 
       
    78         CNATFWUNSAFResponseAddressAttribute(const TInetAddr& aAddress);
       
    79     };
       
    80 
       
    81 #endif // CNATFWUNSAFRESPONSEADDRESSATTRIBUTE_H
       
    82 
       
    83