|
1 /* |
|
2 * Copyright (c) 2007-2008 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: MIAUpdateContentOperationObserver |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_CONTENT_OPERATION_OBSERVER_H |
|
21 #define IA_UPDATE_CONTENT_OPERATION_OBSERVER_H |
|
22 |
|
23 #include <e32def.h> |
|
24 |
|
25 class CIAUpdateBaseNode; |
|
26 |
|
27 |
|
28 /** |
|
29 * MIAUpdateContentOperationObserver |
|
30 * Observer for content operations. |
|
31 */ |
|
32 class MIAUpdateContentOperationObserver |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * @param aNode Node whose content operation has finished. |
|
39 * @param aError Error code for the operation. |
|
40 */ |
|
41 virtual void ContentOperationComplete( CIAUpdateBaseNode& aNode, |
|
42 TInt aError ) = 0; |
|
43 |
|
44 /** |
|
45 * @param aNode Node whose content operation has progressed. |
|
46 * @param aProgress Progress at the moment. |
|
47 * @param aMaxProgress Maximum progress when the operation should |
|
48 * be ready. |
|
49 */ |
|
50 virtual void ContentOperationProgress( CIAUpdateBaseNode& aNode, |
|
51 TInt aProgress, |
|
52 TInt aMaxProgress ) = 0; |
|
53 |
|
54 protected: |
|
55 |
|
56 /** |
|
57 * Protected virtual destructor to prevent unwanted |
|
58 * deletions by the user. |
|
59 */ |
|
60 virtual ~MIAUpdateContentOperationObserver() { } |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // IA_UPDATE_CONTENT_OPERATION_OBSERVER_H |