Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 283

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>interfaces: KMediaPlayer::Player Class Reference (interfaces)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">interfaces</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceKMediaPlayer.html">KMediaPlayer</a>      </li>
      <li class="navelem"><a class="el" href="classKMediaPlayer_1_1Player.html">Player</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a>  </div>
  <div class="headertitle">
<div class="title">KMediaPlayer::Player Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KMediaPlayer::Player" --><!-- doxytag: inherits="KParts::ReadOnlyPart,KMediaPlayer::PlayerDCOPObject" -->
<p><a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a> is the center of the <a class="el" href="namespaceKMediaPlayer.html" title="KMediaPlayer contains an interface to reusable media player components.">KMediaPlayer</a> interface.  
 <a href="classKMediaPlayer_1_1Player.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="player_8h_source.html">player.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KMediaPlayer::Player:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKMediaPlayer_1_1Player.png" usemap="#KMediaPlayer::Player_map" alt=""/>
  <map id="KMediaPlayer::Player_map" name="KMediaPlayer::Player_map">
<area doxygen="kparts.tag:../../kparts/html/" href="../../kparts/html/classKParts_1_1ReadOnlyPart.html" alt="KParts::ReadOnlyPart" shape="rect" coords="72,168,207,192"/>
<area doxygen="kparts.tag:../../kparts/html/" href="../../kparts/html/classKParts_1_1Part.html" alt="KParts::Part" shape="rect" coords="72,112,207,136"/>
<area href="qobject.html" alt="QObject" shape="rect" coords="0,56,135,80"/>
<area doxygen="kparts.tag:../../kparts/html/" href="../../kparts/html/classKParts_1_1PartBase.html" alt="KParts::PartBase" shape="rect" coords="145,56,280,80"/>
<area doxygen="kdeui.tag:../../kdeui/html/" href="../../kdeui/html/classKXMLGUIClient.html" alt="KXMLGUIClient" shape="rect" coords="145,0,280,24"/>
</map>
 </div></div>

<p><a href="classKMediaPlayer_1_1Player-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7d">State</a> { <a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7da985efbb350f6730eb78cbe48606c0bfd">Empty</a>, 
<a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7da83c95508d150ddab61e31c2539a7a98b">Stop</a>, 
<a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7dae9f74baa2d0a3c7841e11fa364a5123b">Pause</a>, 
<a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7dab08373fd53779335502e2efabe1717aa">Play</a>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a8ab9532c795d0f6aa49a66288bd07934">pause</a> (void)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a9fc1aca273d727955010f23de9bdfdde">play</a> (void)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#ab02366a3538583aad497503eefde24d7">stop</a> (void)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#aaf7b5608b9fa02f2d41bcfcf61b43d31">seek</a> (unsigned long msec)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#abb5eb84d247ff2e81ef52830b0e35870">setLooping</a> (bool)</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a0ea8083d38c80a6d3cf627b579f520a5">loopingChanged</a> (bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#ab05daed5b4f6324cf11a91d3cb7bfa51">stateChanged</a> (int)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#ad03237ccf47c2c0628ab9c2f82252ec2">Player</a> (<a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const char *<a class="elRef" href="qobject.html#name">name</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#afe173f62fd70c90ba7ec73ce1eedd244">Player</a> (<a class="elRef" href="qwidget.html">QWidget</a> *parentWidget, const char *widgetName, <a class="elRef" href="qobject.html">QObject</a> *<a class="elRef" href="qobject.html#parent">parent</a>, const char *<a class="elRef" href="qobject.html#name">name</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classKMediaPlayer_1_1View.html">View</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#acf419f5a346a7ed75a26ff58538937dc">view</a> (void)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a74af063ca70e1d80fe086758947f8b5a">isSeekable</a> (void) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a242a39ab4f251746daa5b88f44b4ee98">position</a> (void) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#ac3a19cc9c0351c729daec97bdd40f155">hasLength</a> (void) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#af5fb2595521ca01b8c8dc955257bc4b0">length</a> (void) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#aaa31f94ab5b2f834b6ed30af4b737fd5">isLooping</a> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a2ee643ff5e4780beffc9227a382c620f">state</a> (void) const </td></tr>
<tr><td colspan="2"><h2><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMediaPlayer_1_1Player.html#a5ce5053793d71987fa584f029ba1418d">setState</a> (int)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a> is the center of the <a class="el" href="namespaceKMediaPlayer.html" title="KMediaPlayer contains an interface to reusable media player components.">KMediaPlayer</a> interface. </p>
<p>It provides all of the necessary media player operations, and optionally provides the GUI to control them.</p>
<p>There are two servicetypes for <a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a>: KMediaPlayer/Player and KMediaPlayer/Engine. KMediaPlayer/Player provides a widget (accessable through view as well as XML GUI KActions. KMediaPlayer/Engine omits the user interface facets, for those who wish to provide their own interface. </p>

<p>Definition at line <a class="el" href="player_8h_source.html#l00046">46</a> of file <a class="el" href="player_8h_source.html">player.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a8c2150474b4a1a3cd423b738319a2a7d"></a><!-- doxytag: member="KMediaPlayer::Player::State" ref="a8c2150474b4a1a3cd423b738319a2a7d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKMediaPlayer_1_1Player.html#a8c2150474b4a1a3cd423b738319a2a7d">KMediaPlayer::Player::State</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The possible states of the <a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a>. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a8c2150474b4a1a3cd423b738319a2a7da985efbb350f6730eb78cbe48606c0bfd"></a><!-- doxytag: member="Empty" ref="a8c2150474b4a1a3cd423b738319a2a7da985efbb350f6730eb78cbe48606c0bfd" args="" -->Empty</em>&nbsp;</td><td>
<p>No track is loaded. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a8c2150474b4a1a3cd423b738319a2a7da83c95508d150ddab61e31c2539a7a98b"></a><!-- doxytag: member="Stop" ref="a8c2150474b4a1a3cd423b738319a2a7da83c95508d150ddab61e31c2539a7a98b" args="" -->Stop</em>&nbsp;</td><td>
<p>Not playing. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a8c2150474b4a1a3cd423b738319a2a7dae9f74baa2d0a3c7841e11fa364a5123b"></a><!-- doxytag: member="Pause" ref="a8c2150474b4a1a3cd423b738319a2a7dae9f74baa2d0a3c7841e11fa364a5123b" args="" -->Pause</em>&nbsp;</td><td>
<p>Playing is temporarily suspended. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a8c2150474b4a1a3cd423b738319a2a7dab08373fd53779335502e2efabe1717aa"></a><!-- doxytag: member="Play" ref="a8c2150474b4a1a3cd423b738319a2a7dab08373fd53779335502e2efabe1717aa" args="" -->Play</em>&nbsp;</td><td>
<p>The media is currently being output. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="player_8h_source.html#l00111">111</a> of file <a class="el" href="player_8h_source.html">player.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad03237ccf47c2c0628ab9c2f82252ec2"></a><!-- doxytag: member="KMediaPlayer::Player::Player" ref="ad03237ccf47c2c0628ab9c2f82252ec2" args="(QObject *parent, const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMediaPlayer::Player::Player </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This constructor is what to use when no GUI is required, as in the case of a KMediaPlayer/Engine. </p>

<p>Definition at line <a class="el" href="player_8cpp_source.html#l00039">39</a> of file <a class="el" href="player_8cpp_source.html">player.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afe173f62fd70c90ba7ec73ce1eedd244"></a><!-- doxytag: member="KMediaPlayer::Player::Player" ref="afe173f62fd70c90ba7ec73ce1eedd244" args="(QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KMediaPlayer::Player::Player </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parentWidget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>widgetName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This constructor is what to use when a GUI is required, as in the case of a KMediaPlayer/Player. </p>

<p>Definition at line <a class="el" href="player_8cpp_source.html#l00031">31</a> of file <a class="el" href="player_8cpp_source.html">player.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac3a19cc9c0351c729daec97bdd40f155"></a><!-- doxytag: member="KMediaPlayer::Player::hasLength" ref="ac3a19cc9c0351c729daec97bdd40f155" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool KMediaPlayer::Player::hasLength </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the current track has a length. </p>
<p>Some streams are endless, and do not have one. </p>

</div>
</div>
<a class="anchor" id="aaa31f94ab5b2f834b6ed30af4b737fd5"></a><!-- doxytag: member="KMediaPlayer::Player::isLooping" ref="aaa31f94ab5b2f834b6ed30af4b737fd5" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KMediaPlayer::Player::isLooping </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the current looping state. </p>

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

</div>
</div>
<a class="anchor" id="a74af063ca70e1d80fe086758947f8b5a"></a><!-- doxytag: member="KMediaPlayer::Player::isSeekable" ref="a74af063ca70e1d80fe086758947f8b5a" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool KMediaPlayer::Player::isSeekable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the current track honors seek requests. </p>

</div>
</div>
<a class="anchor" id="af5fb2595521ca01b8c8dc955257bc4b0"></a><!-- doxytag: member="KMediaPlayer::Player::length" ref="af5fb2595521ca01b8c8dc955257bc4b0" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual unsigned long KMediaPlayer::Player::length </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the length of the current track. </p>

</div>
</div>
<a class="anchor" id="a0ea8083d38c80a6d3cf627b579f520a5"></a><!-- doxytag: member="KMediaPlayer::Player::loopingChanged" ref="a0ea8083d38c80a6d3cf627b579f520a5" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMediaPlayer::Player::loopingChanged </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the looping state is changed. </p>

</div>
</div>
<a class="anchor" id="a8ab9532c795d0f6aa49a66288bd07934"></a><!-- doxytag: member="KMediaPlayer::Player::pause" ref="a8ab9532c795d0f6aa49a66288bd07934" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KMediaPlayer::Player::pause </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pause playback of the media track. </p>

</div>
</div>
<a class="anchor" id="a9fc1aca273d727955010f23de9bdfdde"></a><!-- doxytag: member="KMediaPlayer::Player::play" ref="a9fc1aca273d727955010f23de9bdfdde" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KMediaPlayer::Player::play </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Begin playing the media track. </p>

</div>
</div>
<a class="anchor" id="a242a39ab4f251746daa5b88f44b4ee98"></a><!-- doxytag: member="KMediaPlayer::Player::position" ref="a242a39ab4f251746daa5b88f44b4ee98" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual unsigned long KMediaPlayer::Player::position </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current playback position in the track. </p>

</div>
</div>
<a class="anchor" id="aaf7b5608b9fa02f2d41bcfcf61b43d31"></a><!-- doxytag: member="KMediaPlayer::Player::seek" ref="aaf7b5608b9fa02f2d41bcfcf61b43d31" args="(unsigned long msec)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KMediaPlayer::Player::seek </td>
          <td>(</td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>msec</em></td><td>)</td>
          <td><code> [pure virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Move the current playback position to the specified time in milliseconds, if the track is seekable. </p>
<p>Some streams may not be seeked. </p>

</div>
</div>
<a class="anchor" id="abb5eb84d247ff2e81ef52830b0e35870"></a><!-- doxytag: member="KMediaPlayer::Player::setLooping" ref="abb5eb84d247ff2e81ef52830b0e35870" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMediaPlayer::Player::setLooping </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set whether the <a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a> should continue playing at the beginning of the track when the end of the track is reached. </p>

<p>Definition at line <a class="el" href="player_8cpp_source.html#l00051">51</a> of file <a class="el" href="player_8cpp_source.html">player.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5ce5053793d71987fa584f029ba1418d"></a><!-- doxytag: member="KMediaPlayer::Player::setState" ref="a5ce5053793d71987fa584f029ba1418d" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMediaPlayer::Player::setState </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [protected, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implementers use this to control what users see as the current state. </p>

<p>Definition at line <a class="el" href="player_8cpp_source.html#l00065">65</a> of file <a class="el" href="player_8cpp_source.html">player.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2ee643ff5e4780beffc9227a382c620f"></a><!-- doxytag: member="KMediaPlayer::Player::state" ref="a2ee643ff5e4780beffc9227a382c620f" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KMediaPlayer::Player::state </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the current state of the player. </p>

<p>Definition at line <a class="el" href="player_8cpp_source.html#l00074">74</a> of file <a class="el" href="player_8cpp_source.html">player.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab05daed5b4f6324cf11a91d3cb7bfa51"></a><!-- doxytag: member="KMediaPlayer::Player::stateChanged" ref="ab05daed5b4f6324cf11a91d3cb7bfa51" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KMediaPlayer::Player::stateChanged </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the state changes. </p>

</div>
</div>
<a class="anchor" id="ab02366a3538583aad497503eefde24d7"></a><!-- doxytag: member="KMediaPlayer::Player::stop" ref="ab02366a3538583aad497503eefde24d7" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KMediaPlayer::Player::stop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stop playback of the media track and return to the beginning. </p>

</div>
</div>
<a class="anchor" id="acf419f5a346a7ed75a26ff58538937dc"></a><!-- doxytag: member="KMediaPlayer::Player::view" ref="acf419f5a346a7ed75a26ff58538937dc" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classKMediaPlayer_1_1View.html">View</a>* KMediaPlayer::Player::view </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A convenience function returning a pointer to the <a class="el" href="classKMediaPlayer_1_1View.html" title="View is part of the user interface of a Player.">View</a> for this <a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a>, or 0 if this <a class="el" href="classKMediaPlayer_1_1Player.html" title="Player is the center of the KMediaPlayer interface.">Player</a> has no GUI. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="player_8h_source.html">player.h</a></li>
<li><a class="el" href="player_8cpp_source.html">player.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>interfaces</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classExtTerminalInterface.html">extterminalinterface</option>,  <option value="classKFileAudioPreview.html">kfileaudiopreview</option>,  <option value="classKHE_1_1BytesEditInterface.html">khe::byteseditinterface</option>,  <option value="classKHE_1_1CharColumnInterface.html">khe::charcolumninterface</option>,  <option value="classKHE_1_1ClipboardInterface.html">khe::clipboardinterface</option>,  <option value="classKHE_1_1ValueColumnInterface.html">khe::valuecolumninterface</option>,  <option value="classKHE_1_1ZoomInterface.html">khe::zoominterface</option>,  <option value="classKIMIface.html">kimiface</option>,  <option value="classKIMProxy.html">kimproxy</option>,  <option value="classKMediaPlayer_1_1Player.html">kmediaplayer::player</option>,  <option value="classKMediaPlayer_1_1View.html">kmediaplayer::view</option>,  <option value="classKRegExpEditorInterface.html">kregexpeditorinterface</option>,  <option value="classKScriptClientInterface.html">kscriptclientinterface</option>,  <option value="classKScriptInterface.html">kscriptinterface</option>,  <option value="classKScriptManager.html">kscriptmanager</option>,  <option value="classKSpeech.html">kspeech</option>,  <option value="classKSpeechSink.html">kspeechsink</option>,  <option value="classKTextEditor_1_1BlockSelectionDCOPInterface.html">ktexteditor::blockselectiondcopinterface</option>,  <option value="classKTextEditor_1_1BlockSelectionInterface.html">ktexteditor::blockselectioninterface</option>,  <option value="classKTextEditor_1_1ClipboardDCOPInterface.html">ktexteditor::clipboarddcopinterface</option>,  <option value="classKTextEditor_1_1ClipboardInterface.html">ktexteditor::clipboardinterface</option>,  <option value="classKTextEditor_1_1CodeCompletionInterface.html">ktexteditor::codecompletioninterface</option>,  <option value="classKTextEditor_1_1CompletionEntry.html">ktexteditor::completionentry</option>,  <option value="classKTextEditor_1_1ConfigInterface.html">ktexteditor::configinterface</option>,  <option value="classKTextEditor_1_1ConfigInterfaceExtension.html">ktexteditor::configinterfaceextension</option>,  <option value="classKTextEditor_1_1Cursor.html">ktexteditor::cursor</option>,  <option value="classKTextEditor_1_1CursorInterface.html">ktexteditor::cursorinterface</option>,  <option value="classKTextEditor_1_1Document.html">ktexteditor::document</option>,  <option value="classKTextEditor_1_1DocumentInfoDCOPInterface.html">ktexteditor::documentinfodcopinterface</option>,  <option value="classKTextEditor_1_1DocumentInfoInterface.html">ktexteditor::documentinfointerface</option>,  <option value="classKTextEditor_1_1DynWordWrapInterface.html">ktexteditor::dynwordwrapinterface</option>,  <option value="classKTextEditor_1_1EditDCOPInterface.html">ktexteditor::editdcopinterface</option>,  <option value="classKTextEditor_1_1EditInterface.html">ktexteditor::editinterface</option>,  <option value="classKTextEditor_1_1EditInterfaceExt.html">ktexteditor::editinterfaceext</option>,  <option value="classKTextEditor_1_1Editor.html">ktexteditor::editor</option>,  <option value="classKTextEditor_1_1EncodingDCOPInterface.html">ktexteditor::encodingdcopinterface</option>,  <option value="classKTextEditor_1_1EncodingInterface.html">ktexteditor::encodinginterface</option>,  <option value="classKTextEditor_1_1HighlightingInterface.html">ktexteditor::highlightinginterface</option>,  <option value="classKTextEditor_1_1MarkInterface.html">ktexteditor::markinterface</option>,  <option value="classKTextEditor_1_1MarkInterfaceExtension.html">ktexteditor::markinterfaceextension</option>,  <option value="classKTextEditor_1_1Plugin.html">ktexteditor::plugin</option>,  <option value="classKTextEditor_1_1PluginViewInterface.html">ktexteditor::pluginviewinterface</option>,  <option value="classKTextEditor_1_1PopupMenuInterface.html">ktexteditor::popupmenuinterface</option>,  <option value="classKTextEditor_1_1PrintDCOPInterface.html">ktexteditor::printdcopinterface</option>,  <option value="classKTextEditor_1_1PrintInterface.html">ktexteditor::printinterface</option>,  <option value="classKTextEditor_1_1SearchDCOPInterface.html">ktexteditor::searchdcopinterface</option>,  <option value="classKTextEditor_1_1SearchInterface.html">ktexteditor::searchinterface</option>,  <option value="classKTextEditor_1_1SelectionDCOPInterface.html">ktexteditor::selectiondcopinterface</option>,  <option value="classKTextEditor_1_1SelectionExtDCOPInterface.html">ktexteditor::selectionextdcopinterface</option>,  <option value="classKTextEditor_1_1SelectionInterface.html">ktexteditor::selectioninterface</option>,  <option value="classKTextEditor_1_1SelectionInterfaceExt.html">ktexteditor::selectioninterfaceext</option>,  <option value="classKTextEditor_1_1SessionConfigInterface.html">ktexteditor::sessionconfiginterface</option>,  <option value="classKTextEditor_1_1TemplateInterface.html">ktexteditor::templateinterface</option>,  <option value="classKTextEditor_1_1TextHintInterface.html">ktexteditor::texthintinterface</option>,  <option value="classKTextEditor_1_1UndoDCOPInterface.html">ktexteditor::undodcopinterface</option>,  <option value="classKTextEditor_1_1UndoInterface.html">ktexteditor::undointerface</option>,  <option value="classKTextEditor_1_1VariableInterface.html">ktexteditor::variableinterface</option>,  <option value="classKTextEditor_1_1View.html">ktexteditor::view</option>,  <option value="classKTextEditor_1_1ViewCursorDCOPInterface.html">ktexteditor::viewcursordcopinterface</option>,  <option value="classKTextEditor_1_1ViewCursorInterface.html">ktexteditor::viewcursorinterface</option>,  <option value="classKTextEditor_1_1ViewStatusMsgDCOPInterface.html">ktexteditor::viewstatusmsgdcopinterface</option>,  <option value="classKTextEditor_1_1ViewStatusMsgInterface.html">ktexteditor::viewstatusmsginterface</option>,  <option value="classKTextEditor_1_1WordWrapInterface.html">ktexteditor::wordwrapinterface</option>,  <option value="classScriptLoader.html">scriptloader</option>,  <option value="classTerminalInterface.html">terminalinterface</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>