equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 "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: MNcdAsyncOperationObserver |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_ASYNC_OPERATION_OBSERVER_H |
|
20 #define NCD_ASYNC_OPERATION_OBSERVER_H |
|
21 |
|
22 /** |
|
23 * MNcdAsyncOperationObserver |
|
24 * |
|
25 * Provides callback function that may be called when an |
|
26 * asynchronous operation has been completed. |
|
27 * |
|
28 * @see CNcdActiveOperationObserver |
|
29 */ |
|
30 class MNcdAsyncOperationObserver |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 /** |
|
36 * This callback function may be called when an asynchronous operation |
|
37 * has been completed. |
|
38 * |
|
39 * @param aError Gives the error code of the completed operation. |
|
40 * |
|
41 * @since S60 v3.2 |
|
42 */ |
|
43 virtual void AsyncOperationComplete( TInt aError ) = 0; |
|
44 |
|
45 |
|
46 protected: |
|
47 |
|
48 /** |
|
49 * The destructor of an interface is set virtual to make sure that |
|
50 * the destructors of derived classes are called appropriately when the |
|
51 * object is destroyed. |
|
52 * |
|
53 * Destructor is defined as protected to prevent direct use of delete on |
|
54 * observer interface pointer. |
|
55 * |
|
56 * @since S60 v3.2 |
|
57 */ |
|
58 virtual ~MNcdAsyncOperationObserver() { } |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // NCD_ASYNC_OPERATION_OBSERVER_H |