natfw/tsrc/natfwtestconsoles/natfwtestconsole/inc/mcclink.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 __MCCLINK_H__
       
    22 #define __MCCLINK_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <in_sock.h>
       
    26 
       
    27 class CMccSession;
       
    28 
       
    29 class CMccLink : public CBase
       
    30     {
       
    31 public:
       
    32     static CMccLink* NewL( TInt aLinkType, TUint aIapId, CMccSession* aSession );
       
    33     
       
    34     void CreateLinkL( TInt32& aLinkId, TInetAddr& aDestAddr, TRequestStatus& aStatus );
       
    35     
       
    36     void CreateLinkL( TInt32& aLinkId, TInetAddr& aDestAddr, TUint aRtcpPort,
       
    37         TRequestStatus& aStatus );
       
    38     
       
    39     void SetRemoteAddressL( TInetAddr& aDestAddr );
       
    40     
       
    41     void SetRemoteAddressL( TInetAddr& aDestAddr, TUint aRtcpPort );
       
    42     
       
    43     TUint32 LinkId();
       
    44     
       
    45     TInt Close();
       
    46     
       
    47     virtual ~CMccLink();
       
    48     
       
    49 private:
       
    50     void ConstructL();
       
    51     
       
    52     CMccLink( TInt aLinkType, TUint aIapId, CMccSession* aSession );
       
    53     
       
    54 private: //data
       
    55     TInt iLinkType;
       
    56     TUint iIapId;
       
    57     CMccSession* iSession; // not own
       
    58     TUint32 iLinkId;
       
    59     
       
    60     };
       
    61 #endif