1 #ifndef _MP_INTERFACE_H_
2 #define _MP_INTERFACE_H_
61 virtual int detect(
bool bStart) = 0;
64 virtual bool prev() = 0;
66 virtual bool next() = 0;
68 virtual bool play() = 0;
70 virtual bool stop() = 0;
72 virtual bool pause() = 0;
87 virtual QString
mrl() = 0;
97 virtual bool amipExec(
const QString & cmd);
98 virtual QString
amipEval(
const QString & cmd);
136 virtual QString
title();
144 virtual QString
genre();
150 virtual QString
year();
154 virtual QString
album();
195 virtual const QString &
name() = 0;
200 #define MP_DECLARE_DESCRIPTOR(_interfaceclass) \
201 class _interfaceclass##Descriptor : public MpInterfaceDescriptor \
204 _interfaceclass##Descriptor(); \
205 virtual ~_interfaceclass##Descriptor(); \
208 _interfaceclass * m_pInstance; \
210 QString m_szDescription; \
213 virtual const QString & name(); \
214 virtual const QString & description(); \
215 virtual MpInterface * instance(); \
218 #define MP_IMPLEMENT_DESCRIPTOR(_interfaceclass, _name, _description) \
219 _interfaceclass##Descriptor::_interfaceclass##Descriptor() \
220 : MpInterfaceDescriptor() \
224 m_szDescription = _description; \
226 _interfaceclass##Descriptor::~_interfaceclass##Descriptor() \
229 delete m_pInstance; \
231 const QString & _interfaceclass##Descriptor::name() \
235 const QString & _interfaceclass##Descriptor::description() \
237 return m_szDescription; \
239 MpInterface * _interfaceclass##Descriptor::instance() \
242 m_pInstance = new _interfaceclass(); \
243 return m_pInstance; \
246 #define MP_CREATE_DESCRIPTOR(_interfaceclass) \
247 new _interfaceclass##Descriptor()
PlayerStatus
Definition: MpInterface.h:113
virtual bool minimize()
Definition: MpInterface.cpp:76
virtual bool setShuffle(bool &bVal)
Definition: MpInterface.cpp:263
virtual bool getRepeat()
Definition: MpInterface.cpp:245
MpInterface()
Definition: MpInterface.h:36
Definition: MpInterface.h:188
virtual MpInterface::PlayerStatus status()
Definition: MpInterface.cpp:191
virtual QString amipEval(const QString &cmd)
Definition: MpInterface.cpp:95
virtual bool setEqData(kvs_int_t &iPos, kvs_int_t &iVal)
Definition: MpInterface.cpp:239
virtual bool hide()
Definition: MpInterface.cpp:64
Definition: MpInterface.h:115
QString m_szLastError
Definition: MpInterface.h:37
QString getLocalFile()
Definition: MpInterface.cpp:82
virtual int getListLength()
Definition: MpInterface.cpp:227
virtual int channels()
Definition: MpInterface.cpp:209
virtual bool mute()
Definition: MpInterface.cpp:179
virtual MpInterface * instance()=0
virtual bool playMrl(const QString &mrl)
Definition: MpInterface.cpp:155
virtual QString comment()
Definition: MpInterface.cpp:136
virtual QString album()
Definition: MpInterface.cpp:149
virtual bool getShuffle()
Definition: MpInterface.cpp:251
virtual QString genre()
Definition: MpInterface.cpp:130
virtual bool setPlayListPos(kvs_int_t &iPos)
Definition: MpInterface.cpp:221
Definition: MpInterface.h:118
virtual bool jumpTo(kvs_int_t &iPos)
Definition: MpInterface.cpp:185
virtual QString mediaType()
Definition: MpInterface.cpp:269
virtual ~MpInterfaceDescriptor()
Definition: MpInterface.h:192
virtual int sampleRate()
Definition: MpInterface.cpp:203
virtual QString title()
Definition: MpInterface.cpp:124
virtual bool setVol(kvs_int_t &iVol)
Definition: MpInterface.cpp:167
virtual bool amipExec(const QString &cmd)
Definition: MpInterface.cpp:161
MpInterfaceDescriptor()
Definition: MpInterface.h:191
virtual bool setRepeat(bool &bVal)
Definition: MpInterface.cpp:257
virtual QString nowPlaying()=0
Definition: MpInterface.h:116
Definition: MpInterface.h:31
virtual bool quit()
Definition: MpInterface.cpp:58
const QString & lastError() const
Definition: MpInterface.h:43
void notImplemented()
Definition: MpInterface.cpp:41
virtual int bitRate()
Definition: MpInterface.cpp:197
virtual ~MpInterface()
Definition: MpInterface.h:37
void setLastError(const QString &szLastError)
Definition: MpInterface.h:182
virtual int length()
Definition: MpInterface.cpp:52
virtual bool show()
Definition: MpInterface.cpp:70
virtual const QString & description()=0
virtual const QString & name()=0
virtual int position()
Definition: MpInterface.cpp:46
Definition: MpInterface.h:117
virtual int getVol()
Definition: MpInterface.cpp:173
This file contains compile time settings.
virtual QString year()
Definition: MpInterface.cpp:142
virtual int getPlayListPos()
Definition: MpInterface.cpp:215
kvi_i64_t kvs_int_t
Definition: KviKvsTypes.h:33
Helper functions for the QString class.
virtual QString artist()
Definition: MpInterface.cpp:118
virtual int detect(bool bStart)=0
virtual int getEqData(kvs_int_t &i_val)
Definition: MpInterface.cpp:233