KVIrc  4.9.2
DeveloperAPIs
MpAmipInterface.h
Go to the documentation of this file.
1 #ifndef _MP_AMIPINTERFACE_H_
2 #define _MP_AMIPINTERFACE_H_
3 //=============================================================================
4 //
5 // File : MpAmipInterface.cpp
6 // Creation date : Sun 27 Mar 2005 16:55:09 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2005-2010 Szymon Stefanek <pragma at kvirc dot net>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 
29 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
30 
31 #include "MpInterface.h"
32 
33 class MpAmipInterface : public MpInterface
34 {
35 public:
36  MpAmipInterface();
37  ~MpAmipInterface();
38 
39 public:
40  virtual int detect(bool bStart);
41  virtual bool prev();
42  virtual bool next();
43  virtual bool play();
44  virtual bool stop();
45  virtual bool pause();
46  virtual bool quit();
47  virtual QString nowPlaying();
48  virtual QString artist();
49  virtual QString title();
50  virtual QString genre();
51  virtual QString comment();
52  virtual QString album();
53  virtual QString year();
54  virtual QString mrl();
55  virtual int position();
56  virtual int length();
57  virtual bool setVol(kvs_int_t & iVol);
58  virtual int getVol();
59  virtual bool jumpTo(kvs_int_t & iPos);
60  virtual int sampleRate();
61  virtual int bitRate();
62  virtual int channels();
63  virtual bool hide();
64  virtual bool show();
65  virtual bool minimize();
66  virtual int getPlayListPos();
67  virtual bool setPlayListPos(kvs_int_t & iPos);
68  virtual int getListLength();
69  virtual bool getRepeat();
70  virtual bool getShuffle();
71  virtual bool setRepeat(bool & bVal);
72  virtual bool setShuffle(bool & bVal);
73  virtual bool amipExec(const QString & cmd);
74  virtual QString amipEval(const QString & cmd);
76 };
77 
78 MP_DECLARE_DESCRIPTOR(MpAmipInterface)
79 
80 #endif //COMPILE_ON_WINDOWS
81 
82 #endif
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
virtual MpInterface::PlayerStatus status()
Definition: MpInterface.cpp:191
virtual QString amipEval(const QString &cmd)
Definition: MpInterface.cpp:95
virtual bool hide()
Definition: MpInterface.cpp:64
virtual int getListLength()
Definition: MpInterface.cpp:227
virtual int channels()
Definition: MpInterface.cpp:209
virtual bool play()=0
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
virtual bool jumpTo(kvs_int_t &iPos)
Definition: MpInterface.cpp:185
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
virtual bool stop()=0
virtual bool pause()=0
virtual bool setRepeat(bool &bVal)
Definition: MpInterface.cpp:257
virtual QString mrl()=0
virtual QString nowPlaying()=0
Definition: MpInterface.h:31
virtual bool quit()
Definition: MpInterface.cpp:58
virtual int bitRate()
Definition: MpInterface.cpp:197
virtual bool prev()=0
virtual int length()
Definition: MpInterface.cpp:52
virtual bool show()
Definition: MpInterface.cpp:70
virtual int position()
Definition: MpInterface.cpp:46
virtual int getVol()
Definition: MpInterface.cpp:173
This file contains compile time settings.
#define MP_DECLARE_DESCRIPTOR(_interfaceclass)
Definition: MpInterface.h:200
virtual QString year()
Definition: MpInterface.cpp:142
virtual int getPlayListPos()
Definition: MpInterface.cpp:215
kvi_i64_t kvs_int_t
Definition: KviKvsTypes.h:33
virtual bool next()=0
virtual QString artist()
Definition: MpInterface.cpp:118
virtual int detect(bool bStart)=0