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