KVIrc
4.9.2
DeveloperAPIs
|
#include "MpInterface.h"
#include "MpAmipInterface.h"
#include "MpMprisInterface.h"
#include "MpWinampInterface.h"
#include "MpXmmsInterface.h"
#include "KviModule.h"
#include "KviOptions.h"
#include "KviLocale.h"
#include "kvi_out.h"
#include <QUrl>
Macros | |
#define | MP_KVS_COMMAND(__name) static bool mediaplayer_kvs_cmd_##__name(KviKvsModuleCommandCall * c) |
#define | MP_KVS_FAIL_ON_NO_INTERFACE |
#define | MP_KVS_FUNCTION(__name) static bool mediaplayer_kvs_fnc_##__name(KviKvsModuleFunctionCall * c) |
#define | MP_KVS_REGCMD(__name, __stringname) KVSM_REGISTER_SIMPLE_COMMAND(m, __stringname, mediaplayer_kvs_cmd_##__name) |
#define | MP_KVS_REGFNC(__name, __stringname) KVSM_REGISTER_FUNCTION(m, __stringname, mediaplayer_kvs_fnc_##__name) |
#define | MP_KVS_SIMPLE_BOOL_FUNCTION(__name, __ifacecommand) |
#define | MP_KVS_SIMPLE_COMMAND(__name, __ifacecommand) |
#define | MP_KVS_SIMPLE_INT_FUNCTION(__name, __ifacecommand) |
#define | MP_KVS_SIMPLE_STRING_FUNCTION(__name, __ifacecommand) |
Functions | |
static MpInterface * | auto_detect_player (KviWindow *pOut=nullptr) |
static bool | mediaplayer_module_can_unload (KviModule *) |
static bool | mediaplayer_module_cleanup (KviModule *) |
static bool | mediaplayer_module_ctrl (KviModule *, const char *operation, void *param) |
static bool | mediaplayer_module_init (KviModule *m) |
MP_KVS_COMMAND (detect) | |
MP_KVS_COMMAND (setPlayer) | |
MP_KVS_COMMAND (playMrl) | |
MP_KVS_COMMAND (amipExec) | |
MP_KVS_COMMAND (jumpTo) | |
MP_KVS_COMMAND (setVol) | |
MP_KVS_COMMAND (setPlayListPos) | |
MP_KVS_COMMAND (setEqData) | |
MP_KVS_COMMAND (setRepeat) | |
MP_KVS_COMMAND (setShuffle) | |
MP_KVS_FUNCTION (player) | |
MP_KVS_FUNCTION (playerList) | |
MP_KVS_FUNCTION (getEqData) | |
MP_KVS_FUNCTION (localFile) | |
MP_KVS_FUNCTION (amipEval) | |
MP_KVS_FUNCTION (status) | |
Variables | |
static KviPointerList < MpInterfaceDescriptor > * | g_pDescriptorList = nullptr |
static MpInterface * | g_pMPInterface = nullptr |
#define MP_KVS_COMMAND | ( | __name | ) | static bool mediaplayer_kvs_cmd_##__name(KviKvsModuleCommandCall * c) |
#define MP_KVS_FAIL_ON_NO_INTERFACE |
Referenced by MP_KVS_COMMAND(), and MP_KVS_FUNCTION().
#define MP_KVS_FUNCTION | ( | __name | ) | static bool mediaplayer_kvs_fnc_##__name(KviKvsModuleFunctionCall * c) |
#define MP_KVS_REGCMD | ( | __name, | |
__stringname | |||
) | KVSM_REGISTER_SIMPLE_COMMAND(m, __stringname, mediaplayer_kvs_cmd_##__name) |
Referenced by mediaplayer_module_init().
#define MP_KVS_REGFNC | ( | __name, | |
__stringname | |||
) | KVSM_REGISTER_FUNCTION(m, __stringname, mediaplayer_kvs_fnc_##__name) |
Referenced by mediaplayer_module_init().
#define MP_KVS_SIMPLE_BOOL_FUNCTION | ( | __name, | |
__ifacecommand | |||
) |
#define MP_KVS_SIMPLE_COMMAND | ( | __name, | |
__ifacecommand | |||
) |
#define MP_KVS_SIMPLE_INT_FUNCTION | ( | __name, | |
__ifacecommand | |||
) |
#define MP_KVS_SIMPLE_STRING_FUNCTION | ( | __name, | |
__ifacecommand | |||
) |
|
static |
References __tr2qs_ctx(), d, MpInterface::detect(), KviPointerList< T >::first(), i, MpInterfaceDescriptor::instance(), KVI_OPTION_STRING, KVI_OUT_MULTIMEDIA, KviOption_stringPreferredMediaPlayer, MpInterfaceDescriptor::name(), and KviPointerList< T >::next().
Referenced by mediaplayer_module_ctrl(), mediaplayer_module_init(), and MP_KVS_COMMAND().
|
static |
|
static |
References g_pDescriptorList.
|
static |
References auto_detect_player(), d, KviPointerList< T >::first(), kvi_strEqualCI(), l, and KviPointerList< T >::next().
|
static |
MP_KVS_COMMAND | ( | detect | ) |
References auto_detect_player(), and c.
MP_KVS_COMMAND | ( | setPlayer | ) |
MP_KVS_COMMAND | ( | playMrl | ) |
MP_KVS_COMMAND | ( | amipExec | ) |
MP_KVS_COMMAND | ( | jumpTo | ) |
MP_KVS_COMMAND | ( | setVol | ) |
MP_KVS_COMMAND | ( | setPlayListPos | ) |
MP_KVS_COMMAND | ( | setEqData | ) |
MP_KVS_COMMAND | ( | setRepeat | ) |
MP_KVS_COMMAND | ( | setShuffle | ) |
MP_KVS_FUNCTION | ( | player | ) |
References c, KVI_OPTION_STRING, and KviOption_stringPreferredMediaPlayer.
MP_KVS_FUNCTION | ( | playerList | ) |
References c, d, KviPointerList< T >::first(), KviPointerList< T >::next(), pArray, and KviKvsArray::set().
MP_KVS_FUNCTION | ( | getEqData | ) |
MP_KVS_FUNCTION | ( | localFile | ) |
References c, KVSM_PARAMETERS_BEGIN, KVSM_PARAMETERS_END, MP_KVS_FAIL_ON_NO_INTERFACE, and MpInterface::mrl().
MP_KVS_FUNCTION | ( | amipEval | ) |
MP_KVS_FUNCTION | ( | status | ) |
|
static |
Referenced by mediaplayer_module_cleanup().
|
static |