realtimenetprots/sipfw/ClientResolver/Resolver/inc/CSipAcceptContactStrategy2.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2007-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          : CSipAcceptContactStrategy2.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPACCEPTCONTACTSTRATEGY2_H
       
    29 #define CSIPACCEPTCONTACTSTRATEGY2_H
       
    30 
       
    31 #include "CSipHeaderStrategyBase.h"
       
    32 
       
    33 class CSIPAcceptContactHeader;
       
    34 
       
    35 NONSHARABLE_CLASS(CSipAcceptContactStrategy2) 
       
    36 : public CSipHeaderStrategyBase
       
    37     {
       
    38     public:
       
    39 
       
    40         static CSipAcceptContactStrategy2* NewL( 
       
    41             						MSipClients& aSipClients,
       
    42             						CSipHeaderStrategyBase* aNextStrategy,
       
    43             						CSipHeaderStrategyBase* aNextStrategy2 );
       
    44 
       
    45         static CSipAcceptContactStrategy2* NewLC( 
       
    46             						MSipClients& aSipClients,
       
    47             						CSipHeaderStrategyBase* aNextStrategy,
       
    48             						CSipHeaderStrategyBase* aNextStrategy2 );
       
    49 		    
       
    50 		~CSipAcceptContactStrategy2();
       
    51 
       
    52     public: // From CSipHeaderStrategyBase
       
    53 
       
    54 	    CSIPResponse* ApplyL( CSIPRequest& aRequest,
       
    55 	        				  RArray<TUid>& aUids,
       
    56 	        				  TBool& aContinueSearch,
       
    57 	        				  CSIPClientResolver2& aClientResolver2 );
       
    58 
       
    59     protected: // From CSipHeaderStrategyBase
       
    60             				  
       
    61         TBool MatchResolvedClientL( CSIPResolvedClient2& aClient,
       
    62         							CSIPRequest& aRequest,
       
    63     								TUid& aClientUid,
       
    64     								const CUri8& aUri8 );
       
    65 
       
    66     private: // Constructors
       
    67 
       
    68         CSipAcceptContactStrategy2( MSipClients& aSipClients,
       
    69             						CSipHeaderStrategyBase* aNextStrategy,
       
    70             						CSipHeaderStrategyBase* aNextStrategy2 );
       
    71         
       
    72     private: // Data
       
    73     
       
    74         RStringF iAcceptContactHeaderName;
       
    75 
       
    76     private: // For testing purposes
       
    77 
       
    78 	    UNIT_TEST( CSipAcceptContactStrategy2Test )
       
    79     };
       
    80 
       
    81 #endif // CSIPACCEPTCONTACTSTRATEGY2_H
       
    82 
       
    83 // End of File