williamr@2: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef REMCONERROROBSERVER_H williamr@2: #define REMCONERROROBSERVER_H williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #include williamr@2: williamr@2: /** williamr@2: This class defines an error notification interface. This is williamr@2: intended for use in the situation where a client application williamr@2: needs to know about an error that has occurred passively. williamr@2: This is not used in situations where a client application williamr@2: makes a call that returns an error. williamr@2: williamr@2: The main use is where a target application is sitting waiting williamr@2: to receive commands and the server dies. It needs to know if williamr@2: this has happened so that it can restart the server if it williamr@2: wishes. williamr@2: */ williamr@2: class MRemConErrorObserver williamr@2: { williamr@2: public: williamr@2: /** williamr@2: This is called in the case of a session error that has williamr@2: occurred passively and cannot be notified via completion williamr@2: of an outstanding call made by the client application. williamr@2: williamr@2: @param aError The error that has occurred. If this is williamr@2: KErrServerTerminated, the error is fatal and the williamr@2: server must be restarted before any new williamr@2: messages can be received. williamr@2: */ williamr@2: virtual void MrceoError(TInt aError) = 0; williamr@2: }; williamr@2: williamr@2: #endif // REMCONERROROBSERVER_H