KVIrc  4.9.2
DeveloperAPIs
MpXmmsInterface.h
Go to the documentation of this file.
1 #ifndef _MP_XMMSINTERFACE_H_
2 #define _MP_XMMSINTERFACE_H_
3 //=============================================================================
4 //
5 // File : MpXmmsInterface.h
6 // Creation date : Fri 25 Mar 2005 20:04:54 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 // Thnx to Alexander Stillich <torque at pltn dot org> for Audacious
26 // media player interface hints :)
27 //
28 //=============================================================================
29 
30 #include "MpInterface.h"
31 
32 #include "kvi_settings.h"
33 
34 #include <QLibrary>
35 
36 #if !defined(COMPILE_ON_WINDOWS) && !defined(COMPILE_ON_MINGW)
38 {
39 public:
41  virtual ~KviXmmsInterface();
42 
43 protected:
44  QLibrary * m_pPlayerLibrary;
46  const char ** m_pLibraryPaths;
47 
48 public:
49  virtual int detect(bool bStart);
50  virtual bool prev();
51  virtual bool next();
52  virtual bool play();
53  virtual bool stop();
54  virtual bool pause();
55  virtual bool quit();
56  virtual bool jumpTo(kvs_int_t & iPos);
57  virtual bool setVol(kvs_int_t & iVol);
58  virtual int getVol();
60  virtual QString nowPlaying();
61  virtual bool playMrl(const QString & mrl);
62  virtual QString mrl();
63  virtual int getPlayListPos();
64  virtual int position();
65  virtual int length();
66  virtual bool getRepeat();
67  virtual bool getShuffle();
68  virtual bool setRepeat(bool & bVal);
69  virtual bool setShuffle(bool & bVal);
70 
71 protected:
72  bool loadPlayerLibrary();
73  void * lookupSymbol(const char * szSymbolName);
74 };
75 
77 
79 {
80 public:
83 };
84 
86 
87 #endif //COMPILE_ON_WINDOWS
88 
89 #endif //_MP_XMMSINTERFACE_H_
PlayerStatus
Definition: MpInterface.h:113
virtual ~KviXmmsInterface()
Definition: MpXmmsInterface.cpp:78
virtual bool setShuffle(bool &bVal)
Definition: MpXmmsInterface.cpp:243
virtual bool stop()
Definition: MpXmmsInterface.cpp:167
virtual bool getShuffle()
Definition: MpXmmsInterface.cpp:234
virtual bool setRepeat(bool &bVal)
Definition: MpXmmsInterface.cpp:218
virtual bool pause()
Definition: MpXmmsInterface.cpp:172
virtual MpInterface::PlayerStatus status()
Definition: MpXmmsInterface.cpp:259
QString m_szPlayerLibraryName
Definition: MpXmmsInterface.h:45
virtual bool jumpTo(kvs_int_t &iPos)
Definition: MpXmmsInterface.cpp:182
virtual int detect(bool bStart)
Definition: MpXmmsInterface.cpp:139
virtual int getVol()
Definition: MpXmmsInterface.cpp:200
virtual bool setVol(kvs_int_t &iVol)
Definition: MpXmmsInterface.cpp:191
virtual QString mrl()
Definition: MpXmmsInterface.cpp:326
virtual bool playMrl(const QString &mrl)
Definition: MpXmmsInterface.cpp:279
Definition: MpXmmsInterface.h:37
void * lookupSymbol(const char *szSymbolName)
Definition: MpXmmsInterface.cpp:119
virtual bool getRepeat()
Definition: MpXmmsInterface.cpp:209
Definition: MpInterface.h:31
virtual bool quit()
Definition: MpXmmsInterface.cpp:177
virtual bool play()
Definition: MpXmmsInterface.cpp:162
Definition: MpXmmsInterface.h:78
virtual bool next()
Definition: MpXmmsInterface.cpp:157
const char ** m_pLibraryPaths
Definition: MpXmmsInterface.h:46
virtual QString nowPlaying()
Definition: MpXmmsInterface.cpp:314
bool loadPlayerLibrary()
Definition: MpXmmsInterface.cpp:98
This file contains compile time settings.
virtual bool prev()
Definition: MpXmmsInterface.cpp:152
#define MP_DECLARE_DESCRIPTOR(_interfaceclass)
Definition: MpInterface.h:200
QLibrary * m_pPlayerLibrary
Definition: MpXmmsInterface.h:44
virtual int length()
Definition: MpXmmsInterface.cpp:354
kvi_i64_t kvs_int_t
Definition: KviKvsTypes.h:33
virtual int position()
Definition: MpXmmsInterface.cpp:342
KviXmmsInterface()
Definition: MpXmmsInterface.cpp:70
virtual int getPlayListPos()
Definition: MpXmmsInterface.cpp:366