|
1 /* |
|
2 * Copyright (c) 2002-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: A store info implementation for the contact model |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKCNTMODEL_CCONTACTSTOREINFO_H |
|
21 #define VPBKCNTMODEL_CCONTACTSTOREINFO_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MVPbkContactStoreInfo.h> |
|
26 |
|
27 namespace VPbkCntModel { |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CContactStore; |
|
31 class CContactStoreDomain; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * A store info implementation for the contact model |
|
37 * |
|
38 */ |
|
39 NONSHARABLE_CLASS( CContactStoreInfo ): public CBase, |
|
40 public MVPbkContactStoreInfo |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * @param aStore the contact model store |
|
47 * @param aDomain the contact model store domain |
|
48 * @return a new instance of this class |
|
49 */ |
|
50 static CContactStoreInfo* NewL(CContactStore& aStore, |
|
51 CContactStoreDomain& aDomain); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CContactStoreInfo(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * From MVPbkContactStoreInfo |
|
64 */ |
|
65 TInt MaxNumberOfContactsL() const; |
|
66 |
|
67 /** |
|
68 * From MVPbkContactStoreInfo |
|
69 */ |
|
70 TInt NumberOfContactsL() const; |
|
71 |
|
72 /** |
|
73 * From MVPbkContactStoreInfo |
|
74 */ |
|
75 TInt64 ReservedMemoryL() const; |
|
76 |
|
77 /** |
|
78 * From MVPbkContactStoreInfo |
|
79 */ |
|
80 TInt64 FreeMemoryL() const; |
|
81 |
|
82 /** |
|
83 * From MVPbkContactStoreInfo |
|
84 */ |
|
85 TInt MaxNumberOfGroupsL() const; |
|
86 |
|
87 /** |
|
88 * From MVPbkContactStoreInfo |
|
89 */ |
|
90 TInt NumberOfGroupsL() const; |
|
91 |
|
92 private: // Construction |
|
93 |
|
94 /** |
|
95 * C++ default constructor. |
|
96 */ |
|
97 CContactStoreInfo(CContactStore& aStore, CContactStoreDomain& aDomain); |
|
98 |
|
99 private: // Data |
|
100 CContactStore& iStore; |
|
101 CContactStoreDomain& iDomain; |
|
102 }; |
|
103 } // namespace VPbkCntModel |
|
104 #endif // VPBKCNTMODEL_CCONTACTSTOREINFO_H |
|
105 |
|
106 // End of File |