textinput/peninputfingerhwrar/src/hbufcarrayar.cpp
branchRCL_3
changeset 3 f5a1e66df979
child 5 a47de9135b21
equal deleted inserted replaced
0:eb1f2e154e89 3:f5a1e66df979
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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:  Wrapper of HBufC Array.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE
       
    20 #include "hbufcarrayar.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // Symbian Constructor
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 CHBufCArray* CHBufCArray::NewL()
       
    27     {
       
    28     CHBufCArray* self = CHBufCArray::NewLC();
       
    29     CleanupStack::Pop( self ); // self;
       
    30     return self;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // Symbian Constructor.
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 CHBufCArray* CHBufCArray::NewLC()
       
    38     {
       
    39     CHBufCArray* self = new (ELeave) CHBufCArray();
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // c++ destructor
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CHBufCArray::~CHBufCArray()
       
    50     {
       
    51     iHBufCArray.ResetAndDestroy();
       
    52     iHBufCArray.Close();
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // get array.
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 RPointerArray<HBufC>& CHBufCArray::Array()
       
    60     {
       
    61     return iHBufCArray;
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // c++ constructor.
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 CHBufCArray::CHBufCArray()
       
    69     {
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // Symbian second-phase constructor.
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CHBufCArray::ConstructL()
       
    77     {
       
    78     }
       
    79 
       
    80 // End Of File