uiservicetab/vimpststorage/inc/cvimpststoragemanager.h
author ssb
Thu, 24 Jun 2010 22:37:00 +0530
changeset 21 dd5904dc0ea9
parent 0 5e5d6b214f4f
permissions -rw-r--r--
Bug 1704 - Add template type signature to super class call. Also remove some over qualified method names.<Peter Fordham>

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Declaration of storage manager class
 *
*/



#ifndef CVIMPSTSTORAGEMANAGER_H
#define CVIMPSTSTORAGEMANAGER_H

//  INCLUDES
#include <e32std.h>
#include <e32base.h>

// FORWARD DECLARATIONS
class CVIMPSTStorageServiceView;

// CLASS DECLARATION

/**
 *  Factory to create contact and group list interfaces.
 */
class CVIMPSTStorageManager : public CBase
    {
    public: // New functions

		/**
         * Initialises the Library
         */
        static void InitialiseLibraryL();
         
        /**
         * Release the resources allocated 
         */
       	static TInt Release();
        
        /**
         * Returns the instance of Storagemanager
         * @return CVIMPSTStorageManager pointer
         */ 
       	static  CVIMPSTStorageManager& Instance();
         
       
        /**
         * Creates object of viewid 
         * @param aServiceId - Service Id
         * @param ContactStoreName
         * @param aServiceName ServiceName
         * @return CVIMPSTStorageViewId pointer
         */
        CVIMPSTStorageServiceView* CreateServiceViewL(TUint32 aServiceId,
        							const TDesC& aStoreName,
        							const TDesC& aServiceName);
        
        /**
         * Find the storage views index
         * @param aServiceId - Service Id
         * @return index of the view
         */
         TInt FindServiceView(TUint32 aServiceId);
         
         
        /**
         * Romoves the storage view from the array.
         * @param aServiceId - Service Id
         */
         void RemoveServiceView(TUint32 aServiceId);
         
        /**
         * Destructor
         */
          ~CVIMPSTStorageManager();

    private:
    
        /**
         * Two-phased constructor.
         */
        static CVIMPSTStorageManager* NewL();
        
        // ConstructL
        void ConstructL();
  
       
    private:
    
    	// list of storage viewsn created for diff services
    	// owns
        RPointerArray< CVIMPSTStorageServiceView > iServiceViewList; 
       
    };

#endif      // CVIMPSTSTORAGEMANAGER_H

// End of File