|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Phonebook 2 fetch dialog pages. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2FETCHDLGPAGES_H |
|
20 #define CPBK2FETCHDLGPAGES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "MPbk2FetchDlgPages.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MPbk2FetchDlgPage; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Phonebook 2 fetch dialog pages. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CPbk2FetchDlgPages) : public CBase, |
|
35 public MPbk2FetchDlgPages |
|
36 { |
|
37 public: // Construction and destruction |
|
38 |
|
39 /** |
|
40 * Constructor. |
|
41 */ |
|
42 CPbk2FetchDlgPages(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CPbk2FetchDlgPages(); |
|
48 |
|
49 public: // Interface |
|
50 |
|
51 /** |
|
52 * Adds a new page to this collection. |
|
53 * Takes ownership of the page. |
|
54 * |
|
55 * @param aPage The page to add. |
|
56 */ |
|
57 void AddL( |
|
58 MPbk2FetchDlgPage* aPage ); |
|
59 |
|
60 public: // From MPbk2FetchDlgPages |
|
61 TInt DlgPageCount() const; |
|
62 MPbk2FetchDlgPage& DlgPageAt( |
|
63 TInt aIndex ) const; |
|
64 MPbk2FetchDlgPage* DlgPageWithId( |
|
65 TInt aPageId ) const; |
|
66 void HandlePageChangedL( |
|
67 TInt aPageId ); |
|
68 TBool AllPagesReady(); |
|
69 TBool IsActivePageEmpty(); |
|
70 void ActiveFirstPageL(); |
|
71 const MVPbkBaseContact* FocusedContactL() const; |
|
72 MPbk2FetchDlgPage& CurrentPage() const; |
|
73 void SelectContactL( |
|
74 const MVPbkContactLink& aContactLink, |
|
75 TBool aSelect ); |
|
76 |
|
77 private: // Data |
|
78 /// Own: Array of pages |
|
79 RPointerArray<MPbk2FetchDlgPage> iPages; |
|
80 /// Ref: Currently active page |
|
81 MPbk2FetchDlgPage* iCurrentPage; |
|
82 }; |
|
83 |
|
84 #endif // CPBK2FETCHDLGPAGES_H |
|
85 |
|
86 // End of File |