Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_rtp_file_sender.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: CRtpFileSender Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>CRtpFileSender Class Reference</h1><!-- doxytag: class="CRtpFileSender" -->
<p><a href="class_c_rtp_file_sender-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#aecbbd6e4ff98c225474210edde8f02e5">DoPacketSent</a> (const TRtpEvent &amp;aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#acd993430262ed8a1909fc47b0ef36c99">DoSendError</a> (const TRtpEvent &amp;aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09469ec6e3b0c977961c4f37532b8268"></a><!-- doxytag: member="CRtpFileSender::StartL" ref="a09469ec6e3b0c977961c4f37532b8268" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>StartL</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d247e334ce13904580baf6008e084a1"></a><!-- doxytag: member="CRtpFileSender::SetObserver" ref="a7d247e334ce13904580baf6008e084a1" args="(MFileStreamerObserver &amp;aObserver)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>SetObserver</b> (<a class="el" href="class_m_file_streamer_observer.html">MFileStreamerObserver</a> &amp;aObserver)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#acc0e18b5616ed680f92433c2cc023375">PacketSent</a> (<a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *aPtr, const TRtpEvent &amp;aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#a2f2435036f8e6ad9e01b9433d8b269b7">SendError</a> (<a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *aPtr, const TRtpEvent &amp;aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64c0dc812a3fdd4c5ba8c445a608d763"></a><!-- doxytag: member="CRtpFileSender::NewL" ref="a64c0dc812a3fdd4c5ba8c445a608d763" args="(RRtpSession &amp;aSession, RFs &amp;aFs, const TDesC &amp;aSrcFilename, TInt aPacketSize, TInt aDelayMicroSeconds)" -->
static <a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>NewL</b> (RRtpSession &amp;aSession, RFs &amp;aFs, const TDesC &amp;aSrcFilename, TInt aPacketSize, TInt aDelayMicroSeconds)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>An Active Object which sends a block of a file after every n microseconds as an RTP payload. </p>

<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8h_source.html#l00039">39</a> of file <a class="el" href="_r_t_p_file_streamer_8h_source.html">RTPFileStreamer.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acc0e18b5616ed680f92433c2cc023375"></a><!-- doxytag: member="CRtpFileSender::PacketSent" ref="acc0e18b5616ed680f92433c2cc023375" args="(CRtpFileSender *aPtr, const TRtpEvent &amp;aEvent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRtpFileSender::PacketSent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *&nbsp;</td>
          <td class="paramname"> <em>aPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TRtpEvent &amp;&nbsp;</td>
          <td class="paramname"> <em>aEvent</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A callback method which <a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> registers with the RtpSession to be called when a packet is successfully sent. </p>

<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00050">50</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aecbbd6e4ff98c225474210edde8f02e5"></a><!-- doxytag: member="CRtpFileSender::DoPacketSent" ref="aecbbd6e4ff98c225474210edde8f02e5" args="(const TRtpEvent &amp;aEvent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRtpFileSender::DoPacketSent </td>
          <td>(</td>
          <td class="paramtype">const TRtpEvent &amp;&nbsp;</td>
          <td class="paramname"> <em>aEvent</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>An instance method which is called by the static callback function to notify the observer and start the RTimer such that another packet can be sent when the timer expires. </p>

<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00060">60</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2f2435036f8e6ad9e01b9433d8b269b7"></a><!-- doxytag: member="CRtpFileSender::SendError" ref="a2f2435036f8e6ad9e01b9433d8b269b7" args="(CRtpFileSender *aPtr, const TRtpEvent &amp;aEvent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRtpFileSender::SendError </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *&nbsp;</td>
          <td class="paramname"> <em>aPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TRtpEvent &amp;&nbsp;</td>
          <td class="paramname"> <em>aEvent</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A callback method to be called when a sent packet fails. </p>

<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00073">73</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acd993430262ed8a1909fc47b0ef36c99"></a><!-- doxytag: member="CRtpFileSender::DoSendError" ref="acd993430262ed8a1909fc47b0ef36c99" args="(const TRtpEvent &amp;aEvent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRtpFileSender::DoSendError </td>
          <td>(</td>
          <td class="paramtype">const TRtpEvent &amp;&nbsp;</td>
          <td class="paramname"> <em>aEvent</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>An instance method which is called by the static callback function to notify the observer of the error while sending the packet. </p>

<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00082">82</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>