|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Blocking attribute retriever |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_GLXATTRIBUTERETRIEVER_H |
|
21 #define C_GLXATTRIBUTERETRIEVER_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "mglxmedialistobserver.h" |
|
25 |
|
26 // Forward declarations |
|
27 class MGlxFetchContext; |
|
28 class MGlxMediaList; |
|
29 class CGlxAttributeRetrieverObj; |
|
30 |
|
31 const TInt KGlxFetchContextPriorityBlocking = KMaxTInt32; |
|
32 |
|
33 /** |
|
34 * GlxAttributeRetriever |
|
35 * |
|
36 * This class blocks until all requested metadata has been retrieved |
|
37 * |
|
38 * @ingroup mlm_media_list_manager_design |
|
39 * @lib glxuiutilities.lib |
|
40 */ |
|
41 NONSHARABLE_CLASS( GlxAttributeRetriever ) |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Retrieves all metadata required by the context |
|
46 * @param aContext Fetch context that informs what metadata needs to be retrieved |
|
47 * @param aList List for which metadata is required for |
|
48 * @param aShowDialog Whether to show a wait dialog while retrieval takes place. Should only |
|
49 * be false if there is another wait dialog already active |
|
50 * @return Error code |
|
51 */ |
|
52 static TInt RetrieveL(const MGlxFetchContext& aContext, MGlxMediaList& aList, TBool aShowDialog = ETrue); |
|
53 }; |
|
54 |
|
55 #endif // C_GLXATTRIBUTERETRIEVER_H |
|
56 |