multimediacommsengine/mmcesrv/mmceserver/inc/mcenatevents.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 #ifndef MCENATEVENTS_H
       
    21 #define MCENATEVENTS_H
       
    22 
       
    23 #include "mceevents.h"
       
    24 #include "mceclientserver.h"
       
    25 
       
    26 class MMceNatActions;
       
    27 class CSdpDocument;
       
    28 
       
    29 enum TMceNatEventCode 
       
    30     {
       
    31     EMceNatInitialized,
       
    32     EMceNatOffer,
       
    33     EMceNatAnswer,
       
    34     EMceNatUpdateSdp,
       
    35     EMceNatError,
       
    36     EMceNatHandleSIP,
       
    37     EMceNatUpdated,
       
    38     EMceNatSync,
       
    39     EMceNatICMPError
       
    40     };
       
    41 
       
    42 /**
       
    43  * Nat transition event
       
    44  *
       
    45  * @lib 
       
    46  */
       
    47 class TMceNatStateTransitionEvent : public TMceStateTransitionEvent
       
    48     {
       
    49 public:
       
    50 
       
    51     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    52                                  MMceNatActions& aNatActions,
       
    53                                  TMceNatEventCode aNatCode,
       
    54                                  CMceSipSession& aSession, 
       
    55                                  TMceSipEventCode aCode );
       
    56 
       
    57     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    58                                  MMceNatActions& aNatActions,
       
    59                                  TMceNatEventCode aNatCode,
       
    60                                  CMceSipSession& aSession, 
       
    61                                  TMceSipEventCode aCode, 
       
    62                                  TInt aStatus );
       
    63     
       
    64     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    65                                  MMceNatActions& aNatActions,
       
    66                                  TMceNatEventCode aNatCode,
       
    67                                  CMceSipSession& aSession, 
       
    68                                  TMceItcFunctions aCode, 
       
    69                                  TMceIds& aIds, 
       
    70                                  CMceMsgBase& aClientMessage );
       
    71 
       
    72     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    73                                  MMceNatActions& aNatActions,
       
    74                                  TMceNatEventCode aNatCode,
       
    75                                  CMceSipSession& aSession, 
       
    76                                  TMceItcFunctions aCode, 
       
    77                                  TMceIds& aIds );
       
    78 
       
    79     //updated & reserved & session closed
       
    80     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    81                                  MMceNatActions& aNatActions,
       
    82                                  TMceNatEventCode aNatCode,
       
    83                                  CMceSipSession& aSession, 
       
    84                                  TMceMediaEventCode aCode );
       
    85     
       
    86     //media error
       
    87     TMceNatStateTransitionEvent( CSdpDocument* aDoc,
       
    88                                  MMceNatActions& aNatActions,
       
    89                                  TMceNatEventCode aNatCode,
       
    90                                  CMceSipSession& aSession,
       
    91                                  TMceMccComEvent& aEvent, 
       
    92                                  TMceMediaEventCode aCode );
       
    93     
       
    94     CSdpDocument* Document();
       
    95     MMceNatActions& NatActions();
       
    96     TUint& NatCode();
       
    97     
       
    98 private:
       
    99 
       
   100     CSdpDocument* iDocument; // not owned
       
   101     MMceNatActions& iNatActions;
       
   102     TUint iNatCode;
       
   103     
       
   104     };
       
   105 
       
   106 #endif // MCENATEVENTS_H
       
   107 
       
   108 // End of File