codhandler/codeng/src/RoapData.cpp
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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: 
       
    15 *      Implementation of class CRoapData.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include "RoapData.h"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // ---------------------------------------------------------
       
    28 // CRoapData::NewL()
       
    29 // ---------------------------------------------------------
       
    30 //
       
    31 CRoapData* CRoapData::NewL()
       
    32     {
       
    33     return new (ELeave) CRoapData();
       
    34     }
       
    35     
       
    36 // ---------------------------------------------------------
       
    37 // CRoapData::~CRoapData()
       
    38 // ---------------------------------------------------------
       
    39 //
       
    40 CRoapData::~CRoapData()
       
    41     {
       
    42     iContentIdList.ResetAndDestroy();
       
    43     iContentIdList.Close();
       
    44     delete iRiAlias;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------
       
    48 // CRoapData::Reset()
       
    49 // ---------------------------------------------------------
       
    50 //
       
    51 void CRoapData::Reset()
       
    52     {
       
    53     iType = Roap::ERegistrationTrigger;
       
    54     iContextStatus = Roap::EInvalidContext;
       
    55     iDomainOperation = Roap::ENotDomainOperation;
       
    56     iContentIdList.ResetAndDestroy();
       
    57     delete iRiAlias;
       
    58     iRiAlias = NULL;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CRoapData::CRoapData()
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 CRoapData::CRoapData()
       
    66 : iType( Roap::ERegistrationTrigger ),
       
    67   iContextStatus( Roap::EInvalidContext ),
       
    68   iDomainOperation( Roap::ENotDomainOperation )
       
    69     {
       
    70     }