|
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 a interface for the observer of |
|
15 * CMgService class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MGOPERATIONOBSERVER_H |
|
21 #define __MGOPERATIONOBSERVER_H |
|
22 |
|
23 |
|
24 class MCLFItemListModel; |
|
25 |
|
26 // CLASS DECLARATION |
|
27 /** |
|
28 * Operation Observer is for observing operation events of the mgservice class. |
|
29 * Client application gets notified when asynchronous operations |
|
30 * are completed. |
|
31 * |
|
32 * |
|
33 * @since Series60 v3.2 |
|
34 */ |
|
35 class MMgOperationObserver |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Abstract method to get CMgService class events. This method is |
|
42 * called when an event is received. |
|
43 * @since Series60 v3.2 |
|
44 * @param aListModel ClF iterator contains the required result |
|
45 * @param aOperationEvent specifies the asynchronous event |
|
46 * @param aError System wide error code if the operation did not |
|
47 * succeed. |
|
48 * @return void |
|
49 */ |
|
50 virtual void MgNotifyL(TUint aTransactionID, |
|
51 MCLFItemListModel* aListModel, |
|
52 TMgOperationEvent& aOperationEvent, |
|
53 const TInt& aError ) = 0; |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~MMgOperationObserver() {} |
|
59 |
|
60 }; |
|
61 |
|
62 #endif __MGOPERATIONOBSERVER_H |