player.cpp
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 #include <kmediaplayer/player.h>
00025 
00026 KMediaPlayer::PlayerDCOPObject::PlayerDCOPObject(void)
00027     : DCOPObject("KMediaPlayer")
00028 {
00029 }
00030 
00031 KMediaPlayer::Player::Player(QWidget *, const char *, QObject *parent, const char *name)
00032     : KParts::ReadOnlyPart(parent, name)
00033     , currentLooping(false)
00034     , currentState(Empty)
00035     , d(0)
00036 {
00037 }
00038 
00039 KMediaPlayer::Player::Player(QObject *parent, const char *name)
00040     : KParts::ReadOnlyPart(parent, name)
00041     , currentLooping(false)
00042     , currentState(Empty)
00043     , d(0)
00044 {
00045 }
00046 
00047 KMediaPlayer::Player::~Player(void)
00048 {
00049 }
00050 
00051 void KMediaPlayer::Player::setLooping(bool b)
00052 {
00053     if(b != currentLooping)
00054     {
00055         currentLooping = b;
00056         emit loopingChanged(b);
00057     }
00058 }
00059 
00060 bool KMediaPlayer::Player::isLooping(void) const
00061 {
00062     return currentLooping;
00063 }
00064 
00065 void KMediaPlayer::Player::setState(int s)
00066 {
00067     if(s != currentState)
00068     {
00069         currentState = (State)s;
00070         emit stateChanged(s);
00071     }
00072 }
00073 
00074 int KMediaPlayer::Player::state(void) const
00075 {
00076     return (int)currentState;
00077 }
00078 
00079 #include "player.moc"
 
This file is part of the documentation for interfaces Library Version 3.2.0.