author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 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: Operation Observer is for observing operation events of the appservice class. |
|
15 |
* Client application gets notified when asynchronous operations |
|
16 |
* are completed. |
|
17 |
* |
|
18 |
*/ |
|
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
24 |
#include <liwcommon.h> |
19 | 25 |
#include "e32base.h" |
26 |
||
27 |
||
28 |
||
29 |
// CLASS DECLARATION |
|
30 |
/** |
|
31 |
* CThumbnailObserver Observer is for observing operation events of the mgservice class. |
|
32 |
* Client application gets notified when asynchronous operations |
|
33 |
* are completed. |
|
34 |
* |
|
35 |
* |
|
36 |
* @since Series60 v3.2 |
|
37 |
*/ |
|
38 |
||
39 |
class CThumbnailObserver : public CBase, public MLiwNotifyCallback |
|
40 |
{ |
|
41 |
||
42 |
public: |
|
43 |
||
44 |
/** |
|
45 |
* Abstract method to get mgservice class events. This method is |
|
46 |
* called when an event is received. |
|
47 |
* @since Series60 v3.2 |
|
48 |
* @param aReason indicates error code or sucess of asynch event |
|
49 |
* @return void |
|
50 |
*/ |
|
51 |
||
52 |
||
53 |
virtual TInt HandleNotifyL( |
|
54 |
TInt aCmdId, |
|
55 |
TInt aEventId, |
|
56 |
CLiwGenericParamList& aEventParamList, |
|
57 |
const CLiwGenericParamList& aInParamList); |
|
58 |
||
59 |
||
60 |
/** |
|
61 |
* Destructor. |
|
62 |
*/ |
|
63 |
virtual ~CThumbnailObserver() { |
|
64 |
if(iThumbnailPath) |
|
65 |
{ |
|
66 |
delete iThumbnailPath; |
|
67 |
iThumbnailPath = NULL; |
|
68 |
} |
|
69 |
} |
|
70 |
||
71 |
/** |
|
72 |
* NewL function . |
|
73 |
*/ |
|
74 |
||
75 |
static CThumbnailObserver* NewL(CActiveSchedulerWait * aWait,TInt aWidth, TInt aHeight); |
|
76 |
||
77 |
||
78 |
TInt32 iReason; |
|
79 |
||
80 |
TInt32 iErrorReturn; |
|
81 |
||
82 |
||
83 |
TBool iCancel; |
|
84 |
HBufC* iThumbnailPath ; |
|
85 |
||
86 |
private: |
|
87 |
||
88 |
CThumbnailObserver(CActiveSchedulerWait*aWait,TInt aWidth, TInt aHeight); |
|
89 |
||
90 |
CActiveSchedulerWait* iWait; |
|
91 |
||
92 |
TInt iWidth; |
|
93 |
TInt iHeight; |
|
94 |
||
95 |
||
96 |
||
97 |
||
98 |
||
99 |
}; |
|
100 |