phonebookui/Phonebook/View/inc/CPbkFetchDlgPages.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     MPbkFetchDlgPages implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CPbkFetchDlgPages_H__
       
    21 #define __CPbkFetchDlgPages_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>            // CBase
       
    25 #include "MPbkFetchDlgPage.h"   // MPbkFetchDlgPages
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * MPbkFetchDlgPages implementation.
       
    31  */
       
    32 NONSHARABLE_CLASS(CPbkFetchDlgPages) : 
       
    33         public CBase, 
       
    34         public MPbkFetchDlgPages
       
    35     {
       
    36     public:  // Interface
       
    37         /**
       
    38          * Constructor.
       
    39          */
       
    40         CPbkFetchDlgPages();
       
    41 
       
    42         /**
       
    43          * Destructor.
       
    44          */
       
    45         ~CPbkFetchDlgPages();
       
    46 
       
    47         /**
       
    48          * Adds a new page aPage to this collection.
       
    49 		 * Takes ownership of the page.
       
    50          */
       
    51         void AddL(MPbkFetchDlgPage* aPage);
       
    52 
       
    53     public:  // from MPbkFetchDlgPage
       
    54         TInt DlgPageCount() const;
       
    55         MPbkFetchDlgPage& DlgPageAt(TInt aIndex) const;
       
    56         MPbkFetchDlgPage* DlgPageWithId(TInt aPageId) const;
       
    57 
       
    58     private:  // Data
       
    59 		/// Own: the array of pages
       
    60         RPointerArray<MPbkFetchDlgPage> iPages;
       
    61     };
       
    62 
       
    63 inline CPbkFetchDlgPages::CPbkFetchDlgPages()
       
    64     {
       
    65     }
       
    66 
       
    67 inline void CPbkFetchDlgPages::AddL(MPbkFetchDlgPage* aPage)
       
    68     {
       
    69     User::LeaveIfError(iPages.Append(aPage));
       
    70     }
       
    71 
       
    72 
       
    73 #endif // __CPbkFetchDlgPages_H__
       
    74             
       
    75 // End of File