cmmanager/cmmgr/Framework/Inc/cmlistitemlist.h
author Simon Howkins <simonh@symbian.org>
Thu, 18 Nov 2010 15:05:52 +0000
branchRCL_3
changeset 76 40780c2f3a6b
parent 0 5a93021fdf25
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2006 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:  Declaration of the CCmListItemList class.
*
*/

#ifndef CCMLISTITEMLIST_H
#define CCMLISTITEMLIST_H

//  INCLUDES
#include <e32base.h>

// FORWARD DECLARATION
class CCmListItem;

/**
 *  A list of CCmListItem-s pointers; items are owned.
 *  @lib cmmanager.lib
 *  @since S60 v3.2
 */
NONSHARABLE_CLASS( CCmListItemList ) : public CArrayPtrFlat<CCmListItem>
    {
    public:  // Constructors and destructor

        /**
        * C++ default constructor.
        */
        CCmListItemList();

        /**
        * Destructor. Items in the list are destroyed.
        */
        virtual ~CCmListItemList();

    public:  // New methods

        /**
        * Get pointer to the item having aUid, or NULL if no such item is in the
        * list.
        * @param aUid Uid of item to get.
        * @return Pointer to the item having uid aUid, or NULL. Ownership
        * not passed (the list still owns the item).
        */
        CCmListItem* ItemForUid( TUint32 aUid ) const;
    };

#endif

// End of File