diff -r 000000000000 -r 1bce908db942 multimediacommsengine/tsrc/testdriver/testclient/net/inc/MTcBearerObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multimediacommsengine/tsrc/testdriver/testclient/net/inc/MTcBearerObserver.h Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: See class definition below. +* +*/ + +#ifndef __MTCBEAREROBSERVER_H__ +#define __MTCBEAREROBSERVER_H__ + +// INCLUDES +#include + +// CLASS DEFINITION +/** + * MTcBearerObserver defines an interface for receiving bearer related + * events such as transfer completion notifications. + * Users of MTcBearerManager should implement this interface. + */ +class MTcBearerObserver + { + public: // Enumerations + + /// Identifies completed operations + enum TOperation + { + /// Unknown operation + EUnknown, + /// The connection reached listening state + EListen, + // + EConnecting, + /// The connection reached connected state + EConnect, + /// The connection finished a send operation + ESend, + /// The connection finished a receive operation + EReceive + }; + + protected: // Constructors and destructor + + /// Virtual destructor. Prohibit deletion through this interface. + virtual ~MTcBearerObserver() {} + + public: // Abstract methods + + /** + * Called by an observer connection object after a state transition. + * + * @param aOp Operation that completed + * @param aStatus System-wide error code or KErrNone + */ + virtual void BearerCompletion( MTcBearerObserver::TOperation aOp, + TInt aStatus ) = 0; + + }; + +#endif // __MTCBEAREROBSERVER_H__