messagingappbase/ncnlist/notifinc/CNcnPackDescrArray.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 packaging a descriptor array for IPC.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CNCNIPCDESCRIPTORARRAY_H__
       
    22 #define __CNCNIPCDESCRIPTORARRAY_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <badesca.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Class for packaging a descriptor array for sending
       
    32  * it via IPC message.
       
    33  */
       
    34 class CNcnPackDescrArray : public CBase
       
    35     {
       
    36     public:
       
    37     
       
    38        /**
       
    39         * Two-phased constructor.
       
    40         * @return newly instantiated object
       
    41         */
       
    42         static CNcnPackDescrArray* NewL();
       
    43         
       
    44        /**
       
    45         * Two-phased constructor.
       
    46         * @return newly instantiated object
       
    47         */
       
    48         static CNcnPackDescrArray* NewLC();
       
    49         
       
    50        /**
       
    51         * Packages given descriptor array to a buffer and
       
    52         * and returns the buffer.
       
    53         * @param aSourceArray descriptor array to pack
       
    54         */
       
    55         static TDesC8* PackL( const MDesCArray& aSourceArray );
       
    56                     
       
    57        /**
       
    58         * Destructor.
       
    59         */                    
       
    60         ~CNcnPackDescrArray();
       
    61 
       
    62     private:
       
    63     
       
    64         CNcnPackDescrArray();
       
    65 
       
    66     private:  // Data
       
    67     
       
    68     };
       
    69 
       
    70 #endif // __CNCNIPCDESCRIPTORARRAY_H__
       
    71 
       
    72 // End of File