![]() |
KVIrc
4.9.2
DeveloperAPIs
|
#include "TorrentInterface.h"#include "KTorrentDbusInterface.h"#include "StatusBarApplet.h"#include "KviModule.h"#include "KviOptions.h"#include "KviMainWindow.h"#include "KviLocale.h"#include "kvi_out.h"Macros | |
| #define | TC_KVS_COMMAND(__name) static bool torrent_kvs_cmd_##__name(KviKvsModuleCommandCall * c) |
| #define | TC_KVS_COMMAND_ERROR |
| #define | TC_KVS_FAIL_ON_NO_INTERFACE |
| #define | TC_KVS_FLOATRET_FUNCTION(__name, __ifacecommand) |
| #define | TC_KVS_FUNCTION(__name) static bool torrent_kvs_fnc_##__name(KviKvsModuleFunctionCall * c) |
| #define | TC_KVS_INT_COMMAND(__name, __ifacecommand, __argname) |
| #define | TC_KVS_INT_INT_STRING_COMMAND(__name, __ifacecommand, __argname1, __argname2, __argname3) |
| #define | TC_KVS_INTRET_FUNCTION(__name, __ifacecommand) |
| #define | TC_KVS_INTRET_INT_FUNCTION(__name, __ifacecommand, __argname) |
| #define | TC_KVS_INTRET_INT_INT_FUNCTION(__name, __ifacecommand, __argname1, __argname2) |
| #define | TC_KVS_REGCMD(__name, __stringname) KVSM_REGISTER_SIMPLE_COMMAND(m, __stringname, torrent_kvs_cmd_##__name) |
| #define | TC_KVS_REGFNC(__name, __stringname) KVSM_REGISTER_FUNCTION(m, __stringname, torrent_kvs_fnc_##__name) |
| #define | TC_KVS_SIMPLE_COMMAND(__name, __ifacecommand) |
| #define | TC_KVS_STRINGRET_FUNCTION(__name, __ifacecommand) |
| #define | TC_KVS_STRINGRET_INT_FUNCTION(__name, __ifacecommand, __argname) |
| #define | TC_KVS_STRINGRET_INT_INT_FUNCTION(__name, __ifacecommand, __argname1, __argname2) |
Functions | |
| static TorrentInterface * | auto_detect_torrent_client (KviWindow *pOut=nullptr) |
| TC_KVS_COMMAND (detect) | |
| TC_KVS_COMMAND (setClient) | |
| TC_KVS_FUNCTION (client) | |
| TC_KVS_FUNCTION (clientList) | |
| static bool | torrent_module_can_unload (KviModule *) |
| static bool | torrent_module_cleanup (KviModule *) |
| static bool | torrent_module_ctrl (KviModule *, const char *, void *) |
| static bool | torrent_module_init (KviModule *m) |
Variables | |
| static KviPointerList < TorrentInterfaceDescriptor > * | g_pDescriptorList = nullptr |
| #define TC_KVS_COMMAND | ( | __name | ) | static bool torrent_kvs_cmd_##__name(KviKvsModuleCommandCall * c) |
| #define TC_KVS_COMMAND_ERROR |
| #define TC_KVS_FAIL_ON_NO_INTERFACE |
| #define TC_KVS_FLOATRET_FUNCTION | ( | __name, | |
| __ifacecommand | |||
| ) |
| #define TC_KVS_FUNCTION | ( | __name | ) | static bool torrent_kvs_fnc_##__name(KviKvsModuleFunctionCall * c) |
| #define TC_KVS_INT_COMMAND | ( | __name, | |
| __ifacecommand, | |||
| __argname | |||
| ) |
| #define TC_KVS_INT_INT_STRING_COMMAND | ( | __name, | |
| __ifacecommand, | |||
| __argname1, | |||
| __argname2, | |||
| __argname3 | |||
| ) |
| #define TC_KVS_INTRET_FUNCTION | ( | __name, | |
| __ifacecommand | |||
| ) |
| #define TC_KVS_INTRET_INT_FUNCTION | ( | __name, | |
| __ifacecommand, | |||
| __argname | |||
| ) |
| #define TC_KVS_INTRET_INT_INT_FUNCTION | ( | __name, | |
| __ifacecommand, | |||
| __argname1, | |||
| __argname2 | |||
| ) |
| #define TC_KVS_REGCMD | ( | __name, | |
| __stringname | |||
| ) | KVSM_REGISTER_SIMPLE_COMMAND(m, __stringname, torrent_kvs_cmd_##__name) |
Referenced by torrent_module_init().
| #define TC_KVS_REGFNC | ( | __name, | |
| __stringname | |||
| ) | KVSM_REGISTER_FUNCTION(m, __stringname, torrent_kvs_fnc_##__name) |
Referenced by torrent_module_init().
| #define TC_KVS_SIMPLE_COMMAND | ( | __name, | |
| __ifacecommand | |||
| ) |
| #define TC_KVS_STRINGRET_FUNCTION | ( | __name, | |
| __ifacecommand | |||
| ) |
| #define TC_KVS_STRINGRET_INT_FUNCTION | ( | __name, | |
| __ifacecommand, | |||
| __argname | |||
| ) |
| #define TC_KVS_STRINGRET_INT_INT_FUNCTION | ( | __name, | |
| __ifacecommand, | |||
| __argname1, | |||
| __argname2 | |||
| ) |
|
static |
References __tr2qs_ctx(), d, TorrentInterface::detect(), KviPointerList< T >::first(), i, TorrentInterfaceDescriptor::instance(), KVI_OPTION_STRING, KVI_OUT_TORRENT, KviOption_stringPreferredTorrentClient, TorrentInterfaceDescriptor::name(), and KviPointerList< T >::next().
Referenced by TC_KVS_COMMAND(), and torrent_module_init().
| TC_KVS_COMMAND | ( | detect | ) |
References auto_detect_torrent_client(), c, and TorrentInterface::select().
| TC_KVS_COMMAND | ( | setClient | ) |
| TC_KVS_FUNCTION | ( | client | ) |
References c, KVI_OPTION_STRING, and KviOption_stringPreferredTorrentClient.
| TC_KVS_FUNCTION | ( | clientList | ) |
References c, d, KviPointerList< T >::first(), KviPointerList< T >::next(), pArray, and KviKvsArray::set().
|
static |
|
static |
References g_pDescriptorList.
|
static |
|
static |
References KviPointerList< T >::append(), auto_detect_torrent_client(), d, KviPointerList< T >::first(), g_pMainWindow, KVI_OPTION_STRING, KviOption_stringPreferredMediaPlayer, KviOption_stringPreferredTorrentClient, KviMainWindow::mainStatusBar(), KviRuntimeInfo::name(), KviPointerList< T >::next(), TorrentInterface::select(), StatusBarApplet::selfRegister(), KviPointerList< T >::setAutoDelete(), TC_KVS_REGCMD, and TC_KVS_REGFNC.
|
static |
Referenced by torrent_module_cleanup().
1.8.7