|
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 page factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PBK2FETCHDLGPAGEFACTORY_H |
|
20 #define PBK2FETCHDLGPAGEFACTORY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CCoeControl; |
|
27 class MPbk2FetchDlgPages; |
|
28 class MPbk2FetchDlg; |
|
29 class CVPbkContactManager; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook 2 fetch dialog page factory. |
|
35 * Responsible for creating fetch dialog pages. |
|
36 */ |
|
37 NONSHARABLE_CLASS( Pbk2FetchDlgPageFactory ) |
|
38 { |
|
39 public: // Interface |
|
40 |
|
41 /** |
|
42 * Creates a custom control for given control type. |
|
43 * |
|
44 * @param aControlType Control type. |
|
45 * @param aParent Parent control. |
|
46 * @param aFetchDlg Fetch dialog. |
|
47 * @return The created control or NULL. |
|
48 */ |
|
49 static CCoeControl* CreateCustomControlL( |
|
50 TInt aControlType, |
|
51 const CCoeControl* aParent, |
|
52 MPbk2FetchDlg& aFetchDlg); |
|
53 |
|
54 /** |
|
55 * Creates dialog pages for given dialog. |
|
56 * |
|
57 * @param aParentDlg Parent dialog. |
|
58 * @param aContactManager Virtual Phonebook contact manager. |
|
59 * @return Dialog pages. |
|
60 */ |
|
61 static MPbk2FetchDlgPages* CreatePagesL( |
|
62 MPbk2FetchDlg& aFetchDlg, |
|
63 CVPbkContactManager& aContactManager ); |
|
64 |
|
65 private: // Implementation |
|
66 Pbk2FetchDlgPageFactory(); |
|
67 }; |
|
68 |
|
69 #endif // PBK2FETCHDLGPAGEFACTORY_H |
|
70 |
|
71 // End of File |