natfw/natfwconnectionmultiplexer/inc/mncmconnectionmultiplexerobserver.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-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:    Observer interface used to receive notifications from
       
    15 *                Connection Multiplexer.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef M_MNCMCONNECTIONMULTIPLEXEROBSERVER_H
       
    23 #define M_MNCMCONNECTIONMULTIPLEXEROBSERVER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 class TInetAddr;
       
    28 
       
    29 /**
       
    30  *  Observer interface used to receive notifications from
       
    31  *  Connection Multiplexer
       
    32  *
       
    33  *  @lib connectionmux.lib
       
    34  *  @since S60 v3.2
       
    35  */
       
    36 class MNcmConnectionMultiplexerObserver
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     /**  Types of notifies */
       
    42     enum TNotifyType
       
    43         {
       
    44         ESessionCreated         = 1,
       
    45         EReceivingActivated     = 2,
       
    46         EReceivingDeactivated   = 3,
       
    47         ESendingActivated       = 4,
       
    48         ESendingDeactivated     = 5,
       
    49         EStreamError            = 6
       
    50         };
       
    51 
       
    52     /**
       
    53      * Called by Connection Multiplexer when actions completes
       
    54      *
       
    55      * @since   S60 v3.2
       
    56      * @param   aSessionId      The ID identifying session
       
    57      * @param   aStreamId       The ID identifying stream
       
    58      * @param   aType           Type of notify
       
    59      * @param   aError          Error code. KErrNone if successful.
       
    60      * @return void
       
    61      */
       
    62     virtual void Notify( TUint aSessionId, TUint aStreamId,
       
    63         TNotifyType aType, TInt aError ) = 0;       
       
    64     };
       
    65 
       
    66 
       
    67 #endif // M_MNCMCONNECTIONMULTIPLEXEROBSERVER_H