natfw/natfwicecandidatehandler/inc/micenatplugineventobs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_MICENATPLUGINEVENTOBS_H
       
    22 #define M_MICENATPLUGINEVENTOBS_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class CNATFWPluginApi;
       
    27 
       
    28 /**
       
    29  *  Observer interface for clients interested to receive NAT plugin events.
       
    30  *
       
    31  *  @lib icecandidatehandler.dll
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 class MIceNatPluginEventObs
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**  NAT plugin events */
       
    40     enum TNatPluginEvent
       
    41         {
       
    42         EFirstPluginEventInd    = 0,
       
    43         EServerConnected        = 0,
       
    44         ELocalCandidateFound    = 1,
       
    45         EFetchingCompleted      = 2,
       
    46         ETcpConnSetupCompleted  = 3,
       
    47         EReceivingActivated     = 4,
       
    48         EReceivingDeactivated   = 5,
       
    49         ESendingActivated       = 6,
       
    50         ESendingDeactivated     = 7,
       
    51         ECandidatePairFound     = 8,
       
    52         EConnChecksCompleted    = 9,
       
    53         EGeneralError           = 10,
       
    54         ELastPluginEventInd     = 10
       
    55         };
       
    56     
       
    57     /**
       
    58      * Notifies about plugin event.
       
    59      *  
       
    60      * @since   S60 v3.2
       
    61      * @param   aPlugin         The plugin raising the event
       
    62      * @param   aStreamId       The stream identifier
       
    63      * @param   aEventCode      The code specifying event
       
    64      * @param   aErrorCode      The error code associated with the event
       
    65      * @param   aEventData      Optional event data
       
    66      */
       
    67     virtual void PluginEventOccured( const CNATFWPluginApi* aPlugin,
       
    68         TUint aStreamId, TNatPluginEvent aEventCode, TInt aErrorCode, 
       
    69         TAny* aEventData, TUint aStreamConnectionId = 0,
       
    70         TUint aComponentId = 0, TBool aIPv6After = EFalse ) = 0;
       
    71 
       
    72     };
       
    73 
       
    74 
       
    75 #endif // M_MICENATPLUGINEVENTOBS_H