aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/mediaplayer/mp_interface.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-03-28 01:20:56 +0000
committerGravatar Elvio Basello2008-03-28 01:20:56 +0000
commit325a4fe07493372ed039d136043951b324f97983 (patch)
tree330dff7fb1d217d1a2fe7b03b4dc8d0c572ec5c3 /src/modules/mediaplayer/mp_interface.cpp
parentported drag'n'drop; (diff)
downloadKVIrc-325a4fe07493372ed039d136043951b324f97983.tar.gz
KVIrc-325a4fe07493372ed039d136043951b324f97983.tar.bz2
KVIrc-325a4fe07493372ed039d136043951b324f97983.zip
ported mediaplayer module;
added audacious interface. thanks to desowin from audacious project; added QtDBus to link with; updated sources date; git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1307 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/mediaplayer/mp_interface.cpp')
-rw-r--r--src/modules/mediaplayer/mp_interface.cpp64
1 files changed, 33 insertions, 31 deletions
diff --git a/src/modules/mediaplayer/mp_interface.cpp b/src/modules/mediaplayer/mp_interface.cpp
index ce84d5893..3c9b81049 100644
--- a/src/modules/mediaplayer/mp_interface.cpp
+++ b/src/modules/mediaplayer/mp_interface.cpp
@@ -24,9 +24,11 @@
#include "mp_interface.h"
#include "mp_mp3.h"
+
#include "kvi_options.h"
-#include "kvi_locale.h"
-#include <qtextcodec.h>
+#include "kvi_locale.h"
+
+#include <QTextCodec>
static QTextCodec * mediaplayer_get_codec()
{
@@ -35,46 +37,46 @@ static QTextCodec * mediaplayer_get_codec()
return c;
}
-
-void KviMediaPlayerInterface::notImplemented()
-{
- setLastError(__tr2qs_ctx("Function not implemented","mediaplayer"));
-}
-
-
+
+void KviMediaPlayerInterface::notImplemented()
+{
+ setLastError(__tr2qs_ctx("Function not implemented","mediaplayer"));
+}
+
+
int KviMediaPlayerInterface::position()
{
- notImplemented();
+ notImplemented();
return -1;
}
int KviMediaPlayerInterface::length()
{
- notImplemented();
+ notImplemented();
return -1;
}
bool KviMediaPlayerInterface::quit()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::hide()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::show()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::minimize()
{
- notImplemented();
+ notImplemented();
return false;
}
@@ -149,43 +151,43 @@ QString KviMediaPlayerInterface::album()
bool KviMediaPlayerInterface::playMrl(const QString &mrl)
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::amipExec(const QString &cmd)
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::setVol(kvs_int_t &iVol)
{
- notImplemented();
+ notImplemented();
return false;
}
int KviMediaPlayerInterface::getVol()
{
- notImplemented();
+ notImplemented();
return -1;
}
bool KviMediaPlayerInterface::mute()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::jumpTo(int &iPos)
{
- notImplemented();
+ notImplemented();
return false;
}
KviMediaPlayerInterface::PlayerStatus KviMediaPlayerInterface::status()
{
- notImplemented();
+ notImplemented();
return KviMediaPlayerInterface::Unknown;
}
@@ -209,56 +211,56 @@ int KviMediaPlayerInterface::channels()
int KviMediaPlayerInterface::getPlayListPos()
{
- notImplemented();
+ notImplemented();
return -1;
}
bool KviMediaPlayerInterface::setPlayListPos(int &iPos)
{
- notImplemented();
+ notImplemented();
return false;
}
int KviMediaPlayerInterface::getListLength()
{
- notImplemented();
+ notImplemented();
return -1;
}
int KviMediaPlayerInterface::getEqData(int &ival)
{
- notImplemented();
+ notImplemented();
return -1;
}
bool KviMediaPlayerInterface::setEqData(int &iPos, int &iVal)
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::getRepeat()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::getShuffle()
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::setRepeat(bool &bVal)
{
- notImplemented();
+ notImplemented();
return false;
}
bool KviMediaPlayerInterface::setShuffle(bool &bVal)
{
- notImplemented();
+ notImplemented();
return false;
}