|
1 /* |
|
2 * Copyright (c) 2004-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: Virtual Phonebook speed dial attribute manager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPEEDDIALATTRIBUTEMANAGER_H |
|
20 #define CSPEEDDIALATTRIBUTEMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CVPbkContactAttributePlugin.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MVPbkContactOperation; |
|
27 |
|
28 namespace VPbkCntModel { |
|
29 |
|
30 /** |
|
31 * Virtual Phonebook speed dial attribute manager |
|
32 */ |
|
33 NONSHARABLE_CLASS( CSpeedDialAttributeManager ): |
|
34 public CVPbkContactAttributePlugin |
|
35 { |
|
36 public: // Construction and destruction |
|
37 /** |
|
38 * Creates a new instance of this class |
|
39 * @param aParam Parameter for creation |
|
40 * @return A new instance of this class |
|
41 */ |
|
42 static CSpeedDialAttributeManager* NewL(TAny* aParam); |
|
43 ~CSpeedDialAttributeManager(); |
|
44 |
|
45 public: // From CVPbkContactAttributePlugin |
|
46 MVPbkContactOperationBase* ListContactsL( |
|
47 TUid aAttributeType, |
|
48 MVPbkContactFindObserver& aObserver); |
|
49 MVPbkContactOperationBase* ListContactsL( |
|
50 const MVPbkContactAttribute& aAttribute, |
|
51 MVPbkContactFindObserver& aObserver); |
|
52 TBool HasContactAttributeL( |
|
53 TUid aAttributeType, |
|
54 const MVPbkStoreContact& aContact) const; |
|
55 TBool HasContactAttributeL( |
|
56 const MVPbkContactAttribute& aAttribute, |
|
57 const MVPbkStoreContact& aContact) const; |
|
58 TBool HasFieldAttributeL( |
|
59 TUid aAttributeType, |
|
60 const MVPbkStoreContactField& aField) const; |
|
61 TBool HasFieldAttributeL( |
|
62 const MVPbkContactAttribute& aAttribute, |
|
63 const MVPbkStoreContactField& aField) const; |
|
64 MVPbkContactOperationBase* SetContactAttributeL( |
|
65 const MVPbkContactLink& aContactLink, |
|
66 const MVPbkContactAttribute& aAttribute, |
|
67 MVPbkSetAttributeObserver& aObserver); |
|
68 MVPbkContactOperationBase* SetFieldAttributeL( |
|
69 MVPbkStoreContactField& aField, |
|
70 const MVPbkContactAttribute& aAttribute, |
|
71 MVPbkSetAttributeObserver& aObserver); |
|
72 MVPbkContactOperationBase* RemoveContactAttributeL( |
|
73 const MVPbkContactLink& aContactLink, |
|
74 const MVPbkContactAttribute& aAttribute, |
|
75 MVPbkSetAttributeObserver& aObserver); |
|
76 MVPbkContactOperationBase* RemoveContactAttributeL( |
|
77 const MVPbkContactLink& aContactLink, |
|
78 TUid aAttributeType, |
|
79 MVPbkSetAttributeObserver& aObserver); |
|
80 MVPbkContactOperationBase* RemoveFieldAttributeL( |
|
81 MVPbkStoreContactField& aField, |
|
82 const MVPbkContactAttribute& aAttribute, |
|
83 MVPbkSetAttributeObserver& aObserver); |
|
84 MVPbkContactOperationBase* RemoveFieldAttributeL( |
|
85 MVPbkStoreContactField& aField, |
|
86 TUid aAttributeType, |
|
87 MVPbkSetAttributeObserver& aObserver); |
|
88 MVPbkStoreContactFieldCollection* FindFieldsWithAttributeLC( |
|
89 TUid aAttibuteType, |
|
90 MVPbkStoreContact& aContact) const; |
|
91 MVPbkStoreContactFieldCollection* FindFieldsWithAttributeLC( |
|
92 const MVPbkContactAttribute& aAttribute, |
|
93 MVPbkStoreContact& aContact) const; |
|
94 MVPbkContactOperation* CreateListContactsOperationL( |
|
95 TUid aAttributeType, |
|
96 MVPbkContactFindObserver& aObserver); |
|
97 MVPbkContactOperation* CreateListContactsOperationL( |
|
98 const MVPbkContactAttribute& aAttribute, |
|
99 MVPbkContactFindObserver& aObserver); |
|
100 MVPbkContactOperationBase* HasContactAttributeL( |
|
101 TUid aAttributeType, |
|
102 const MVPbkStoreContact& aContact, |
|
103 MVPbkSingleAttributePresenceObserver& aObserver) const; |
|
104 MVPbkContactOperationBase* HasContactAttributeL( |
|
105 const MVPbkContactAttribute& aAttribute, |
|
106 const MVPbkStoreContact& aContact, |
|
107 MVPbkSingleAttributePresenceObserver& aObserver) const; |
|
108 MVPbkContactOperationBase* HasFieldAttributeL( |
|
109 TUid aAttributeType, |
|
110 const MVPbkStoreContactField& aField, |
|
111 MVPbkSingleAttributePresenceObserver& aObserver) const; |
|
112 MVPbkContactOperationBase* HasFieldAttributeL( |
|
113 const MVPbkContactAttribute& aAttribute, |
|
114 const MVPbkStoreContactField& aField, |
|
115 MVPbkSingleAttributePresenceObserver& aObserver) const; |
|
116 MVPbkContactOperationBase* FindFieldsWithAttributeL( |
|
117 TUid aAttributeType, |
|
118 MVPbkStoreContact& aContact, |
|
119 MVPbkMultiAttributePresenceObserver& aObserver) const; |
|
120 MVPbkContactOperationBase* FindFieldsWithAttributeL( |
|
121 const MVPbkContactAttribute& aAttribute, |
|
122 MVPbkStoreContact& aContact, |
|
123 MVPbkMultiAttributePresenceObserver& aObserver) const; |
|
124 |
|
125 private: // Implementation |
|
126 CSpeedDialAttributeManager(CVPbkContactManager& aContactManager); |
|
127 void ConstructL(); |
|
128 |
|
129 private: // Data |
|
130 CVPbkContactManager& iContactManager; |
|
131 }; |
|
132 |
|
133 } |
|
134 |
|
135 #endif // CSPEEDDIALATTRIBUTEMANAGER_H |
|
136 |
|
137 // End of File |