diff -r 3104fc151679 -r 9a48e301e94b uiservicetab/vimpststorage/inc/cvimpststoragemanagerfactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/inc/cvimpststoragemanagerfactory.h Wed Sep 01 12:33:36 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 CVIMPSTStorageManagerFactory + * +*/ + + + +#ifndef CVIMPSTSTORAGEMANAGERFACTORY_H +#define CVIMPSTSTORAGEMANAGERFACTORY_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CVIMPSTStorageManager; +class MVIMPSTStorageServiceView; +class MVIMPSTStorageItemModel; + +// CLASS DECLARATION + +/** + * Factory to create contact and group list interfaces. + * @lib vimpststorage.lib + * @since S60 5.0 + */ +class CVIMPSTStorageManagerFactory : public CBase + { + public: // New functions + + /** + * Initialises the Library + */ + IMPORT_C static void InitialiseLibraryL(); + + /** + * Release the resources allocated + */ + IMPORT_C static TInt Release(); + + /** + * Inititalises the Store for the Service Id + * Must be called before using ContactListInterfaceL, + * ItemInterfaceL API's. + * @param aServiceId service id + * @param aStoreName storename for this service + * @param aServiceName ServiceName + */ + IMPORT_C static void InitialiseViewL( TUint32 aServiceId, + const TDesC& aStoreName, + const TDesC& aServiceName) ; + + /** + * Returns the pointer to MVIMPSTStorageServiceView + * this pointer can be used to perform numerous operations on + * contacts + * @param aServiceId service id + * @return MVIMPSTStorageServiceView* instance of the contact list interface + */ + IMPORT_C static MVIMPSTStorageServiceView* ContactListInterfaceL(TUint32 aServiceId); + + + + /** + * Returns the pointer to MVIMPSTStorageItemModel + * this pointer can be used to perform numerous operations on + * contactlist + * @param aServiceId service id + * @return MVIMPSTStorageItemModel* interface to itemmodel + */ + IMPORT_C static MVIMPSTStorageItemModel* ItemModelInterfaceL( TUint32 aServiceId ) ; + + + }; + +#endif // CVIMPSTSTORAGEMANAGERFACTORY_H + +// End of File