diff -r 000000000000 -r 094583676ce7 wvuing/wvuistorage/inc/CCAStorageManagerFactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wvuing/wvuistorage/inc/CCAStorageManagerFactory.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2003 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: Header for contact and group list interface factory + * +*/ + + + +#ifndef CCASTORAGEMANAGERFACTORY_H +#define CCASTORAGEMANAGERFACTORY_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CCAStorageManager; +class MCAStoredContacts; +class MCAStoredGroups; + +// CLASS DECLARATION + +/** + * Factory to create contact and group list interfaces. + * + * @lib CCAStorage.dll + * @since 2.1 + */ +class CCAStorageManagerFactory : public CBase + { + public: // New functions + + /** + * Caller must NOT delete the returned pointer, it is a Singleton. + * @return Interface for contact list + */ + IMPORT_C static MCAStoredContacts* ContactListInterfaceL(); + + /** + * Caller must NOT delete the returned pointer, it is a Singleton. + * @return Interface for group list + */ + IMPORT_C static MCAStoredGroups* GroupListInterfaceL(); + + /** + * Releases ContactListInterface and GroupListInterface. + * Actually those two interfaces are currently implemented + * in one same singleton. So releasing this singleton release + * both interfaces. + */ + IMPORT_C static void ReleaseL(); + }; + +#endif // CCASTORAGEMANAGERFACTORY_H + +// End of File