applayerprotocols/httptransportfw/Test/testhttpmessage/mtestobserver.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2003-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 MTESTOBSERVER_H_
       
    17 #define MTESTOBSERVER_H_
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 /**	@class		MTestObserver
       
    22 	The MTestObserver class is the observer for the driver objects. It allows
       
    23 	the drivers to notify the observer of when a test starts, an error occurs 
       
    24 	and when a test completes. Also provides a logging mechanism.
       
    25 	@componentInternal
       
    26 	@see		CDriverBase
       
    27 */
       
    28 class MTestObserver
       
    29 	{
       
    30 public:	// methods
       
    31 
       
    32 /**	@fn			NotifyError(TInt aError) =0
       
    33 	Notifies the observer that an error has occured.
       
    34 	@componentInternal
       
    35 	@param		aError	The error code that has occured.
       
    36 */
       
    37 	virtual void NotifyError(TInt aError) =0;
       
    38 
       
    39 /**	@fn			NotifyStart() =0
       
    40 	Notifies the observer that the test has started.
       
    41 	@componentInternal
       
    42 */
       
    43 	virtual void NotifyStart() =0;
       
    44 
       
    45 /**	@fn			NotifyComplete() =0
       
    46 	Notifies the observer that the test has completed.
       
    47 	@componentInternal
       
    48 */
       
    49 	virtual void NotifyComplete() =0;
       
    50 	};
       
    51 #endif /* MTESTOBSERVER_H_ */