63
|
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 application services interface.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef MPBK2APPLICATIONSERVICES_H
|
|
20 |
#define MPBK2APPLICATIONSERVICES_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32std.h>
|
|
24 |
|
|
25 |
#include <VPbkVariant.hrh> // for TVPbkLocalVariantFlags
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
class CVPbkContactManager;
|
|
29 |
class MPbk2CommandHandler;
|
|
30 |
class MPbk2StoreObservationRegister;
|
|
31 |
class MPbk2StoreValidityInformer;
|
|
32 |
class MPbk2ContactNameFormatter;
|
|
33 |
class CPbk2SortOrderManager;
|
|
34 |
class CSendUi;
|
|
35 |
class CPbk2StorePropertyArray;
|
|
36 |
class CPbk2FieldPropertyArray;
|
|
37 |
class CPbk2StoreConfiguration;
|
|
38 |
class MPbk2ContactViewSupplier;
|
|
39 |
|
|
40 |
// Use this UID to access application services extension 2. Used as a parameter
|
|
41 |
// to MPbk2ApplicationServicesExtension() method.
|
|
42 |
const TUid KMPbk2ApplicationServicesExtension2Uid = { 2 };
|
|
43 |
|
|
44 |
// CLASS DECLARATION
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Phonebook 2 application services interface.
|
|
48 |
* Shares commonly used objects.
|
|
49 |
*/
|
|
50 |
class MPbk2ApplicationServices
|
|
51 |
{
|
|
52 |
public: // Interface
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Returns Virtual Phonebook contact manager.
|
|
56 |
*
|
|
57 |
* @return Virtual Phonebook contact manager.
|
|
58 |
*/
|
|
59 |
virtual CVPbkContactManager& ContactManager() const = 0;
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Returns Phonebook 2 command handler, which handles
|
|
63 |
* all the commands.
|
|
64 |
*
|
|
65 |
* @return Pointer to Phonebook 2 command handler (might be NULL).
|
|
66 |
*/
|
|
67 |
virtual MPbk2CommandHandler* CommandHandlerL() = 0;
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Returns the name formatter object.
|
|
71 |
*
|
|
72 |
* @return Phonebook 2 name formatter.
|
|
73 |
*/
|
|
74 |
virtual MPbk2ContactNameFormatter& NameFormatter() const = 0;
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Returns the sort order manager.
|
|
78 |
*
|
|
79 |
* @return Sort order manager.
|
|
80 |
*/
|
|
81 |
virtual CPbk2SortOrderManager& SortOrderManager() const = 0;
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Returns Phonebook 2 global send UI.
|
|
85 |
*
|
|
86 |
* @return Pointer to SendUi instance (might be NULL).
|
|
87 |
*/
|
|
88 |
virtual CSendUi* SendUiL() = 0;
|
|
89 |
|
|
90 |
/**
|
|
91 |
* Returns store property array.
|
|
92 |
*
|
|
93 |
* @return Store property array.
|
|
94 |
*/
|
|
95 |
virtual CPbk2StorePropertyArray& StoreProperties() const = 0;
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Returns Phonebook 2 field properties.
|
|
99 |
*
|
|
100 |
* @return Phonebook 2 field properties.
|
|
101 |
*/
|
|
102 |
virtual CPbk2FieldPropertyArray& FieldProperties() const = 0;
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Returns Phonebook 2 store configuration.
|
|
106 |
*
|
|
107 |
* @return Phonebook 2 store configuration.
|
|
108 |
*/
|
|
109 |
virtual CPbk2StoreConfiguration& StoreConfiguration() const = 0;
|
|
110 |
|
|
111 |
/**
|
|
112 |
* Returns Phonebook 2 contact store observation register.
|
|
113 |
*
|
|
114 |
* @return Phonebook 2 store observation register.
|
|
115 |
*/
|
|
116 |
virtual MPbk2StoreObservationRegister&
|
|
117 |
StoreObservationRegister() const = 0;
|
|
118 |
|
|
119 |
/**
|
|
120 |
* Returns Phonebook 2 contact store validity informer.
|
|
121 |
*
|
|
122 |
* @return Phonebook 2 store validity informer.
|
|
123 |
*/
|
|
124 |
virtual MPbk2StoreValidityInformer&
|
|
125 |
StoreValidityInformer() const = 0;
|
|
126 |
|
|
127 |
/**
|
|
128 |
* Returns Phonebook 2 view supplier.
|
|
129 |
*
|
|
130 |
* @return Phonebook 2 view supplier.
|
|
131 |
*/
|
|
132 |
virtual MPbk2ContactViewSupplier& ViewSupplier() const = 0;
|
|
133 |
|
|
134 |
/**
|
|
135 |
* Returns global menu filtering flags.
|
|
136 |
*
|
|
137 |
* @return Global menu filtering flags.
|
|
138 |
*/
|
|
139 |
virtual TInt GlobalMenuFilteringFlagsL() const = 0;
|
|
140 |
|
|
141 |
/**
|
|
142 |
* Used to check if the feature defined by aFeature if on or off.
|
|
143 |
* @param aFeature the feature to check
|
|
144 |
* @return ETrue if the feature is on, EFalse otherwise
|
|
145 |
*/
|
|
146 |
virtual TBool LocallyVariatedFeatureEnabled(
|
|
147 |
TVPbkLocalVariantFlags aFeatureFlag) = 0;
|
|
148 |
|
|
149 |
/**
|
|
150 |
* Returns an extension point for this interface or NULL.
|
|
151 |
*
|
|
152 |
* @param aExtensionUid Extension UID.
|
|
153 |
* @return Extension point.
|
|
154 |
*/
|
|
155 |
virtual TAny* MPbk2ApplicationServicesExtension(
|
|
156 |
TUid /*aExtensionUid*/ )
|
|
157 |
{
|
|
158 |
return NULL;
|
|
159 |
}
|
|
160 |
|
|
161 |
protected: // Protected destructor
|
|
162 |
~MPbk2ApplicationServices()
|
|
163 |
{}
|
|
164 |
};
|
|
165 |
|
|
166 |
#endif // MPBK2APPLICATIONSERVICES_H
|
|
167 |
|
|
168 |
// End of File
|