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