natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafdestinationaddressattribute.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 CNATFWUNSAFDESTINATIONADDRESSATTRIBUTE_H
       
    22 #define CNATFWUNSAFDESTINATIONADDRESSATTRIBUTE_H
       
    23 
       
    24 #include "natfwunsafaddressattribute.h"
       
    25 
       
    26 /**
       
    27  * Class for DESTINATION-ADDRESS attribute.
       
    28  *
       
    29  *  @lib natfwunsafprotocols.lib
       
    30  *  @since S60 3.2
       
    31  */
       
    32 class CNATFWUNSAFDestinationAddressAttribute :
       
    33     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 CNATFWUNSAFDestinationAddressAttribute
       
    49     * @param aAddress the address
       
    50     * @return A new instance of CNATFWUNSAFDestinationAddressAttribute
       
    51     *          ownership is transferred.
       
    52     */
       
    53     IMPORT_C static CNATFWUNSAFDestinationAddressAttribute* NewL(
       
    54         const TInetAddr& aAddress);
       
    55 
       
    56     /**
       
    57     * Creates a new instance of CNATFWUNSAFDestinationAddressAttribute and
       
    58     * pushes it to the CleanupStack.
       
    59     * @param aAddress the address
       
    60     * @return A new instance of CNATFWUNSAFDestinationAddressAttribute,
       
    61     *          ownership is transferred.
       
    62     */
       
    63     IMPORT_C static CNATFWUNSAFDestinationAddressAttribute* NewLC(
       
    64         const TInetAddr& aAddress);
       
    65 
       
    66     /**
       
    67     * Destructor, deletes the resources of
       
    68     * CNATFWUNSAFDestinationAddressAttribute.
       
    69     */
       
    70     ~CNATFWUNSAFDestinationAddressAttribute();
       
    71 
       
    72 public: // From CNATFWUNSAFAttribute
       
    73 
       
    74     CNATFWUNSAFAttribute::TType Type() const;
       
    75 
       
    76 private: // Constructors
       
    77 
       
    78     CNATFWUNSAFDestinationAddressAttribute(const TInetAddr& aAddress);
       
    79     };
       
    80 
       
    81 #endif // CNATFWUNSAFDESTINATIONADDRESSATTRIBUTE_H
       
    82 
       
    83