uiservicetab/vimpststorage/inc/cvimpststoragemanagerfactory.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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:  Declaration of CVIMPSTStorageManagerFactory
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVIMPSTSTORAGEMANAGERFACTORY_H
       
    21 #define CVIMPSTSTORAGEMANAGERFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CVIMPSTStorageManager;
       
    29 class MVIMPSTStorageServiceView;
       
    30 class MVIMPSTStorageItemModel;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Factory to create contact and group list interfaces.
       
    36  * @lib vimpststorage.lib
       
    37  * @since S60 5.0 
       
    38  */
       
    39 class CVIMPSTStorageManagerFactory : public CBase
       
    40     {
       
    41     public: // New functions
       
    42 
       
    43         /**
       
    44          * Initialises the Library
       
    45          */
       
    46          IMPORT_C static void InitialiseLibraryL();
       
    47          
       
    48         /**
       
    49          * Release the resources allocated 
       
    50          */
       
    51          IMPORT_C static TInt Release();
       
    52          
       
    53 		/**
       
    54          * Inititalises the Store for the Service Id
       
    55          * Must be called before using  ContactListInterfaceL,
       
    56          * ItemInterfaceL API's.
       
    57          * @param aServiceId service id
       
    58          * @param aStoreName storename for this service
       
    59          * @param aServiceName ServiceName
       
    60          */         
       
    61          IMPORT_C static void InitialiseViewL( TUint32 aServiceId,
       
    62 										const TDesC& aStoreName,
       
    63 										const TDesC& aServiceName) ;
       
    64          
       
    65         /**
       
    66          * Returns the pointer to MVIMPSTStorageServiceView
       
    67          * this pointer can be used to perform numerous operations on
       
    68          * contacts
       
    69          * @param aServiceId service id 
       
    70          * @return MVIMPSTStorageServiceView* instance of the contact list interface
       
    71          */
       
    72          IMPORT_C static  MVIMPSTStorageServiceView* ContactListInterfaceL(TUint32 aServiceId);
       
    73          
       
    74          
       
    75          
       
    76          /**
       
    77          * Returns the pointer to MVIMPSTStorageItemModel
       
    78          * this pointer can be used to perform numerous operations on
       
    79          * contactlist
       
    80          * @param aServiceId service id 
       
    81          * @return MVIMPSTStorageItemModel* interface to itemmodel
       
    82          */
       
    83          IMPORT_C static MVIMPSTStorageItemModel* ItemModelInterfaceL( TUint32 aServiceId ) ;
       
    84         
       
    85           
       
    86     };
       
    87 
       
    88 #endif      // CVIMPSTSTORAGEMANAGERFACTORY_H
       
    89 
       
    90 // End of File