diff -r 000000000000 -r 5f000ab63145 phoneengine/PhoneCntFinder/ContactService/inc/mphcntstoreloader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/PhoneCntFinder/ContactService/inc/mphcntstoreloader.h Mon Jan 18 20:18:27 2010 +0200 @@ -0,0 +1,65 @@ +/* +* 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: Interface for loading contact stores. +* +*/ + + +#ifndef M_MPHCNTSTORELOADER_H +#define M_MPHCNTSTORELOADER_H + +#include + +class MPhCntStoreLoaderObserver; + +/** + * Interface for loading contact stores. + * + * @lib phonecntfinder.lib + * @since S60 v9.1 + */ +class MPhCntStoreLoader + { + +public: + + /** + * Destructor. + */ + virtual ~MPhCntStoreLoader() { }; + + /** + * Checks is the specified contact store loaded. + * + * @since S60 v9.1 + * @param aContactLink A contact link containing store to load. + * @return ETrue if store is loaded, EFalse otherwise. + */ + virtual TBool IsContactStoreLoaded( + const TDesC8& aContactLink ) const = 0; + + /** + * Starts to load specified contact store if not yet loaded. + * MPhCntStoreLoaderObserver::ContactStoreLoaded is called when contact + * store is loaded and ready for use. + * + * @since S60 v9.1 + * @param aContactLink A contact link containing store to load. + * @param aObserver An observer for the loading process. + */ + virtual void LoadContactStoreL( const TDesC8& aContactLink, + MPhCntStoreLoaderObserver& aObserver ) = 0; + }; + +#endif // M_MPHCNTSTORELOADER_H