textinput/peninputfingerhwrar/inc/hbufcarrayar.h
branchRCL_3
changeset 3 f5a1e66df979
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 #ifndef C_HBUFCARRAYAR_H
       
    20 #define C_HBUFCARRAYAR_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32cmn.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  class CHBufCArray
       
    31  *
       
    32  *  Wrapper of HBufC Array.
       
    33  *
       
    34  *  @lib peninputfingerhwr.lib
       
    35  *  @since S60 v5.0
       
    36  */
       
    37 class CHBufCArray : public CBase
       
    38     {
       
    39 public:
       
    40     /**
       
    41      * Symbian constructor.
       
    42      *
       
    43      * @since S60 v5.0
       
    44      * @return Pointer to created CHBufCArray object
       
    45      */    
       
    46     static CHBufCArray* NewL();
       
    47     
       
    48     /**
       
    49      * Symbian constructor.
       
    50      *
       
    51      * @since S60 v5.0
       
    52      * @return Pointer to created CHBufCArray object
       
    53      */    
       
    54     static CHBufCArray* NewLC();
       
    55 
       
    56     /**
       
    57      * standard c++ destructor.
       
    58      *
       
    59      * @since S60 v5.0
       
    60      * @return None
       
    61      */    
       
    62     ~CHBufCArray();
       
    63     
       
    64     /**
       
    65      * get array.
       
    66      * 
       
    67      * @since S60 v5.0
       
    68      * @return ref of array.
       
    69      */
       
    70     RPointerArray<HBufC>& Array();
       
    71     
       
    72 private:
       
    73 
       
    74     /**
       
    75      * C++ default constructor
       
    76      *
       
    77      * @since S60 v5.0
       
    78      * @return None
       
    79      */    
       
    80     CHBufCArray();
       
    81     
       
    82     /**
       
    83      * Symbian second-phase constructor
       
    84      *
       
    85      * @since S60 v5.0
       
    86      * @return None
       
    87      */    
       
    88     void ConstructL();
       
    89 
       
    90 private:
       
    91     /**
       
    92      * HBufC Array.
       
    93      */
       
    94     RPointerArray<HBufC> iHBufCArray;
       
    95     };
       
    96 
       
    97 #endif // C_HBUFCARRAYAR_H
       
    98 
       
    99 // End Of File