KVIrc 5.2.4
Developer APIs
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MpInterface Class Referenceabstract

#include <MpInterface.h>

+ Inheritance diagram for MpInterface:

Public Types

enum  PlayerStatus { Unknown , Stopped , Playing , Paused }
 

Public Member Functions

virtual QString album ()
 
virtual QString amipEval (const QString &cmd)
 
virtual bool amipExec (const QString &cmd)
 
virtual QString artist ()
 
virtual int bitRate ()
 
virtual int channels ()
 
virtual QString comment ()
 
virtual int detect (bool bStart)=0
 
virtual QString genre ()
 
virtual int getEqData (kvs_int_t &i_val)
 
virtual int getListLength ()
 
virtual int getPlayListPos ()
 
virtual bool getRepeat ()
 
virtual bool getShuffle ()
 
virtual int getVol ()
 
virtual bool hide ()
 
virtual bool jumpTo (kvs_int_t &iPos)
 
const QString & lastError () const
 
virtual int length ()
 
virtual QString mediaType ()
 
virtual bool minimize ()
 
 MpInterface ()
 
virtual QString mrl ()=0
 
virtual bool mute ()
 
virtual bool next ()=0
 
virtual QString nowPlaying ()=0
 
virtual bool pause ()=0
 
virtual bool play ()=0
 
virtual bool playMrl (const QString &mrl)
 
virtual int position ()
 
virtual bool prev ()=0
 
virtual bool quit ()
 
virtual int sampleRate ()
 
virtual bool setEqData (kvs_int_t &iPos, kvs_int_t &iVal)
 
void setLastError (const QString &szLastError)
 
virtual bool setPlayListPos (kvs_int_t &iPos)
 
virtual bool setRepeat (bool &bVal)
 
virtual bool setShuffle (bool &bVal)
 
virtual bool setVol (kvs_int_t &iVol)
 
virtual bool show ()
 
virtual MpInterface::PlayerStatus status ()
 
virtual bool stop ()=0
 
virtual QString title ()
 
virtual QString year ()
 
virtual ~MpInterface ()
 

Protected Member Functions

QString getLocalFile ()
 
void notImplemented ()
 

Protected Attributes

QString m_szLastError
 

Member Enumeration Documentation

◆ PlayerStatus

Enumerator
Unknown 
Stopped 
Playing 
Paused 

Constructor & Destructor Documentation

◆ MpInterface()

MpInterface::MpInterface ( )
inline

◆ ~MpInterface()

virtual MpInterface::~MpInterface ( )
inlinevirtual

Member Function Documentation

◆ album()

QString MpInterface::album ( )
virtual

References SCAN_MP3_FILE.

◆ amipEval()

QString MpInterface::amipEval ( const QString &  cmd)
virtual

Referenced by MP_KVS_FUNCTION().

◆ amipExec()

bool MpInterface::amipExec ( const QString &  cmd)
virtual

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ artist()

QString MpInterface::artist ( )
virtual

References SCAN_MP3_FILE.

◆ bitRate()

int MpInterface::bitRate ( )
virtual

◆ channels()

int MpInterface::channels ( )
virtual

◆ comment()

QString MpInterface::comment ( )
virtual

References SCAN_MP3_FILE.

◆ detect()

virtual int MpInterface::detect ( bool  bStart)
pure virtual

Implemented in KviXmmsInterface.

Referenced by auto_detect_player().

◆ genre()

QString MpInterface::genre ( )
virtual

References get_typegenre(), and SCAN_MP3_FILE.

◆ getEqData()

int MpInterface::getEqData ( kvs_int_t i_val)
virtual

References notImplemented().

Referenced by MP_KVS_FUNCTION().

◆ getListLength()

int MpInterface::getListLength ( )
virtual

References notImplemented().

◆ getLocalFile()

QString MpInterface::getLocalFile ( )
protected

References mrl().

◆ getPlayListPos()

int MpInterface::getPlayListPos ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ getRepeat()

bool MpInterface::getRepeat ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ getShuffle()

bool MpInterface::getShuffle ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ getVol()

int MpInterface::getVol ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ hide()

bool MpInterface::hide ( )
virtual

References notImplemented().

◆ jumpTo()

bool MpInterface::jumpTo ( kvs_int_t iPos)
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ lastError()

const QString & MpInterface::lastError ( ) const
inline

◆ length()

int MpInterface::length ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ mediaType()

QString MpInterface::mediaType ( )
virtual

References mrl().

◆ minimize()

bool MpInterface::minimize ( )
virtual

References notImplemented().

◆ mrl()

virtual QString MpInterface::mrl ( )
pure virtual

Implemented in KviXmmsInterface.

Referenced by getLocalFile(), mediaType(), and MP_KVS_FUNCTION().

◆ mute()

bool MpInterface::mute ( )
virtual

References notImplemented().

◆ next()

virtual bool MpInterface::next ( )
pure virtual

Implemented in KviXmmsInterface.

◆ notImplemented()

void MpInterface::notImplemented ( )
protected

◆ nowPlaying()

virtual QString MpInterface::nowPlaying ( )
pure virtual

Implemented in KviXmmsInterface.

◆ pause()

virtual bool MpInterface::pause ( )
pure virtual

Implemented in KviXmmsInterface.

◆ play()

virtual bool MpInterface::play ( )
pure virtual

Implemented in KviXmmsInterface.

◆ playMrl()

bool MpInterface::playMrl ( const QString &  mrl)
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ position()

int MpInterface::position ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ prev()

virtual bool MpInterface::prev ( )
pure virtual

Implemented in KviXmmsInterface.

◆ quit()

bool MpInterface::quit ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

◆ sampleRate()

int MpInterface::sampleRate ( )
virtual

◆ setEqData()

bool MpInterface::setEqData ( kvs_int_t iPos,
kvs_int_t iVal 
)
virtual

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ setLastError()

void MpInterface::setLastError ( const QString &  szLastError)
inline

◆ setPlayListPos()

bool MpInterface::setPlayListPos ( kvs_int_t iPos)
virtual

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ setRepeat()

bool MpInterface::setRepeat ( bool &  bVal)
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ setShuffle()

bool MpInterface::setShuffle ( bool &  bVal)
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ setVol()

bool MpInterface::setVol ( kvs_int_t iVol)
virtual

Reimplemented in KviXmmsInterface.

References notImplemented().

Referenced by MP_KVS_COMMAND().

◆ show()

bool MpInterface::show ( )
virtual

References notImplemented().

◆ status()

MpInterface::PlayerStatus MpInterface::status ( )
virtual

Reimplemented in KviXmmsInterface.

References notImplemented(), and Unknown.

Referenced by MP_KVS_FUNCTION().

◆ stop()

virtual bool MpInterface::stop ( )
pure virtual

Implemented in KviXmmsInterface.

◆ title()

QString MpInterface::title ( )
virtual

References SCAN_MP3_FILE.

◆ year()

QString MpInterface::year ( )
virtual

References SCAN_MP3_FILE.

Member Data Documentation

◆ m_szLastError

QString MpInterface::m_szLastError
protected

Referenced by lastError(), and setLastError().


The documentation for this class was generated from the following files: