|
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: Class CNcdGeneralManager declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCD_GENERALMANAGER_H |
|
20 #define C_NCD_GENERALMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 class CNcdPurchaseHistoryDb; |
|
28 class MNcdStorageManager; |
|
29 class CNcdConfigurationManager; |
|
30 class MNcdConfigurationManager; |
|
31 class MNcdProtocol; |
|
32 class CNcdHttpUtils; |
|
33 class CNcdNodeManager; |
|
34 class MCatalogsAccessPointManager; |
|
35 |
|
36 /** |
|
37 * CNcdGeneralManager |
|
38 * |
|
39 */ |
|
40 class CNcdGeneralManager : public CBase |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Constructor |
|
46 */ |
|
47 CNcdGeneralManager( |
|
48 const TUid& aFamilyId, |
|
49 const TDesC& aFamilyName ); |
|
50 |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CNcdGeneralManager(); |
|
56 |
|
57 |
|
58 public: |
|
59 |
|
60 const TUid& FamilyId() const; |
|
61 |
|
62 const TDesC& FamilyName() const; |
|
63 |
|
64 CNcdPurchaseHistoryDb& PurchaseHistory() const; |
|
65 |
|
66 void SetPurchaseHistory( CNcdPurchaseHistoryDb& aPurchaseHistoryManager ); |
|
67 |
|
68 MNcdStorageManager& StorageManager() const; |
|
69 |
|
70 void SetStorageManager( MNcdStorageManager& aStorageManager ); |
|
71 |
|
72 MNcdConfigurationManager& ConfigurationManager() const; |
|
73 |
|
74 void SetConfigurationManager( |
|
75 MNcdConfigurationManager& aConfigurationManager ); |
|
76 |
|
77 |
|
78 void SetProtocolManager( MNcdProtocol& aProtocolManager ); |
|
79 |
|
80 MNcdProtocol& ProtocolManager() const; |
|
81 |
|
82 void SetHttpUtils( CNcdHttpUtils& aHttpUtils ); |
|
83 |
|
84 CNcdHttpUtils& HttpUtils() const; |
|
85 |
|
86 void SetNodeManager( CNcdNodeManager& aNodeManager ); |
|
87 |
|
88 CNcdNodeManager& NodeManager() const; |
|
89 |
|
90 |
|
91 void SetAccessPointManager( |
|
92 MCatalogsAccessPointManager& aAccessPointManager ); |
|
93 |
|
94 MCatalogsAccessPointManager& AccessPointManager() const; |
|
95 |
|
96 |
|
97 private: |
|
98 |
|
99 TUid iFamilyId; |
|
100 const TDesC& iFamilyName; |
|
101 CNcdPurchaseHistoryDb* iPurchaseHistory; // not owned |
|
102 MNcdStorageManager* iStorageManager; // not owned |
|
103 MNcdConfigurationManager* iConfigurationManager; // not owned |
|
104 MNcdProtocol* iProtocolManager; // not owned |
|
105 CNcdHttpUtils* iHttpUtils; // not owned |
|
106 CNcdNodeManager* iNodeManager; // not owned |
|
107 MCatalogsAccessPointManager* iAccessPointManager; // not owned |
|
108 |
|
109 }; |
|
110 |
|
111 #include "ncdgeneralmanager.inl" |
|
112 |
|
113 #endif // C_NCD_GENERALMANAGER_H |