|
1 /* |
|
2 * Copyright (c) 2008 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 Manager Stub |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #ifndef TNMGR_STUB_H_ |
|
21 #define TNMGR_STUB_H_ |
|
22 |
|
23 class CFbsBitmap; |
|
24 class MThumbnailData; |
|
25 //class MThumbnailManagerObserver; |
|
26 |
|
27 typedef TInt TThumbnailRequestId; |
|
28 |
|
29 class MThumbnailManagerObserver |
|
30 { |
|
31 public: |
|
32 |
|
33 virtual void ThumbnailPreviewReady( MThumbnailData& aThumbnail, |
|
34 TThumbnailRequestId aId ) = 0; |
|
35 |
|
36 virtual void ThumbnailReady( TInt aError, MThumbnailData& aThumbnail, |
|
37 TThumbnailRequestId aId ) = 0; |
|
38 }; |
|
39 |
|
40 |
|
41 class CThumbnailObjectSource : public CBase |
|
42 { |
|
43 public: |
|
44 |
|
45 CThumbnailObjectSource( CFbsBitmap* aBitmap, const TDesC& aUri ); |
|
46 virtual ~CThumbnailObjectSource(); |
|
47 static CThumbnailObjectSource* NewL( CFbsBitmap* aBitmap, const TDesC& aUri ); |
|
48 }; |
|
49 |
|
50 |
|
51 |
|
52 class CThumbnailManager : public CBase |
|
53 { |
|
54 |
|
55 public: |
|
56 |
|
57 CThumbnailManager( MThumbnailManagerObserver& aObserver ); |
|
58 virtual ~CThumbnailManager(); |
|
59 static CThumbnailManager* NewL( MThumbnailManagerObserver& aObserver ); |
|
60 |
|
61 TThumbnailRequestId SetThumbnailL( CThumbnailObjectSource& source ); |
|
62 |
|
63 public: |
|
64 MThumbnailManagerObserver& iObserver; |
|
65 }; |
|
66 |
|
67 |
|
68 #endif /* TNMGR_STUB_H_ */ |