dvrengine/CommonRecordingEngine/inc/CCRRtpTcpStream.h
branchRCL_3
changeset 22 826cea16efd9
parent 21 798ee5f1972c
child 23 13a33d82ad98
equal deleted inserted replaced
21:798ee5f1972c 22:826cea16efd9
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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:    Abstraction for a media stream for RTP/TCP streamer*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCRRTPTCPSTREAM_H
       
    21 #define CCRRTPTCPSTREAM_H
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MCRRtpTcpObserver;
       
    28 
       
    29 /**
       
    30 *  RTP media stream for RTP/TCP streamer
       
    31 *
       
    32 *  @lib CommonRecordingEngine.lib
       
    33 *  @since Series 60 3.0
       
    34 */
       
    35 class CCRRtpTcpStream : public CBase
       
    36     {
       
    37 
       
    38 public: // Constructors and destructors   
       
    39     
       
    40     /**
       
    41     * Two-phased constructor
       
    42     * @param aObserver 
       
    43     */
       
    44     static CCRRtpTcpStream* NewL( MCRRtpTcpObserver& aObserver );
       
    45 
       
    46     /**
       
    47     * Destructor
       
    48     */
       
    49     virtual ~CCRRtpTcpStream();
       
    50 
       
    51 public: // New methods
       
    52 
       
    53     /**
       
    54     * Handles incoming RTP or RTCP packet
       
    55     * @since Series 60 3.0
       
    56     * @param aChannel Interleaved channel.
       
    57     * @return none.
       
    58     */
       
    59     void PacketAvailable( TInt aChannel );
       
    60 
       
    61 private: // Constructors and destructors
       
    62 
       
    63     /**
       
    64     * C++ default constructor
       
    65     */
       
    66     CCRRtpTcpStream( MCRRtpTcpObserver& aObserver );
       
    67 
       
    68     /**
       
    69     * Second phase constructor
       
    70     */
       
    71     void ConstructL();
       
    72 
       
    73 private: // Data
       
    74     
       
    75     /**
       
    76     * Observer for streaming session.
       
    77     */
       
    78     MCRRtpTcpObserver& iObserver;
       
    79 
       
    80     /** 
       
    81     * SSRC for this media stream.
       
    82     */
       
    83     TUint32 iSSRC;
       
    84     
       
    85     };
       
    86 
       
    87 #endif // CCRRTPTCPSTREAM_H
       
    88 
       
    89 //  End of File