|
1 /* |
|
2 * Copyright (c) 2008 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: Provides access to Contacts Model adapter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPIMCMADAPTERACCESS_H |
|
20 #define CPIMCMADAPTERACCESS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "mpimadapteraccess.h" |
|
24 #include "functionserver.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MPIMLocalizationManager; |
|
28 class MPIMLocalizationData; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Provides the elementary access the PIM Contact list provided by this |
|
33 * Contacts Model adapter module. |
|
34 */ |
|
35 NONSHARABLE_CLASS(CPIMCMAdapterAccess): public CBase, |
|
36 public MPIMAdapterAccess |
|
37 { |
|
38 public: // Constructors and a destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * |
|
43 * @param aLocalizationManager Localization Manager. |
|
44 */ |
|
45 static CPIMCMAdapterAccess* NewL( |
|
46 MPIMLocalizationManager* aLocalizationManager, |
|
47 java::util::FunctionServer* aFuncServer); |
|
48 |
|
49 /** |
|
50 * destructor |
|
51 */ |
|
52 ~CPIMCMAdapterAccess(); |
|
53 |
|
54 public: // MPIMAdapterAccess |
|
55 |
|
56 const CDesCArray& ListNamesL( |
|
57 const TPIMListType aListType); |
|
58 |
|
59 TBool OpenContactListL( |
|
60 const TDesC* aListName, |
|
61 MPIMContactAdapterManager** aRetAdapterManager, |
|
62 MPIMContactListAdapter** aRetListAdapter, |
|
63 MPIMLocalizationData** aRetLocalizationData); |
|
64 |
|
65 TBool OpenEventListL( |
|
66 const TDesC* aListName, |
|
67 MPIMEventAdapterManager** aRetAdapterManager, |
|
68 MPIMEventListAdapter** aRetListAdapter, |
|
69 MPIMLocalizationData** aRetLocalizationData); |
|
70 |
|
71 TBool OpenToDoListL( |
|
72 const TDesC* aListName, |
|
73 MPIMToDoAdapterManager** aRetAdapterManager, |
|
74 MPIMToDoListAdapter** aRetListAdapter, |
|
75 MPIMLocalizationData** aRetLocalizationData); |
|
76 |
|
77 protected: |
|
78 /** |
|
79 * C++ default constructor. |
|
80 */ |
|
81 CPIMCMAdapterAccess( |
|
82 MPIMLocalizationManager* aLocalizationManager, |
|
83 java::util::FunctionServer* aFuncServer); |
|
84 |
|
85 /** |
|
86 * Symbian 2nd phase constructor |
|
87 */ |
|
88 void ConstructL(); |
|
89 |
|
90 protected: // Data |
|
91 |
|
92 /** Owned. */ |
|
93 CDesCArray* iContactListNames; |
|
94 |
|
95 /** |
|
96 * An empty array of list names (Event and ToDo List names). |
|
97 * Owned. |
|
98 */ |
|
99 CDesCArray* iNoListNames; |
|
100 |
|
101 /** |
|
102 * Contact localization data, owned. |
|
103 */ |
|
104 MPIMLocalizationData* iContactLocalizationData; |
|
105 |
|
106 /** Not owned. */ |
|
107 MPIMLocalizationManager* iLocalizationManager; |
|
108 |
|
109 java::util::FunctionServer* iFuncServer; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // CPIMCMADAPTERACCESS_H |