cmmanager/cmmgr/Framework/Inc/cmlistitemlist.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmmanager/cmmgr/Framework/Inc/cmlistitemlist.h	Wed Sep 01 12:23:51 2010 +0100
@@ -0,0 +1,60 @@
+/*
+* 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