pushmtm/MtmUtilSrc/PushInitiator.cpp
branchRCL_3
changeset 48 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
47:6385c4c93049 48:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:  Implementation of CPushInitiator.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "PushInitiator.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // ---------------------------------------------------------
       
    27 // CPushInitiator::CPushInitiator
       
    28 // ---------------------------------------------------------
       
    29 //
       
    30 EXPORT_C CPushInitiator::CPushInitiator() 
       
    31 :   CBase(),
       
    32     iType( ETypeIpv4 )
       
    33     {}
       
    34 
       
    35 // ---------------------------------------------------------
       
    36 // CPushInitiator::~CPushInitiator
       
    37 // ---------------------------------------------------------
       
    38 //
       
    39 EXPORT_C CPushInitiator::~CPushInitiator() 
       
    40     {
       
    41     delete iAddress;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // CPushInitiator::SetAddressL
       
    46 // ---------------------------------------------------------
       
    47 //
       
    48 EXPORT_C void CPushInitiator::SetAddressL( const TDesC& aAddr, 
       
    49                                            TAddrType aType )
       
    50     {
       
    51     HBufC* temp = aAddr.AllocL();
       
    52     delete iAddress;
       
    53     iAddress = temp;
       
    54     iType = aType;
       
    55     }
       
    56 
       
    57 //  End of File.