srsf/nssvasapi/nssvascore/src/nssvasctagreference.cpp
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2009 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 #include "nssvasctagreference.h"
       
    19 #include "nssvasctagmgr.h"
       
    20 
       
    21 CNssTagReference::CNssTagReference()
       
    22 {
       
    23    iTagName = NULL;
       
    24 }
       
    25 
       
    26 CNssTagReference::~CNssTagReference()
       
    27 {
       
    28    delete iTagName;
       
    29 }
       
    30 
       
    31 void CNssTagReference::SetTagNameL(const TDesC& aTagName)
       
    32 {
       
    33    if(iTagName)
       
    34    {
       
    35       delete iTagName;
       
    36       iTagName = NULL;
       
    37    }
       
    38    iTagName = aTagName.AllocL(); 
       
    39 }
       
    40 TDesC& CNssTagReference::TagName()
       
    41 {
       
    42    return *iTagName;
       
    43 }
       
    44 
       
    45 void CNssTagReference::SetTagId(TInt aTagId)
       
    46 {
       
    47    iTagId = aTagId;
       
    48 }
       
    49 
       
    50 TInt CNssTagReference::TagId()
       
    51 {
       
    52    return iTagId;
       
    53 }