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