5
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2007 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 the License "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: This class is the observer for thumbnail generation
|
|
15 |
* *
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef MGSERVICETHUMBNAILOBSERVER_H_
|
|
20 |
#define MGSERVICETHUMBNAILOBSERVER_H_
|
|
21 |
|
|
22 |
|
|
23 |
#include"mgthumbnailobserver.h"
|
|
24 |
|
|
25 |
class MLiwNotifyCallback;
|
|
26 |
|
|
27 |
// CLASS DECLARATION
|
|
28 |
/**
|
|
29 |
* It it observer for Thumbanil generation operation
|
|
30 |
* */
|
|
31 |
|
|
32 |
class CServiceThumbnailObserver : public CBase , public MThumbnailObserver
|
|
33 |
{
|
|
34 |
|
|
35 |
public:
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Returns the instance of CServiceThumbnailObserver.
|
|
39 |
* @since Series60 v3.2
|
|
40 |
* @param aCallback Callback
|
|
41 |
* @return CServiceThumbnailObserver
|
|
42 |
*/
|
|
43 |
|
|
44 |
static CServiceThumbnailObserver* NewL(MLiwNotifyCallback* aCallback);
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Abstract method to get thumbanil generation events. This method is
|
|
48 |
* called when an event is received.
|
|
49 |
* @since Series60 v3.2
|
|
50 |
* @param aError Error Code
|
|
51 |
* @param aThumbnailURL Url where thumbnail willbe present
|
|
52 |
* @param aTransactionID Transaction Id
|
|
53 |
*
|
|
54 |
*/
|
|
55 |
void ThumbnailReady(TInt aError, TDesC& aThumbnailURL,TInt32 aTransactionID);
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Abstract method gets called when thumbanil generation events get cancel. This method is
|
|
59 |
* called when an event is received.
|
|
60 |
* @since Series60 v3.2
|
|
61 |
* @param aError Error Code
|
|
62 |
* @param aTransactionID Transaction Id
|
|
63 |
*
|
|
64 |
*/
|
|
65 |
void ThumbnailRequestCancel(TInt aError,TInt32 aTransactionID);
|
|
66 |
|
|
67 |
~CServiceThumbnailObserver();
|
|
68 |
|
|
69 |
|
|
70 |
private:
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Constructor
|
|
74 |
* @param aCallback Liw callback
|
|
75 |
*
|
|
76 |
*/
|
|
77 |
CServiceThumbnailObserver(MLiwNotifyCallback* aCallback);
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Liw Call back.
|
|
81 |
*/
|
|
82 |
MLiwNotifyCallback* iCallBack ;
|
|
83 |
|
|
84 |
};
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
#endif /* MGSERVICETHUMBNAILOBSERVER_H_ */
|