• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Engines

player.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2008  Alex Merry <alex.merry@kdemail.net>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #include "player.h"
00021 
00022 Player::Player(PlayerFactory* factory)
00023     : m_factory(factory)
00024 {
00025 }
00026 
00027 Player::~Player()
00028 {
00029 }
00030 
00031 PlayerFactory* Player::factory() const
00032 {
00033     return m_factory;
00034 }
00035 
00036 QString Player::name() const
00037 {
00038     Q_ASSERT(!m_name.isEmpty());
00039     return m_name;
00040 }
00041 
00042 QString Player::artist()
00043 {
00044     return QString();
00045 }
00046 
00047 QString Player::album()
00048 {
00049     return QString();
00050 }
00051 
00052 QString Player::title()
00053 {
00054     return QString();
00055 }
00056 
00057 int Player::trackNumber()
00058 {
00059     return 0;
00060 }
00061 
00062 QString Player::comment()
00063 {
00064     return QString();
00065 }
00066 
00067 QString Player::genre()
00068 {
00069     return QString();
00070 }
00071 
00072 int Player::length()
00073 {
00074     return 0;
00075 }
00076 
00077 int Player::position()
00078 {
00079     return 0;
00080 }
00081 
00082 float Player::volume()
00083 {
00084     return -1;
00085 }
00086 
00087 QPixmap Player::artwork()
00088 {
00089     return QPixmap();
00090 }
00091 
00092 bool Player::canPlay()
00093 {
00094     return false;
00095 }
00096 
00097 void Player::play()
00098 {
00099 }
00100 
00101 bool Player::canPause()
00102 {
00103     return false;
00104 }
00105 
00106 void Player::pause()
00107 {
00108 }
00109 
00110 bool Player::canStop()
00111 {
00112     return false;
00113 }
00114 
00115 void Player::stop()
00116 {
00117 }
00118 
00119 bool Player::canGoPrevious()
00120 {
00121     return false;
00122 }
00123 
00124 void Player::previous()
00125 {
00126 }
00127 
00128 bool Player::canGoNext()
00129 {
00130     return false;
00131 }
00132 
00133 void Player::next()
00134 {
00135 }
00136 
00137 bool Player::canSetVolume()
00138 {
00139     return false;
00140 }
00141 
00142 void Player::setVolume(qreal)
00143 {
00144 }
00145 
00146 bool Player::canSeek()
00147 {
00148     return false;
00149 }
00150 
00151 void Player::seek(int)
00152 {
00153 }
00154 
00155 void Player::setName(const QString& name)
00156 {
00157     m_name = name;
00158 }
00159 

Engines

Skip menu "Engines"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal