homescreensrv_plat/hs_content_control_api/inc/hscontentinfoarray.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:54:17 +0200
changeset 0 79c6a41cd166
child 22 1b207dd38b72
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/

#ifndef HSCONTENTINFOARRAY_H
#define HSCONTENTINFOARRAY_H

// System includes
#include <e32base.h>
#include <s32strm.h>

// User includes

// Forward declarations
class CHsContentInfo;

/**
 *  Content data
 *
 *
 *  @code
 *
 *  @endcode
 *
 *  @lib hscontentcontrol.lib
 *  @since S60 v5.0
 */
class CHsContentInfoArray : public CBase
    {
    public:
    /**
     * Two-phased constructor.
     */
    IMPORT_C static CHsContentInfoArray* NewL();
    
    /**
     * Two-phased constructor.
     */
    IMPORT_C static CHsContentInfoArray* NewL( RReadStream& aStream );    

    /**
     * Destructor.
     */
    virtual ~CHsContentInfoArray();
    
    /**
     * Externalizes the array into the stream.
     */
    IMPORT_C void ExternalizeL( RWriteStream& aStream );
    
    IMPORT_C RPointerArray< CHsContentInfo >& Array();

    /**
     * Internalizes the array from the stream.
     */
    IMPORT_C void InternalizeL( RReadStream& aStream );
    
    /**
     * Returns size of a descriptor needed to externalize the class
     */
    IMPORT_C TInt Size();

    /**
     * Marshals Content Info array to a descriptor
     * 
     * @since S60 5.0
     * @return Descriptor containing the externalized Content Info array data
     */
    IMPORT_C HBufC8* MarshalL();

private:
    /**
     * Constructor.
     */
    CHsContentInfoArray();

    /**
     * Second phase constructor.
     */
    void ConstructL();
    
private: // Data
 		RPointerArray< CHsContentInfo > iArray;
    };

#endif // HSCONTENTINFOARRAY_H

// End of file