diff -r f7f0874bfe7d -r 74c9f037fd5d ui/uiengine/medialistwrapper/inc/glxattributeretriever.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/uiengine/medialistwrapper/inc/glxattributeretriever.h Fri Mar 19 09:28:59 2010 +0200 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2008-2009 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: Blocking attribute retriever +* +*/ + + + +#ifndef C_GLXATTRIBUTERETRIEVER_H +#define C_GLXATTRIBUTERETRIEVER_H + +#include +#include "mglxmedialistobserver.h" + +// Forward declarations +class MGlxFetchContext; +class MGlxMediaList; +class CGlxAttributeRetrieverObj; + +const TInt KGlxFetchContextPriorityBlocking = KMaxTInt32; + +/** + * GlxAttributeRetriever + * + * This class blocks until all requested metadata has been retrieved + * + * @ingroup mlm_media_list_manager_design + * @lib glxuiutilities.lib + */ +NONSHARABLE_CLASS( GlxAttributeRetriever ) + { +public: + /** + * Retrieves all metadata required by the context + * @param aContext Fetch context that informs what metadata needs to be retrieved + * @param aList List for which metadata is required for + * @param aShowDialog Whether to show a wait dialog while retrieval takes place. Should only + * be false if there is another wait dialog already active + * @return Error code + */ + static TInt RetrieveL(const MGlxFetchContext& aContext, MGlxMediaList& aList, TBool aShowDialog = ETrue); + }; + +#endif // C_GLXATTRIBUTERETRIEVER_H +