messagingappbase/ncnlist/inc/CNcnUnpackDescrArray.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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 *       Class for unpacking a descriptor array received via IPC.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CNCNUNPACKDESCRARRAY_H__
       
    22 #define __CNCNUNPACKDESCRARRAY_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <badesca.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Class for unpacking a descriptor array received via IPC.
       
    32  * This class is a counterpart for CNcnPackDescrArray.
       
    33  */
       
    34 class CNcnUnpackDescrArray : public CBase, public MDesCArray
       
    35     {
       
    36     public:
       
    37     
       
    38        /**
       
    39         * Two-phased constructor.
       
    40         * @return newly instantiated object
       
    41         */
       
    42         static CNcnUnpackDescrArray* NewLC();
       
    43         
       
    44        /**
       
    45         * Unpacks a descriptor array from IPC message.
       
    46         * @param aMessage IPC message
       
    47         * @param aParam index of the param holding the buffer
       
    48         */     
       
    49         void UnpackL( const RMessagePtr2& aMessage, TInt aParam );
       
    50         
       
    51        /**
       
    52         * Destructor.
       
    53         */                            
       
    54         ~CNcnUnpackDescrArray();
       
    55 
       
    56     public:  // from MDesCArray
       
    57     
       
    58         TInt MdcaCount() const;
       
    59         
       
    60         TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    61 
       
    62     private:
       
    63     
       
    64         CNcnUnpackDescrArray();
       
    65 
       
    66     private:  // Data
       
    67 
       
    68         // Descriptor array    
       
    69         CDesCArrayFlat iArray;
       
    70     };
       
    71 
       
    72 #endif // __CNCNUNPACKDESCRARRAY_H__
       
    73 
       
    74 // End of File
       
    75