|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef REMCONERROROBSERVER_H |
|
17 #define REMCONERROROBSERVER_H |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedAll |
|
22 @released |
|
23 */ |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 /** |
|
28 This class defines an error notification interface. This is |
|
29 intended for use in the situation where a client application |
|
30 needs to know about an error that has occurred passively. |
|
31 This is not used in situations where a client application |
|
32 makes a call that returns an error. |
|
33 |
|
34 The main use is where a target application is sitting waiting |
|
35 to receive commands and the server dies. It needs to know if |
|
36 this has happened so that it can restart the server if it |
|
37 wishes. |
|
38 */ |
|
39 class MRemConErrorObserver |
|
40 { |
|
41 public: |
|
42 /** |
|
43 This is called in the case of a session error that has |
|
44 occurred passively and cannot be notified via completion |
|
45 of an outstanding call made by the client application. |
|
46 |
|
47 @param aError The error that has occurred. If this is |
|
48 KErrServerTerminated, the error is fatal and the |
|
49 server must be restarted before any new |
|
50 messages can be received. |
|
51 */ |
|
52 virtual void MrceoError(TInt aError) = 0; |
|
53 }; |
|
54 |
|
55 #endif // REMCONERROROBSERVER_H |