KVIrc  4.9.2
DeveloperAPIs
MpWinampInterface.h
Go to the documentation of this file.
1 #ifndef _MP_WINAMPINTERFACE_H_
2 #define _MP_WINAMPINTERFACE_H_
3 //=============================================================================
4 //
5 // File : MpWinampInterface.h
6 // Creation date : Mon 28 Mar 2005 23:41:50 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 KviWinampInterface : public MpInterface
34 {
35 public:
36  KviWinampInterface();
37  ~KviWinampInterface();
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 mrl();
49  virtual int position();
50  virtual int length();
51  virtual bool playMrl(const QString & mrl);
52  virtual bool setVol(kvs_int_t & iVol);
53  virtual int getVol();
54  virtual bool jumpTo(kvs_int_t & iPos);
55  virtual int sampleRate();
56  virtual int bitRate();
57  virtual int channels();
58  virtual bool hide();
59  virtual bool show();
60  virtual bool minimize();
61  virtual int getPlayListPos();
62  virtual bool setPlayListPos(kvs_int_t & iPos);
63  virtual int getListLength();
64  virtual int getEqData(kvs_int_t & ival);
65  virtual bool setEqData(kvs_int_t & iPos, kvs_int_t & iVal);
66  virtual bool getRepeat();
67  virtual bool getShuffle();
68  virtual bool setRepeat(bool & bVal);
69  virtual bool setShuffle(bool & bVal);
71 };
72 
73 MP_DECLARE_DESCRIPTOR(KviWinampInterface)
74 
75 #endif //COMPILE_ON_WINDOWS
76 
77 #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 bool setEqData(kvs_int_t &iPos, kvs_int_t &iVal)
Definition: MpInterface.cpp:239
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 bool playMrl(const QString &mrl)
Definition: MpInterface.cpp:155
virtual bool getShuffle()
Definition: MpInterface.cpp:251
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 bool setVol(kvs_int_t &iVol)
Definition: MpInterface.cpp:167
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 int getPlayListPos()
Definition: MpInterface.cpp:215
kvi_i64_t kvs_int_t
Definition: KviKvsTypes.h:33
virtual bool next()=0
virtual int detect(bool bStart)=0
virtual int getEqData(kvs_int_t &i_val)
Definition: MpInterface.cpp:233