Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KMediaPlayer::Player Class Reference
#include <player.h>
Inheritance diagram for KMediaPlayer::Player:
List of all members.
Detailed Description
Player is the center of the KMediaPlayer interface. It provides all of the necessary media player operations, and optionally provides the GUI to control them.
There are two servicetypes for Player: 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.
Definition at line 46 of file player.h.
Member Enumeration Documentation
| enum KMediaPlayer::Player::State
|
|
|
|
The possible states of the Player - Enumeration values:
-
| Empty |
No track is loaded. |
| Stop |
Not playing. |
| Pause |
Playing is temporarily suspended. |
| Play |
The media is currently being output. |
Definition at line 111 of file player.h. |
Constructor & Destructor Documentation
| KMediaPlayer::Player::Player |
( |
QObject * |
parent, |
|
|
const char * |
name |
|
) |
|
|
|
|
This constructor is what to use when no GUI is required, as in the case of a KMediaPlayer/Engine. |
| KMediaPlayer::Player::Player |
( |
QWidget * |
parentWidget, |
|
|
const char * |
widgetName, |
|
|
QObject * |
parent, |
|
|
const char * |
name |
|
) |
|
|
|
|
This constructor is what to use when a GUI is required, as in the case of a KMediaPlayer/Player. |
Member Function Documentation
| virtual bool KMediaPlayer::Player::hasLength |
( |
void |
|
) |
const [pure virtual] |
|
|
|
Returns whether the current track has a length. Some streams are endless, and do not have one. |
| bool KMediaPlayer::Player::isLooping |
( |
void |
|
) |
const |
|
|
|
Return the current looping state. |
| virtual bool KMediaPlayer::Player::isSeekable |
( |
void |
|
) |
const [pure virtual] |
|
|
|
Returns whether the current track honors seek requests. |
| virtual unsigned long KMediaPlayer::Player::length |
( |
void |
|
) |
const [pure virtual] |
|
|
|
Returns the length of the current track. |
| void KMediaPlayer::Player::loopingChanged |
( |
bool |
|
) |
[signal] |
|
|
|
Emitted when the looping state is changed. |
| virtual void KMediaPlayer::Player::pause |
( |
void |
|
) |
[pure virtual, slot] |
|
|
|
Pause playback of the media track. |
| virtual void KMediaPlayer::Player::play |
( |
void |
|
) |
[pure virtual, slot] |
|
|
|
Begin playing the media track. |
| virtual unsigned long KMediaPlayer::Player::position |
( |
void |
|
) |
const [pure virtual] |
|
|
|
Returns the current playback position in the track. |
| virtual void KMediaPlayer::Player::seek |
( |
unsigned long |
msec |
) |
[pure virtual, slot] |
|
|
|
Move the current playback position to the specified time in milliseconds, if the track is seekable. Some streams may not be seeked. |
| void KMediaPlayer::Player::setLooping |
( |
bool |
|
) |
[slot] |
|
|
|
Set whether the Player should continue playing at the beginning of the track when the end of the track is reached. |
| void KMediaPlayer::Player::setState |
( |
int |
|
) |
[protected, slot] |
|
|
|
Implementers use this to control what users see as the current state. |
| int KMediaPlayer::Player::state |
( |
void |
|
) |
const |
|
|
|
Return the current state of the player. |
| void KMediaPlayer::Player::stateChanged |
( |
int |
|
) |
[signal] |
|
|
|
Emitted when the state changes. |
| virtual void KMediaPlayer::Player::stop |
( |
void |
|
) |
[pure virtual, slot] |
|
|
|
Stop playback of the media track and return to the beginning. |
| virtual View* KMediaPlayer::Player::view |
( |
void |
|
) |
[pure virtual] |
|
|
|
A convenience function returning a pointer to the View for this Player, or 0 if this Player has no GUI. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:35 2003 for kdelibs by
1.2.18