realtimenetprots/sipfw/SIP/Common/inc/TSIPTransportParams.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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 * Name          : TSIPTransportParams.h
       
    16 * Part of       : SIP Common
       
    17 * Version       : SIP/5.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef TSIPTRANSPORTPARAMS_H
       
    30 #define TSIPTRANSPORTPARAMS_H
       
    31 
       
    32 #include <e32std.h>
       
    33 
       
    34 class MSIPNATBindingObserver;
       
    35 
       
    36 /**
       
    37 * A container for transport parameters used in SIP ConnectioMgr.
       
    38 */
       
    39 class TSIPTransportParams
       
    40     {
       
    41     public: // Contructors
       
    42 
       
    43         inline TSIPTransportParams(const TUint32& aOwnerId,
       
    44                                    const TUint32& aIapId=0);
       
    45         inline TSIPTransportParams(const TSIPTransportParams& aParams);
       
    46 
       
    47     public: // New functions
       
    48 
       
    49         inline void SetOwnerId(TUint32 aOwnerId);
       
    50         inline TUint32 OwnerId() const;
       
    51 
       
    52         inline void SetIapId(const TUint32& aIapId);
       
    53         inline TUint32 IapId() const;
       
    54 
       
    55         inline void SetTransportId(const TUint32& aTransportId);
       
    56         inline TUint32 TransportId() const;
       
    57         
       
    58         inline void SetCompartmentId(const TUint32& aCompartmentId);
       
    59         inline TUint32 CompartmentId() const;
       
    60         
       
    61         inline void SetIgnoreCompartmentId(TBool aIgnoreCompartmentId);
       
    62         inline TBool IgnoreCompartmentId() const;
       
    63 
       
    64         inline void SetNATBindingObserver(MSIPNATBindingObserver* aObserver);
       
    65         inline MSIPNATBindingObserver* NATBindingObserver();
       
    66 
       
    67         inline TSIPTransportParams& 
       
    68             operator=(const TSIPTransportParams& aParams);
       
    69             
       
    70         inline void SetSkipNaptrAndSrv(TBool aSkipNaptrAndSrv);
       
    71         inline TBool SkipNaptrAndSrv() const;
       
    72 
       
    73     private: // Data
       
    74 
       
    75         TUint32 iOwnerId;
       
    76         TUint32 iIapId;
       
    77         TUint32 iTransportId;
       
    78         TUint32 iCompartmentId;
       
    79         TBool iIgnoreCompartmentId;
       
    80         MSIPNATBindingObserver* iNATBindingObserver;
       
    81         TBool iSkipNaptrAndSrv;
       
    82     };
       
    83 
       
    84 #include "TSIPTransportParams.inl"
       
    85 
       
    86 #endif // TSIPTRANSPORTPARAMS_H
       
    87 
       
    88 // End of File