rtp/srtpstack/inc/tsrtpstreaminstatenormal.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     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:    "Normal" state for incoming SRTP stream.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TSRTPSTREAMINSTATENORMAL_H
       
    22 #define TSRTPSTREAMINSTATENORMAL_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "tsrtpstreaminstatebase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MSRTPCryptoHandlerContext;
       
    29 class MSRTPCryptoHandlerContextRTP;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 class TSRTPStreamInStateNormal : public TSRTPStreamInStateBase
       
    33 	{
       
    34 	public:	// Constructors
       
    35 
       
    36 		TSRTPStreamInStateNormal(MSRTPStreamInContext& aStreamContext,
       
    37 		    MSRTPCryptoHandlerContextRTP& aCryptoHandlerRTPContext,
       
    38 		    MSRTPCryptoHandlerContextRTCP& aCryptoHandlerRTCPContext);		
       
    39 
       
    40 	public: // From TSRTPStreamInStateBase
       
    41 		
       
    42         /**
       
    43         * Unprotect encrypted RTP packet in "normal" state.
       
    44         * @param aPacket encrypted packet
       
    45         * @leave KErrNone if success, system-wide error code otherwise        
       
    46         * @return HBufC8* decrypted packet
       
    47         */                              
       
    48         HBufC8* DoUnprotectSrtpL(const TDesC8& aPacket);
       
    49 
       
    50         /**
       
    51         * Unprotect encrypted RTCP packet in "normal" state.
       
    52         * @param aPacket encrypted packet
       
    53         * @leave KErrNone if success, system-wide error code otherwise        
       
    54         * @return HBufC8* decrypted packet
       
    55         */                              
       
    56         HBufC8* DoUnprotectSrtcpL(const TDesC8& aPacket);
       
    57 
       
    58 	private: // Constructors
       
    59 
       
    60 		/// Default constructor. Not implemented.
       
    61 		TSRTPStreamInStateNormal();
       
    62 	};
       
    63 
       
    64 #endif // TSRTPStreamInStateNormal_H