realtimenetprots/sipfw/ClientResolver/Resolver/inc/CSdpMLineStrategyBase.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          : CSdpMLineNameStrategy.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSDPMLINESTRATEGYBASE_H
       
    29 #define CSDPMLINESTRATEGYBASE_H
       
    30 
       
    31 #include "CSdpStrategyBase.h"
       
    32 
       
    33 class MSipClients;
       
    34 class MSipClient;
       
    35 class CSdpMediaField;
       
    36 
       
    37 
       
    38 
       
    39 class CSdpMLineStrategyBase : public CSdpStrategyBase
       
    40     {
       
    41 public:
       
    42 
       
    43     virtual ~CSdpMLineStrategyBase();
       
    44     
       
    45     CSIPResponse* ApplyL(CSdpDocument& aDocument, RArray<TUid>& aUids);
       
    46     
       
    47     TBool IsApplicable(CSdpDocument& aDocument);   
       
    48 
       
    49 protected:
       
    50 
       
    51 	CSdpMLineStrategyBase(const MSipClients& aSipClients);
       
    52 						
       
    53 	static CSIPResponse* MediaLineExistL(CSdpDocument& aDocument);
       
    54 	
       
    55 	void FindApplicationL(CSdpDocument& aDocument,RArray<TUid>& aUids);
       
    56 	
       
    57     TBool MatchL(CSdpDocument& aDocument, MSipClient& aClient);	
       
    58 
       
    59     virtual TBool IsApplicable(CSdpMediaField& aMediaField);
       
    60 	
       
    61 	virtual TBool FieldsMatchL(const CSdpMediaField& aReceivedMedia,
       
    62 	                           const CSdpMediaField& aClientMedia) = 0;
       
    63     };
       
    64 
       
    65 #endif // CSDPMLINESTRATEGYBASE_H
       
    66 
       
    67 // End of File