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