realtimenetprots/sipfw/SIP/SigCompController/DefaultPlugin/inc/MCompartmentUserOwner.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-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          : MCompartmentUserOwner.h
       
    16 * Part of       : SIP SigComp Controller
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef __MCOMPARTMENTUSEROWNER_H__
       
    30 #define __MCOMPARTMENTUSEROWNER_H__
       
    31 
       
    32 #include <e32base.h>
       
    33 
       
    34 class CSipSigCompCompartmentCtx;
       
    35 
       
    36 class MCompartmentUserOwner
       
    37 	{
       
    38 public:
       
    39 	virtual ~MCompartmentUserOwner() {}
       
    40 
       
    41     /**
       
    42      * Searches whether any existing compartment is related to passed
       
    43      * remote address
       
    44      *
       
    45      * @returns compartmentCtx, ownership is not transferred
       
    46      */
       
    47 	virtual CSipSigCompCompartmentCtx* SearchCompartmentByInetAddr( 
       
    48 	                                            const TInetAddr& aAddress,
       
    49     										    TUint32 aIapId ) = 0;
       
    50     
       
    51     /**
       
    52      * Creates new compartmentCtx (including real sigcomp compartment)
       
    53      * for interactions between passed remote address. CompartmentCtx
       
    54      *
       
    55      * @returns compartmentCtx, ownership is not transferred
       
    56      */																		
       
    57     virtual CSipSigCompCompartmentCtx* CreateCompartmentL( 
       
    58                                                 const TInetAddr& aAddress,
       
    59                                             	TUint32 aIapId,
       
    60 	                                            TBool aDynamicCompression ) = 0;
       
    61 	};
       
    62 
       
    63 #endif // end of __MCOMPARTMENTUSEROWNER_H__
       
    64 
       
    65 // End of File