natfw/natfwunsaf_protocols/unsaf_codec/src/natfwunsafserverattribute.cpp
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 #include "natfwunsafserverattribute.h"
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CNATFWUNSAFServerAttribute::NewL
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C CNATFWUNSAFServerAttribute* CNATFWUNSAFServerAttribute::NewL(
       
    28     const TDesC8& aServer)
       
    29     {
       
    30     CNATFWUNSAFServerAttribute* self = CNATFWUNSAFServerAttribute::NewLC(
       
    31         aServer);
       
    32     CleanupStack::Pop(self);
       
    33     return self;
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CNATFWUNSAFServerAttribute::NewLC
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 EXPORT_C CNATFWUNSAFServerAttribute* CNATFWUNSAFServerAttribute::NewLC(
       
    41     const TDesC8& aServer)
       
    42     {
       
    43     CNATFWUNSAFServerAttribute* self =
       
    44         new (ELeave) CNATFWUNSAFServerAttribute();
       
    45     CleanupStack::PushL(self);
       
    46     self->CNATFWUNSAFTextAttribute::ConstructL(aServer);
       
    47     return self;
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CNATFWUNSAFServerAttribute::DecodeAttributeL
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CNATFWUNSAFAttribute*
       
    55 CNATFWUNSAFServerAttribute::DecodeAttributeL(const TDesC8& aByteStream)
       
    56     {
       
    57     CNATFWUNSAFServerAttribute* self =
       
    58         new (ELeave) CNATFWUNSAFServerAttribute();
       
    59     CleanupStack::PushL(self);
       
    60     self->DecodeL(aByteStream);
       
    61     CleanupStack::Pop(self);
       
    62     return self;
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CNATFWUNSAFServerAttribute::CNATFWUNSAFServerAttribute
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 CNATFWUNSAFServerAttribute::CNATFWUNSAFServerAttribute() :
       
    70     CNATFWUNSAFTextAttribute()
       
    71     {
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CNATFWUNSAFServerAttribute::~CNATFWUNSAFServerAttribute
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 CNATFWUNSAFServerAttribute::~CNATFWUNSAFServerAttribute()
       
    79     {
       
    80     }
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // CNATFWUNSAFServerAttribute::Type
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 CNATFWUNSAFAttribute::TType CNATFWUNSAFServerAttribute::Type() const
       
    87     {
       
    88     return EServer;
       
    89     }