|
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: Thumbnail creator client interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 * @internal reviewed 30/07/2007 by Simon Brooks |
|
22 */ |
|
23 |
|
24 #ifndef M_GLXTNTHUMBNAILCREATORCLIENT_H |
|
25 #define M_GLXTNTHUMBNAILCREATORCLIENT_H |
|
26 |
|
27 // INCLUDES |
|
28 |
|
29 #include <e32std.h> |
|
30 #include <glxthumbnailinfo.h> |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 class CGlxtnFileInfo; |
|
35 class MGlxtnThumbnailStorage; |
|
36 class TGlxMediaId; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Interface for clients of the TNC. |
|
42 * |
|
43 * @ingroup glx_thumbnail_creator |
|
44 */ |
|
45 class MGlxtnThumbnailCreatorClient |
|
46 { |
|
47 public: |
|
48 /** |
|
49 * Notifies that a thumbnail for a given item is available, or that |
|
50 * thumbnail generation failed. |
|
51 * @param aItemId The item for which the thumbnail was required. |
|
52 * @param aQuality quality of the thumbnail |
|
53 * @param aErrorCode KErrNone if successful, otherwise an error code. |
|
54 */ |
|
55 virtual void ThumbnailFetchComplete(const TGlxMediaId& aItemId, |
|
56 TGlxThumbnailQuality aQuality, TInt aErrorCode) = 0; |
|
57 /** |
|
58 * Notifies that deletion of thumbnails for a given item is complete, or |
|
59 * the operation failed. |
|
60 * @param aItemId The item whose thumbnails were deleted. |
|
61 * @param aErrorCode KErrNone if successful, otherwise an error code. |
|
62 */ |
|
63 virtual void ThumbnailDeletionComplete(const TGlxMediaId& aItemId, |
|
64 TInt aErrorCode) = 0; |
|
65 /** |
|
66 * Notifies that filtering items with available thumbnails from a list is |
|
67 * complete, or the operation failed. |
|
68 * @param aIdArray Array of IDs of items which don't have a thumbnail |
|
69 * available. |
|
70 * @param aErrorCode KErrNone if successful, otherwise an error code. |
|
71 */ |
|
72 virtual void FilterAvailableComplete(const RArray<TGlxMediaId>& aIdArray, |
|
73 TInt aErrorCode) = 0; |
|
74 /** |
|
75 * Called by a task to request file information for an item. The |
|
76 * information is returned asynchronously. |
|
77 * @param aInfo Buffer to hold the information. |
|
78 * @param aItemId The item for which the URI is required. |
|
79 * @param aStatus Request status for the asynchronous operation. |
|
80 */ |
|
81 virtual void FetchFileInfoL(CGlxtnFileInfo* aInfo, |
|
82 const TGlxMediaId& aItemId, TRequestStatus* aStatus) = 0; |
|
83 /** |
|
84 * Cancel the request for an URI. |
|
85 * @param aItemId The item for which the URI was required. |
|
86 */ |
|
87 virtual void CancelFetchUri(const TGlxMediaId& aItemId) = 0; |
|
88 /** |
|
89 * Get the thumbnail storage used by this client. |
|
90 * @return Pointer to the storage. |
|
91 */ |
|
92 virtual MGlxtnThumbnailStorage* ThumbnailStorage() = 0; |
|
93 }; |
|
94 |
|
95 #endif // M_GLXTNTHUMBNAILCREATORCLIENT_H |
|
96 |
|
97 // End of File |