multimediacommsengine/mmcesrv/mmceserver/inc/mcefcactionset.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCEFCACTIONSET_H
       
    22 #define MCEFCACTIONSET_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "mcesrv.h"
       
    26 #include "mceclientserver.h"
       
    27 
       
    28 
       
    29 //  FORWARD DECLARATION
       
    30 class CMceSipSession;
       
    31 class CMceMsgBase;
       
    32 class CSdpDocument;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 
       
    37 /**
       
    38 *  MCE SIP session.
       
    39 *
       
    40 *  @lib 
       
    41 *  @since
       
    42 */
       
    43 class TMceFCActionSet 
       
    44 	{
       
    45 	
       
    46 public: // Constructors and destructor
       
    47 
       
    48 	/**
       
    49 	* Two-phased constructor.
       
    50 	* @param aSession, reference to session.
       
    51 	*/
       
    52 	TMceFCActionSet( CMceSipSession& aSession );
       
    53 
       
    54 public://Floor control related
       
    55 
       
    56     /**
       
    57     * Update floor control related SDP lines in SDP offer.
       
    58     * @param aOffer the SDP offer
       
    59     */
       
    60 	void UpdateFCOfferL( CSdpDocument& aOffer );
       
    61 	
       
    62 	/**
       
    63     * Update floor control related SDP lines in SDP answer.
       
    64     * @param aOffer the SDP answer
       
    65     */
       
    66 	void UpdateFCAnswerL( CSdpDocument& aOffer );
       
    67 	
       
    68 	/**
       
    69 	* Store floor control related data from SDP document
       
    70 	* @param aOffer the SDP document
       
    71 	*/
       
    72 	void PeekFCDocumentL( CSdpDocument& aOffer );
       
    73 	
       
    74 	/**
       
    75 	* Release floor control.
       
    76 	*/
       
    77 	void ReleaseFC();
       
    78     
       
    79     /**
       
    80     * Start floor control.
       
    81     */
       
    82     void StartFCL();
       
    83     
       
    84     /**
       
    85     * Initialize floor control for incoming session.
       
    86     */
       
    87 	void InitializeFCL();
       
    88 	
       
    89 	/**
       
    90 	* Initialize floor control for outgoing session.
       
    91 	* @param aIds the ITC ids
       
    92 	* @param aType floor control type
       
    93 	*/
       
    94 	void InitializeFCL( TMceIds& aIds, const TDesC8& aType );
       
    95 	
       
    96 	/**
       
    97 	* Update floor control port.
       
    98 	* @param aIds the ITC ids
       
    99 	* @param aType floor control type
       
   100 	*/
       
   101 	void UpdateFCL( TMceIds& aIds, const TDesC8& aType );
       
   102     
       
   103     /**
       
   104     * Get floor control related SDP media lines.
       
   105     * @return aMediaLines the medialines
       
   106     */
       
   107     HBufC8* FCGetMediaLinesL();
       
   108 
       
   109     /**
       
   110     * Set floor control related SDP media lines.
       
   111     * @param aMediaLines the medialines
       
   112     */
       
   113 	void FCSetMediaLinesL( CMceMsgBase& aMediaLines );
       
   114 	
       
   115 	/**
       
   116 	* Send floor control message.
       
   117 	* @param aMessage the message
       
   118 	*/
       
   119     void SendFCMsgL( const TDesC8& aMessage );
       
   120     
       
   121     /**
       
   122     * Find out whether the floor control data has changed such that
       
   123     * new offer needs to be sent.
       
   124     * @return ETrue if new offer needs to be sent
       
   125     */
       
   126     TBool NeedToSendOffer();
       
   127     
       
   128 private: // Utility 
       
   129 
       
   130     TUint RTCPPort();
       
   131     
       
   132 private://data
       
   133 
       
   134     static void ArrayCleanup(TAny* aArray);
       
   135 
       
   136     
       
   137     CMceSipSession& iSession;
       
   138     
       
   139 	//definitions for unit testing
       
   140 	MCESRV_UT_DEFINITIONS
       
   141 
       
   142 	};
       
   143 
       
   144 #endif
       
   145 
       
   146 // End of File