<!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>gstreamermm: Gst::MessageStateChanged 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.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGst.html">Gst</a>::<a class="el" href="classGst_1_1MessageStateChanged.html">MessageStateChanged</a> </div> </div> <div class="contents"> <h1>Gst::MessageStateChanged Class Reference</h1><!-- doxytag: class="Gst::MessageStateChanged" --><!-- doxytag: inherits="Gst::Message" --> <p>A state change message. <a href="#_details">More...</a></p> <p>Inherits <a class="el" href="classGst_1_1Message.html">Gst::Message</a>.</p> <div class="dynheader"> Collaboration diagram for Gst::MessageStateChanged:</div> <div class="dynsection"> <div class="center"><img src="classGst_1_1MessageStateChanged__coll__graph.png" border="0" usemap="#Gst_1_1MessageStateChanged_coll__map" alt="Collaboration graph"/></div> <map name="Gst_1_1MessageStateChanged_coll__map" id="Gst_1_1MessageStateChanged_coll__map"> <area shape="rect" href="classGst_1_1Message.html" title="Gst::Message - Lightweight objects to signal the application of pipeline events." alt="" coords="45,83,149,112"/><area shape="rect" href="classGst_1_1MiniObject.html" title="Gst::MiniObject" alt="" coords="41,5,153,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGst_1_1MessageStateChanged-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#a7206defc719d21104d7447c5b6b4ffa3">MessageStateChanged</a> (GstMessage* castitem)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#a4ab1dd017ab6276f2dcf9e9a13675f8e">parse</a> (<a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& oldstate, <a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& newstate, <a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& pending) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extracts the old, new and pending states from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. <a href="#a4ab1dd017ab6276f2dcf9e9a13675f8e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#acc526d6c723129e59e761dc6fd0ffc9b">parse</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extracts and returns the new state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. <a href="#acc526d6c723129e59e761dc6fd0ffc9b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#a22094c7a1677427035e786b0eccc6a92">parse_old</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extracts and returns the old state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. <a href="#a22094c7a1677427035e786b0eccc6a92"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#acae26850e04361a7854a309dd0e9cd95">parse_pending</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extracts and returns the pending state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. <a href="#acae26850e04361a7854a309dd0e9cd95"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGst_1_1Message.html">Gst::Message</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1MessageStateChanged.html#af36d9fa7b35cb5afe2618b3cbe7d1812">create</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGst_1_1Object.html">Gst::Object</a> >& src, <a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> oldstate, <a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> newstate, <a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> pending)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a state change message. <a href="#af36d9fa7b35cb5afe2618b3cbe7d1812"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A state change message. </p> <p>See <a class="el" href="classGst_1_1MessageStateChanged.html#af36d9fa7b35cb5afe2618b3cbe7d1812" title="Create a state change message.">create()</a> for more details. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a7206defc719d21104d7447c5b6b4ffa3"></a><!-- doxytag: member="Gst::MessageStateChanged::MessageStateChanged" ref="a7206defc719d21104d7447c5b6b4ffa3" args="(GstMessage *castitem)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gst::MessageStateChanged::MessageStateChanged </td> <td>(</td> <td class="paramtype">GstMessage * </td> <td class="paramname"> <em>castitem</em></td> <td> ) </td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="af36d9fa7b35cb5afe2618b3cbe7d1812"></a><!-- doxytag: member="Gst::MessageStateChanged::create" ref="af36d9fa7b35cb5afe2618b3cbe7d1812" args="(const Glib::RefPtr< Gst::Object > &src, State oldstate, State newstate, State pending)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGst_1_1Message.html">Gst::Message</a>> Gst::MessageStateChanged::create </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGst_1_1Object.html">Gst::Object</a> >& </td> <td class="paramname"> <em>src</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td> <td class="paramname"> <em>oldstate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td> <td class="paramname"> <em>newstate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> </td> <td class="paramname"> <em>pending</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Create a state change message. </p> <p>This message is posted whenever an element changed its state.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>src</em> </td><td>The object originating the message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>oldstate</em> </td><td>The previous state. </td></tr> <tr><td valign="top"></td><td valign="top"><em>newstate</em> </td><td>The new (current) state. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pending</em> </td><td>The pending (target) state. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The new state change message. MT safe. </dd></dl> </div> </div> <a class="anchor" id="acc526d6c723129e59e761dc6fd0ffc9b"></a><!-- doxytag: member="Gst::MessageStateChanged::parse" ref="acc526d6c723129e59e761dc6fd0ffc9b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> Gst::MessageStateChanged::parse </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extracts and returns the new state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. </p> <p>MT safe.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>The new (current) state. </dd></dl> </div> </div> <a class="anchor" id="a4ab1dd017ab6276f2dcf9e9a13675f8e"></a><!-- doxytag: member="Gst::MessageStateChanged::parse" ref="a4ab1dd017ab6276f2dcf9e9a13675f8e" args="(State &oldstate, State &newstate, State &pending) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gst::MessageStateChanged::parse </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& </td> <td class="paramname"> <em>oldstate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& </td> <td class="paramname"> <em>newstate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a>& </td> <td class="paramname"> <em>pending</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extracts the old, new and pending states from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. </p> <p>MT safe.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>oldstate</em> </td><td>The previous state. </td></tr> <tr><td valign="top"></td><td valign="top"><em>newstate</em> </td><td>The new (current) state. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pending</em> </td><td>The pending (target) state. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a22094c7a1677427035e786b0eccc6a92"></a><!-- doxytag: member="Gst::MessageStateChanged::parse_old" ref="a22094c7a1677427035e786b0eccc6a92" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> Gst::MessageStateChanged::parse_old </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extracts and returns the old state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. </p> <p>MT safe.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>The old state. </dd></dl> </div> </div> <a class="anchor" id="acae26850e04361a7854a309dd0e9cd95"></a><!-- doxytag: member="Gst::MessageStateChanged::parse_pending" ref="acae26850e04361a7854a309dd0e9cd95" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gstreamermmEnums.html#gabb043e1d41659fd842f10949f91e7a7f">State</a> Gst::MessageStateChanged::parse_pending </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Extracts and returns the pending state from the <a class="el" href="classGst_1_1MessageStateChanged.html" title="A state change message.">Gst::MessageStateChanged</a>. </p> <p>MT safe.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>The pending state. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gstreamermm/message.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 22:32:57 2009 for gstreamermm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>