![]() |
KVIrc 5.2.4
Developer APIs
|
#include "libkviurl.h"
#include "KviModule.h"
#include "KviApplication.h"
#include "KviMainWindow.h"
#include "KviMenuBar.h"
#include "KviWindowStack.h"
#include "KviInternalCommand.h"
#include "KviIconManager.h"
#include "KviAction.h"
#include "KviActionManager.h"
#include "KviWindowListBase.h"
#include "KviKvsEventManager.h"
#include "KviWindow.h"
#include "KviOptions.h"
#include "KviQString.h"
#include "kvi_out.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QCursor>
#include <QDateTime>
#include <QHeaderView>
#include <QTextStream>
#include <QMouseEvent>
#include <QPainter>
#include <QMenu>
Classes | |
struct | UrlDlgList |
Macros | |
#define | KVI_URL_EXTENSION_NAME "URL module extension" |
Functions | |
int | check_url (KviWindow *w, const QString &szUrl) |
UrlDlgList * | findFrame () |
void | loadBanList () |
void | loadUrlList () |
void | saveBanList () |
void | saveUrlList () |
static bool | url_kvs_cmd_config (KviKvsModuleCommandCall *) |
static bool | url_kvs_cmd_list (KviKvsModuleCommandCall *) |
static bool | url_module_can_unload (KviModule *) |
static bool | url_module_cleanup (KviModule *) |
void | url_module_config () |
void | url_module_help () |
static bool | url_module_init (KviModule *m) |
bool | urllist_module_event_onUrl (KviKvsModuleEventCall *c) |
Variables | |
std::unordered_set< QString * > | g_BanList |
std::unordered_set< KviUrl * > | g_List |
const char * | g_pBanListFilename = "/list.kviban" |
ConfigDialog * | g_pConfigDialog |
const char * | g_pUrlListFilename = "/list.kviurl" |
std::vector< UrlDlgList * > | g_UrlDlgList |
QString | szConfigPath |
#define KVI_URL_EXTENSION_NAME "URL module extension" |
int check_url | ( | KviWindow * | w, |
const QString & | szUrl | ||
) |
References g_BanList, g_List, g_UrlDlgList, i, szUrl, u, and w.
Referenced by urllist_module_event_onUrl().
UrlDlgList * findFrame | ( | ) |
References UrlDlgList::dlg, g_UrlDlgList, and UrlDlgList::menu_id.
Referenced by url_kvs_cmd_list(), and UrlDialog::~UrlDialog().
void loadBanList | ( | ) |
References KviApplication::ConfigPlugins, g_BanList, g_pApp, g_pBanListFilename, KviApplication::getLocalKvircDirectory(), and i.
Referenced by BanFrame::BanFrame(), and url_module_init().
void loadUrlList | ( | ) |
References KviApplication::ConfigPlugins, KviUrl::count, g_List, g_pApp, g_pUrlListFilename, g_UrlDlgList, KviApplication::getLocalKvircDirectory(), i, KviUrl::timestamp, KviUrl::url, and KviUrl::window.
Referenced by UrlDialog::loadList(), and url_module_init().
void saveBanList | ( | ) |
References KviApplication::ConfigPlugins, g_BanList, g_pApp, g_pBanListFilename, and KviApplication::getLocalKvircDirectory().
Referenced by BanFrame::saveBans().
void saveUrlList | ( | ) |
References KviApplication::ConfigPlugins, g_List, g_pApp, g_pUrlListFilename, and KviApplication::getLocalKvircDirectory().
Referenced by UrlDialog::saveList(), and url_module_cleanup().
|
static |
References g_pConfigDialog.
Referenced by url_module_init().
|
static |
References UrlDialog::addUrl(), KviMainWindow::addWindow(), KviWindow::delayedAutoRaise(), UrlDlgList::dlg, findFrame(), g_List, and g_pMainWindow.
Referenced by url_module_init().
|
static |
|
static |
void url_module_config | ( | ) |
References g_pConfigDialog.
void url_module_help | ( | ) |
|
static |
bool urllist_module_event_onUrl | ( | KviKvsModuleEventCall * | c | ) |
References KviKvsVariant::asString(), check_url(), KviUrl::count, d, KviKvsRunTimeCall::firstParam(), g_List, g_UrlDlgList, KviWindow::plainTextCaption(), szUrl, KviUrl::timestamp, KviUrl::url, KviKvsRunTimeCall::window(), and KviUrl::window.
Referenced by url_module_init().
std::unordered_set<QString *> g_BanList |
Referenced by BanFrame::addBan(), BanFrame::BanFrame(), check_url(), loadBanList(), BanFrame::removeBan(), saveBanList(), and url_module_cleanup().
std::unordered_set<KviUrl *> g_List |
const char* g_pBanListFilename = "/list.kviban" |
Referenced by loadBanList(), and saveBanList().
ConfigDialog* g_pConfigDialog |
Referenced by UrlDialog::config(), url_kvs_cmd_config(), url_module_config(), and ConfigDialog::~ConfigDialog().
const char* g_pUrlListFilename = "/list.kviurl" |
Referenced by loadUrlList(), and saveUrlList().
std::vector<UrlDlgList *> g_UrlDlgList |
Referenced by check_url(), UrlDialog::clear(), findFrame(), loadUrlList(), url_module_cleanup(), url_module_init(), and urllist_module_event_onUrl().
QString szConfigPath |