|
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 server application services. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2SERVERAPPLICATIONSERVICES_H |
|
20 #define CPBK2SERVERAPPLICATIONSERVICES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <mpbk2applicationservices.h> |
|
25 #include <mpbk2applicationservices2.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPbk2StoreManager; |
|
29 class CPbk2ContactViewSupplier; |
|
30 class CPbk2ServiceManager; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Phonebook 2 server application services. |
|
36 * Responsible for owning and delivering commonly used shared objects |
|
37 * and providing some common application level services. |
|
38 */ |
|
39 class CPbk2ServerApplicationServices : public CBase, |
|
40 public MPbk2ApplicationServices, |
|
41 public MPbk2ApplicationServices2 |
|
42 { |
|
43 public: // Constructor and destructor |
|
44 |
|
45 /** |
|
46 * Creates a new instance of this class. |
|
47 * |
|
48 * @return A new instance of this class. |
|
49 */ |
|
50 static CPbk2ServerApplicationServices* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CPbk2ServerApplicationServices(); |
|
56 |
|
57 public: // From MPbk2ApplicationServices |
|
58 CVPbkContactManager& ContactManager() const; |
|
59 MPbk2CommandHandler* CommandHandlerL(); |
|
60 MPbk2ContactNameFormatter& NameFormatter() const; |
|
61 CPbk2SortOrderManager& SortOrderManager() const; |
|
62 CSendUi* SendUiL(); |
|
63 CPbk2StorePropertyArray& StoreProperties() const; |
|
64 CPbk2FieldPropertyArray& FieldProperties() const; |
|
65 CPbk2StoreConfiguration& StoreConfiguration() const; |
|
66 MPbk2StoreObservationRegister& StoreObservationRegister() const; |
|
67 MPbk2StoreValidityInformer& StoreValidityInformer() const; |
|
68 MPbk2ContactViewSupplier& ViewSupplier() const; |
|
69 TInt GlobalMenuFilteringFlagsL() const; |
|
70 TAny* MPbk2ApplicationServicesExtension( TUid aExtensionUid ); |
|
71 |
|
72 public: // From MPbk2ApplicationServices2 |
|
73 CPbk2StoreManager& StoreManager() const; |
|
74 CPbk2ServiceManager& ServiceManager() const; |
|
75 |
|
76 private: // Implementation |
|
77 CPbk2ServerApplicationServices(); |
|
78 void ConstructL(); |
|
79 void CreateManagerL(); |
|
80 void CreateSortOrderManagerL(); |
|
81 void CreateStorePropertyArrayL(); |
|
82 void CreateFieldPropertyArrayL(); |
|
83 void CreateNameFormatterL(); |
|
84 void CreateViewSupplierL(); |
|
85 void CreateStoreConfigurationL(); |
|
86 |
|
87 private: // Data |
|
88 /// Own: Virtual Phonebook contact manager |
|
89 CVPbkContactManager* iContactManager; |
|
90 /// Own: Store manager |
|
91 CPbk2StoreManager* iStoreManager; |
|
92 /// Own: Sort order manager |
|
93 CPbk2SortOrderManager* iSortOrderManager; |
|
94 /// Own: Contact name formatter |
|
95 MPbk2ContactNameFormatter* iNameFormatter; |
|
96 /// Own: Store properties |
|
97 CPbk2StorePropertyArray* iStoreProperties; |
|
98 /// Own: Field properties |
|
99 CPbk2FieldPropertyArray* iFieldProperties; |
|
100 /// Own: View supplier |
|
101 CPbk2ContactViewSupplier* iViewSupplier; |
|
102 /// Own: Contact store configuration |
|
103 CPbk2StoreConfiguration* iStoreConfiguration; |
|
104 /// Own: Service manager |
|
105 CPbk2ServiceManager* iServiceManager; |
|
106 }; |
|
107 |
|
108 #endif // CPBK2SERVERAPPLICATIONSERVICES_H |
|
109 |
|
110 // End of File |