equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-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: A command observer API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MVPBKSIMCOMMANDOBSERVER_H |
|
21 #define MVPBKSIMCOMMANDOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MVPbkSimCommand; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * A command observer API |
|
33 * |
|
34 */ |
|
35 class MVPbkSimCommandObserver |
|
36 { |
|
37 public: // New functions |
|
38 |
|
39 /** |
|
40 * Called after command executed successfully |
|
41 * @param aCommand the command that completed |
|
42 */ |
|
43 virtual void CommandDone( MVPbkSimCommand& aCommand ) = 0; |
|
44 |
|
45 /** |
|
46 * Called if command execution failed |
|
47 * @param aCommand the command that completed |
|
48 * @param the error code from the failed command |
|
49 */ |
|
50 virtual void CommandError( MVPbkSimCommand& aCommand, TInt aError ) = 0; |
|
51 |
|
52 protected: // Destructor |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~MVPbkSimCommandObserver() {} |
|
58 }; |
|
59 |
|
60 #endif // MVPBKSIMCOMMANDOBSERVER_H |
|
61 |
|
62 // End of File |