![]() |
KVIrc 5.2.6
Developer APIs
|
#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) |
#define | TC_KVS_COMMAND_ERROR |
#define | TC_KVS_FAIL_ON_NO_INTERFACE |
#define | TC_KVS_FLOATRET_FUNCTION(__name, __ifacecommand) |
#define | TC_KVS_FUNCTION(__name) |
#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) |
#define | TC_KVS_REGFNC(__name, __stringname) |
#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 | ) |
Referenced by TC_KVS_COMMAND().
#define TC_KVS_COMMAND_ERROR |
#define TC_KVS_FAIL_ON_NO_INTERFACE |
#define TC_KVS_FLOATRET_FUNCTION | ( | __name, | |
__ifacecommand ) |
#define TC_KVS_FUNCTION | ( | __name | ) |
#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 ) |
Referenced by torrent_module_init().
#define TC_KVS_REGFNC | ( | __name, | |
__stringname ) |
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, g_pDescriptorList, i, KVI_OPTION_STRING, KVI_OUT_TORRENT, KviOption_stringPreferredTorrentClient, and TorrentInterfaceDescriptor::name().
Referenced by TC_KVS_COMMAND(), and torrent_module_init().
TC_KVS_COMMAND | ( | detect | ) |
References auto_detect_torrent_client(), and TorrentInterface::select().
TC_KVS_COMMAND | ( | setClient | ) |
TC_KVS_FUNCTION | ( | client | ) |
References KVI_OPTION_STRING, and KviOption_stringPreferredTorrentClient.
TC_KVS_FUNCTION | ( | clientList | ) |
References d, g_pDescriptorList, and pArray.
|
static |
|
static |
References g_pDescriptorList.
|
static |
|
static |
References auto_detect_torrent_client(), d, g_pDescriptorList, g_pMainWindow, KVI_OPTION_STRING, KviOption_stringPreferredMediaPlayer, KviOption_stringPreferredTorrentClient, m, TorrentInterface::select(), StatusBarApplet::selfRegister(), TC_KVS_REGCMD, TC_KVS_REGFNC, and torrent_module_init().
Referenced by torrent_module_init().
|
static |