author | Mikko Sunikka <mikko.sunikka@nokia.com> |
Fri, 06 Nov 2009 13:05:00 +0200 | |
changeset 19 | 8d692d9f828f |
parent 10 | fc9cf246af83 |
child 23 | 50974a8b132e |
permissions | -rw-r--r-- |
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 observer for the CLF framework |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef __MGCLFOPERATIONOBSERVER_H |
|
20 |
#define __MGCLFOPERATIONOBSERVER_H |
|
21 |
||
22 |
||
23 |
#include <mclfoperationobserver.h> |
|
24 |
#include <e32base.h> |
|
25 |
||
26 |
class MCLFItemListModel; |
|
27 |
class MMgOperationObserver; |
|
28 |
class CMgService; |
|
10
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
29 |
class CAsynchRequestManager; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
30 |
class CPostFilter; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
31 |
class MCLFSortingStyle; |
5 | 32 |
|
33 |
// CLASS DECLARATION |
|
34 |
||
35 |
/** |
|
36 |
* CClfOperationObserver class is for observing operation events of CLF |
|
37 |
* Client application gets notified when asynchronous operations |
|
38 |
* are completed. |
|
39 |
* |
|
40 |
* @since Series60 v3.2 |
|
41 |
*/ |
|
42 |
NONSHARABLE_CLASS( CClfOperationObserver ) : public CBase, public MCLFOperationObserver |
|
43 |
{ |
|
44 |
public: |
|
45 |
||
46 |
/** |
|
47 |
* Two-phased constructor |
|
48 |
* @since Series60 v3.2 |
|
49 |
* @param void |
|
50 |
* @return CClfOperationObserver* Returns the instance of |
|
51 |
* CClfOperationObserver. |
|
52 |
*/ |
|
53 |
||
54 |
static CClfOperationObserver* NewL(); |
|
55 |
||
56 |
/** |
|
57 |
* method to get CLF Framework events. This method is |
|
58 |
* called when an event is received. |
|
59 |
* @param aOperationEvent Operation event code of the event |
|
60 |
* @param aError System wide error code if the operation did not |
|
61 |
* succeed. |
|
62 |
*/ |
|
63 |
virtual void HandleOperationEventL( TCLFOperationEvent aOperationEvent, |
|
64 |
TInt aError ); |
|
65 |
||
66 |
/** |
|
67 |
* Destructor. |
|
68 |
*/ |
|
69 |
virtual ~CClfOperationObserver(); |
|
70 |
||
71 |
/** |
|
72 |
* constructor |
|
73 |
* @since Series60 v3.2 |
|
74 |
* @param void |
|
75 |
* @return void |
|
76 |
*/ |
|
77 |
CClfOperationObserver(); |
|
78 |
||
79 |
||
80 |
/** |
|
81 |
* method to set callback of service class(i.e ServiceObserver) |
|
82 |
* @since Series60 v3.2 |
|
83 |
* @param aServiceObserver observer of the service class |
|
84 |
* @param aListModel Iterator of clf which contains the required result |
|
85 |
* @param aMGService Instance of service class |
|
86 |
*/ |
|
87 |
void SetMemberVar(TUint aTransactionID, |
|
88 |
MMgOperationObserver* aServiceObserver, |
|
89 |
MCLFItemListModel* aListModel, |
|
10
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
90 |
CMgService* aMGService,CAsynchRequestManager* aAsyncReqManager, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
91 |
CPostFilter* aFilter,MCLFSortingStyle* aSortingStyle); |
5 | 92 |
|
93 |
/** |
|
94 |
* Cancel the pending asynchronous request |
|
95 |
* @since Series60 v3.2 |
|
96 |
* @param void |
|
97 |
* @return void |
|
98 |
*/ |
|
99 |
void CancelL(); |
|
100 |
||
101 |
||
102 |
||
103 |
||
104 |
private: |
|
105 |
||
106 |
/** |
|
107 |
* Store the instance of the callback of service class |
|
108 |
*/ |
|
109 |
MMgOperationObserver* iServiceObserver; |
|
110 |
||
111 |
/** |
|
112 |
* stores the instance of list model of CLF Framework. |
|
113 |
*/ |
|
114 |
MCLFItemListModel* iListModel; |
|
115 |
||
116 |
/** |
|
117 |
* stores the instance of service class |
|
118 |
*/ |
|
119 |
CMgService* iMGService; |
|
120 |
/** |
|
121 |
* stores the TransactionID |
|
122 |
*/ |
|
123 |
TUint iTransactionID; |
|
10
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
124 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
125 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
126 |
* stores AsyncRequestManager instance |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
127 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
128 |
CAsynchRequestManager* iAsyncRequestManager; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
129 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
130 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
131 |
* store the instance of CPostfilter which filters the result |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
132 |
* as per the set filter criteria |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
133 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
134 |
CPostFilter* iFilter; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
135 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
136 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
137 |
* store the instance of sorting style which sorts the result |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
138 |
* as per the set sort criteria |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
139 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
140 |
MCLFSortingStyle* iSortingStyle; |
5 | 141 |
}; |
142 |
||
143 |
#endif __MGCLFOPERATIONOBSERVER_H |