KVIrc
4.9.2
DeveloperAPIs
|
#include <KviApplication.h>
Public Types | |
enum | KvircSubdir { None, Pics, Config, Help, HelpEN, HelpNoIntl, Log, Incoming, Audio, Scripts, Plugins, ConfigPlugins, Trash, MsgColors, Charmaps, Avatars, DefScript, License, Modules, ConfigScripts, Filters, Tmp, Locale, Themes, Classes, SmallIcons, EasyPlugins } |
Public Slots | |
void | addRecentUrl (const QString &text) |
void | restoreDefaultScript () |
void | saveConfiguration () |
void | showParentFrame () |
void | updateGui () |
void | updatePseudoTransparency () |
Public Slots inherited from KviTalApplication | |
virtual void | commitData (QSessionManager &manager) |
Commits the data and save the session. More... | |
Signals | |
void | recentUrlsChanged () |
void | reloadImages () |
void | updateNotifier () |
Public Member Functions | |
KviConsoleWindow * | activeConsole () |
void | addRecentChannel (const QString &chan, const QString &net) |
void | addRecentNickname (const QString &newNick) |
void | addRecentServer (const QString &server) |
void | autoConnectToServers () |
void | checkSuggestRestoreDefaultScript () |
void | completeDirectory (const QString &word, KviPointerList< QString > *matches) |
bool | connectionExists (KviIrcConnection *cnn) |
void | fileDownloadTerminated (bool bSuccess, const QString &szRemoteUrl, const QString &szLocalFileName, const QString &szNick=QString(), const QString &szError=QString(), bool bQuiet=false) |
void | fillRecentChannelsPopup (QMenu *m, KviConsoleWindow *pConsole) |
void | fillRecentNicknamesPopup (QMenu *m, KviConsoleWindow *pConsole) |
void | fillRecentServersPopup (QMenu *m) |
bool | findAudioFile (QString &szRetPath, const QString &szFileName) |
KviConsoleWindow * | findConsole (unsigned int ircContextId) |
KviConsoleWindow * | findConsole (QString &servr, QString &nick) |
bool | findImage (QString &szRetPath, const QString &filename) |
bool | findImageInImageSearchPath (QString &szRetPath, const QString &filename) |
bool | findImageThemeOnlyCompat (QString &szRetPath, const QString &filename) |
KviPendingAvatarChange * | findPendingAvatarChange (KviConsoleWindow *pConsole, const QString &szNick, const QString &szRemoteUrl) |
bool | findSmallIcon (QString &szRetPath, const QString &filename) |
KviWindow * | findWindow (const QString &windowId) |
KviWindow * | findWindowByCaption (const QString &windowCaption, int iContextId=-1) |
bool | firstTimeRun () const |
void | getChannelDumpLogFileName (QString &str) |
void | getGlobalKvircDirectory (QString &szData, KvircSubdir dir, const QString &appendFile=QString()) |
void | getLocalKvircDirectory (QString &szData, KvircSubdir dir, const QString &appendFile=QString(), bool bCreateIfNeeded=true) |
bool | getOptionString (const QString &optName, QString &buffer) |
bool | getReadOnlyConfigPath (QString &buffer, const char *config_name, KvircSubdir sbd=Config, bool bNoFail=false) |
void | getTmpFileName (QString &szBuffer, const QString &szEndingFileName=QString()) |
void | ipcMessage (char *message) |
KviApplication (int &argc, char **argv) | |
bool | kviClosingDown () const |
void | listAvailableOptions (KviWindow *wnd) |
void | loadDefaultScript (QString szItem=QString()) |
void | loadOptions () |
bool | mapImageFile (QString &szRetPath, const QString &filename) |
void | notifierMessage (KviWindow *pWnd, int iIconId, const QString &szMsg, unsigned int uMessageLifetime) |
void | optionResetUpdate (int flags) |
KviPointerHashTable< QString, QStringList > * | recentChannels () const |
QStringList * | recentChannelsForNetwork (const QString &net) |
void | resetAvatarForMatchingUsers (KviRegisteredUser *u) |
void | restartLagMeters () |
void | restartNotifyLists () |
void | saveActions () |
void | saveAliases () |
void | saveAppEvents () |
void | saveAvatarCache () |
void | saveDefaultScripts () |
void | saveIdentities () |
void | saveIdentityProfiles () |
void | saveInputHistory () |
void | saveIrcServerDataBase () |
void | saveMediaTypes () |
void | saveNickServ () |
void | saveOptions () |
void | savePopups () |
void | saveProxyDataBase () |
void | saveRawEvents () |
void | saveRecentEntries () |
void | saveRegisteredChannels () |
void | saveRegisteredUsers () |
void | saveScriptAddons () |
void | saveSharedFiles () |
void | saveTextIcons () |
void | saveToolBars () |
void | setAvatarFromOptions () |
void | setAvatarOnFileReceived (KviConsoleWindow *pConsole, const QString &szRemoteUrl, const QString &szNick, const QString &szUser, const QString &szHost) |
bool | setCommonOptionValue (const QString &optName, const QString &value) |
void | setKviClosingDown () |
bool | setOptionValue (const QString &optName, const QString &value) |
void | setup () |
void | setupBegin () |
void | setupFinish () |
bool | supportsCompositing () |
QStyle * | themedStyle () |
KviConsoleWindow * | topmostConnectedConsole () |
void | triggerUpdateGui () |
unsigned int | windowCount () |
bool | windowExists (KviWindow *wnd) |
~KviApplication () | |
Public Member Functions inherited from KviTalApplication | |
KviTalApplication (int &iArgc, char **ppcArgv) | |
Constructs the application object. More... | |
virtual void | saveConfiguration ()=0 |
Saves configuration to disk. More... | |
~KviTalApplication () | |
Destructs the application object. More... | |
Static Public Member Functions | |
static QTextCodec * | defaultSrvCodec () |
static QTextCodec * | defaultTextCodec () |
static int | getGloballyUniqueId () |
Public Attributes | |
bool | m_bCreateConfig |
QString | m_szConfigFile |
QString | m_szExecAfterStartup |
Protected Member Functions | |
void | buildRecentChannels () |
void | frameDestructorCallback () |
void | heartbeat (kvi_time_t tNow) |
void | registerWindow (KviWindow *wnd) |
void | saveRecentChannels () |
virtual void | timerEvent (QTimerEvent *e) |
void | unregisterWindow (KviWindow *wnd) |
Protected Attributes | |
bool | m_bClosingDown |
bool | m_bFirstTimeRun |
bool | m_bSetupDone |
bool | m_bUpdateGuiPending |
QFont | m_fntDefaultFont |
int | m_iHeartbeatTimerId |
KviWindow * | m_pActiveWindow |
KviIpcSentinel * | m_pIpcSentinel |
KviPointerList < KviPendingAvatarChange > * | m_pPendingAvatarChanges |
KviPointerHashTable< QString, QStringList > * | m_pRecentChannelDict |
QString | m_szGlobalKvircDir |
QString | m_szLocalKvircDir |
Private Member Functions | |
bool | checkFileAssociations () |
bool | checkGlobalKvircDirectory (const QString) |
bool | checkLocalKvircDirectory (const QString &szSpecificPath) |
bool | checkLocalKvircDirectory () |
bool | checkUriAssociations (const char *proto) |
void | createFrame () |
void | createIpcSentinel () |
void | destroyIpcSentinel () |
void | findGlobalKvircDirectory () |
bool | findLocalKvircDirectory () |
void | loadDirectories () |
void | loadRecentEntries () |
void | saveKvircDirectory () |
void | setupFileAssociations () |
void | setupUriAssociations (const char *proto) |
void | updateApplicationFont () |
Friends | |
class | KviMainWindow |
class | KviWindow |
class | SetupWizard |
KviApplication::KviApplication | ( | int & | argc, |
char ** | argv | ||
) |
KviApplication::~KviApplication | ( | ) |
References KviFileTransferManager::cleanup(), destroyIpcSentinel(), KviKvs::done(), KviCustomToolBarManager::done(), KviActionManager::done(), KviUserIdentityManager::done(), KviInputHistory::done(), KviAvatarCache::done(), KviIdentityProfileSet::done(), KviDefaultScriptManager::done(), KviLocale::done(), KviAnimatedPixmapCache::done(), g_pActiveWindow, g_pColorWindow, g_pCtcpPageDialog, g_pGlobalWindowDict, g_pHistoryWindow, g_pIconManager, g_pInputPopup, g_pMainWindow, g_pMediaManager, g_pModuleExtensionManager, g_pModuleManager, g_pNickServRuleSet, g_pProxyDataBase, g_pRecentTopicList, g_pRegisteredChannelDataBase, g_pRegisteredUserDataBase, g_pServerDataBase, g_pServerParser, g_pSharedFilesManager, g_pTextIconManager, g_pTextIconWindow, g_pWinPropertiesConfig, KviThreadManager::globalDestroy(), m_bClosingDown, m_bSetupDone, m_pPendingAvatarChanges, m_pRecentChannelDict, saveActions(), saveAliases(), saveAppEvents(), saveAvatarCache(), saveDefaultScripts(), saveIdentities(), saveIdentityProfiles(), saveInputHistory(), saveIrcServerDataBase(), saveMediaTypes(), saveNickServ(), saveOptions(), savePopups(), saveProxyDataBase(), saveRawEvents(), saveRecentEntries(), saveRegisteredChannels(), saveRegisteredUsers(), saveScriptAddons(), saveSharedFiles(), saveTextIcons(), and saveToolBars().
KviConsoleWindow * KviApplication::activeConsole | ( | ) |
References KviWindow::console(), KviMainWindow::firstConsole(), g_pActiveWindow, and g_pMainWindow.
Referenced by DccBroker::activeVideoExecute(), DccBroker::activeVoiceExecute(), UPnP::RootService::addDeviceServices(), autoConnectToServers(), KviKvsObject::callFunction(), OptionsWidget_servers::connectCurrentClicked(), KviIdentSentinel::event(), DccFileTransfer::event(), CodeTesterWidget::execute(), KviKvsCallbackObject::execute(), DccBroker::executeChat(), KviKvsPopupMenu::itemClicked(), KviKvsCoreSimpleCommands::KVSCSC(), KviMenuBar::newConnectionToServer(), DccBroker::passiveVideoExecute(), DccBroker::recvFileExecute(), DccBroker::rsendExecute(), DccBroker::sendFileExecute(), KviKvsPopupMenu::setupMenuContents(), KviKvsTimerManager::timerEvent(), topmostConnectedConsole(), HttpFileTransfer::transferTerminated(), KviKvsProcessAsyncOperation::trigger(), DccDescriptor::triggerCreationEvent(), and DccDescriptor::~DccDescriptor().
void KviApplication::addRecentChannel | ( | const QString & | chan, |
const QString & | net | ||
) |
References buildRecentChannels(), KviPointerHashTable< Key, T >::find(), KviPointerHashTable< Key, T >::insert(), and m_pRecentChannelDict.
Referenced by KviIrcConnection::registerChannel().
void KviApplication::addRecentNickname | ( | const QString & | newNick | ) |
References KVI_MAX_RECENT_NICKNAMES, KviOption_stringlistRecentNicknames, and merge_to_stringlist_option().
Referenced by KviIrcConnection::loginComplete(), and KviIrcConnection::nickChange().
void KviApplication::addRecentServer | ( | const QString & | server | ) |
References KVI_MAX_RECENT_SERVERS, KviOption_stringlistRecentServers, and merge_to_stringlist_option().
Referenced by KviIrcContext::connectionEstablished().
|
slot |
References KviOption_stringlistRecentIrcUrls, merge_to_stringlist_option(), and recentUrlsChanged().
Referenced by KviIrcUrl::run().
void KviApplication::autoConnectToServers | ( | ) |
References activeConsole(), KviIrcServerDataBase::autoConnectOnStartupNetworks(), KviIrcServerDataBase::autoConnectOnStartupServers(), KviIrcServerDataBase::clearAutoConnectOnStartupNetworks(), KviIrcServerDataBase::clearAutoConnectOnStartupServers(), KviPointerList< T >::first(), g_pServerDataBase, KviPointerList< T >::next(), and KviKvsScript::run().
Referenced by createFrame().
|
protected |
References KviPointerHashTable< Key, T >::find(), KviPointerHashTable< Key, T >::insert(), KVI_OPTION_STRINGLIST, KVI_RECENT_CHANNELS_SEPARATOR, KviOption_stringlistRecentChannels, m_pRecentChannelDict, and KviPointerHashTable< Key, T >::setAutoDelete().
Referenced by addRecentChannel(), optionResetUpdate(), recentChannelsForNetwork(), and setOptionValue().
|
private |
References __tr2qs, KviMemory::free(), kvi_strEqualCI(), and kvi_strEqualCIN().
Referenced by loadDirectories().
|
private |
References KviFileUtils::directoryExists(), KviFileUtils::isReadable(), KVI_ACTIVITYMETER_IMAGE_NAME, and KVI_PATH_SEPARATOR.
Referenced by findGlobalKvircDirectory().
|
private |
References checkLocalKvircDirectory(), and m_szLocalKvircDir.
Referenced by SetupWizard::chooseOldDataPath().
|
private |
References Config, KviFileUtils::directoryExists(), getLocalKvircDirectory(), and m_szLocalKvircDir.
Referenced by checkLocalKvircDirectory(), and findLocalKvircDirectory().
void KviApplication::checkSuggestRestoreDefaultScript | ( | ) |
References __tr2qs, KviKvsPopupManager::instance(), KviCustomToolBarManager::instance(), KviKvsEventManager::instance(), KviDefaultScriptManager::instance(), KVI_OPTION_BOOL, KviEvent_OnChannelNickPopupRequest, KviEvent_OnChannelPopupRequest, KviEvent_OnConsolePopupRequest, KviEvent_OnDCCChatPopupRequest, KviEvent_OnQueryNickPopupRequest, KviEvent_OnQueryPopupRequest, KviOption_boolDoNotSuggestRestoreDefaultScript, and restoreDefaultScript().
Referenced by KviUserListView::emitDoubleClick(), KviUserListView::emitRightClick(), and setup().
|
private |
Referenced by loadDirectories().
void KviApplication::completeDirectory | ( | const QString & | word, |
KviPointerList< QString > * | matches | ||
) |
References KviFileUtils::adjustFilePath(), KviPointerList< T >::append(), KviQString::cutFromLast(), KviQString::cutToLast(), d, KviQString::ensureLastCharIs(), KviQString::equalCIN(), KviQString::equalCS(), KviQString::equalCSN(), KVI_PATH_SEPARATOR_CHAR, and t().
Referenced by KviInputEditor::completion().
bool KviApplication::connectionExists | ( | KviIrcConnection * | cnn | ) |
References KviWindow::connection(), KviPointerHashTableIterator< Key, T >::current(), and g_pGlobalWindowDict.
Referenced by KviAsyncAvatarSelectionDialog::okClicked().
|
private |
References KviIrcServerDataBase::autoConnectOnStartupNetworks(), KviIrcServerDataBase::autoConnectOnStartupServers(), autoConnectToServers(), KviMainWindow::createNewConsole(), KviMainWindow::executeInternalCommand(), KviMainWindow::firstConsole(), g_pMainWindow, g_pServerDataBase, KVI_INTERNALCOMMAND_TRAYICON_SHOW, KVI_OPTION_BOOL, KviMainWindow, KviOption_boolShowDockExtension, KviOption_boolShowTaskBarButton, KviOption_boolStartupMinimized, m_szExecAfterStartup, and KviKvsScript::run().
Referenced by setup().
|
private |
References m_pIpcSentinel.
Referenced by setup().
|
static |
References KviLocale::codecForName(), KviLocale::instance(), KVI_OPTION_STRING, and KviOption_stringDefaultSrvEncoding.
Referenced by KviIrcConnection::setupSrvCodec().
|
static |
References KviLocale::codecForName(), KviLocale::instance(), KVI_OPTION_STRING, and KviOption_stringDefaultTextEncoding.
Referenced by KviWindow::defaultTextCodec(), and KviIrcConnection::setupTextCodec().
|
private |
References m_pIpcSentinel.
Referenced by ~KviApplication().
void KviApplication::fileDownloadTerminated | ( | bool | bSuccess, |
const QString & | szRemoteUrl, | ||
const QString & | szLocalFileName, | ||
const QString & | szNick = QString() , |
||
const QString & | szError = QString() , |
||
bool | bQuiet = false |
||
) |
References __tr2qs, _OUTPUT_MUTE, KviIconManager::DccError, KviIconManager::DccMsg, KviQString::equalCIN(), findPendingAvatarChange(), g_pActiveWindow, KviWindow::hasAttention(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KVI_OUT_AVATAR, KviOption_boolNotifyDccSendSuccessInNotifier, KviOption_uintNotifierAutoHideTime, m_pPendingAvatarChanges, KviWindow::MainWindowIsVisible, notifierMessage(), KviWindow::output(), _KviPendingAvatarChange::pConsole, KviConsoleWindow::setAvatar(), _KviPendingAvatarChange::szHost, _KviPendingAvatarChange::szNick, _KviPendingAvatarChange::szUser, KviQString::toHtmlEscaped(), and windowExists().
Referenced by DccFileTransfer::abort(), DccFileTransfer::event(), and HttpFileTransfer::transferTerminated().
void KviApplication::fillRecentChannelsPopup | ( | QMenu * | m, |
KviConsoleWindow * | pConsole | ||
) |
References KviIconManager::Channel, KviWindow::connection(), KviConsoleWindow::currentNetworkName(), KviIrcConnection::findChannel(), g_pIconManager, KviIconManager::getSmallIcon(), KviConsoleWindow::isConnected(), and recentChannelsForNetwork().
Referenced by KviJoinChannelAction::popupAboutToShow().
void KviApplication::fillRecentNicknamesPopup | ( | QMenu * | m, |
KviConsoleWindow * | pConsole | ||
) |
References KviWindow::connection(), KviIrcConnection::currentNickName(), KviQString::equalCS(), g_pIconManager, KviIconManager::getSmallIcon(), KviConsoleWindow::isConnected(), KVI_OPTION_STRINGLIST, KviOption_stringlistRecentNicknames, and KviIconManager::Nick.
Referenced by KviChangeNickAction::popupAboutToShow().
void KviApplication::fillRecentServersPopup | ( | QMenu * | m | ) |
References g_pIconManager, KviIconManager::getSmallIcon(), KVI_OPTION_STRINGLIST, KviOption_stringlistRecentServers, and KviIconManager::Server.
Referenced by KviConnectToServerAction::popupAboutToShow(), OptionsWidget_servers::recentServersPopupAboutToShow(), and KviMenuBar::updateRecentServersPopup().
bool KviApplication::findAudioFile | ( | QString & | szRetPath, |
const QString & | szFileName | ||
) |
Attempts to locate the audio file specified by szFileName and put it's absolute path in szRetPath. Returns true if the audio file is found and false otherwise.
If szFileName is already an absolute path then it's returned directly after testing for its existence. If szFileName is not an absolute path then it's searched in the local KVIrc "audio" directory, then in the global one and finally in the user's home.
References Audio, KviQString::ensureLastCharIs(), KviFileUtils::fileExists(), getGlobalKvircDirectory(), getLocalKvircDirectory(), KviFileUtils::isAbsolutePath(), and KVI_PATH_SEPARATOR_CHAR.
Referenced by OptionsWidget_soundGeneral::soundTest().
KviConsoleWindow * KviApplication::findConsole | ( | unsigned int | ircContextId | ) |
KviConsoleWindow * KviApplication::findConsole | ( | QString & | servr, |
QString & | nick | ||
) |
|
private |
defined(COMPILE_KDE_SUPPORT) && !defined(COMPILE_ON_MAC)
COMPILE_ON_MAC
References KviFileUtils::adjustFilePath(), checkGlobalKvircDirectory(), m_szGlobalKvircDir, and KviMessageBox::warning().
Referenced by loadDirectories().
bool KviApplication::findImage | ( | QString & | szRetPath, |
const QString & | filename | ||
) |
References KviQString::ensureLastCharIs(), KviFileUtils::fileExists(), findImageInImageSearchPath(), getGlobalKvircDirectory(), getLocalKvircDirectory(), i, KviFileUtils::isAbsolutePath(), KVI_OPTION_STRING, KVI_PATH_SEPARATOR_CHAR, KviOption_stringIconThemeSubdir, pics_globalsubdirs, pics_localsubdirs, and Themes.
Referenced by AboutDialog::AboutDialog(), KviTheme::apply(), KviIconManager::getPixmapWithCache(), KviIconManager::getPixmapWithCacheScaleOnLoad(), KviIconManager::KviIconManager(), KviTextIcon::KviTextIcon(), mircimport_module_init(), KviTextIcon::setFilename(), setOptionValue(), TipFrame::TipFrame(), and trayicon_module_init().
bool KviApplication::findImageInImageSearchPath | ( | QString & | szRetPath, |
const QString & | filename | ||
) |
References KviQString::ensureLastCharIs(), KviFileUtils::fileExists(), KVI_OPTION_STRINGLIST, KVI_PATH_SEPARATOR_CHAR, and KviOption_stringlistImageSearchPaths.
Referenced by findImage(), findImageThemeOnlyCompat(), and findSmallIcon().
bool KviApplication::findImageThemeOnlyCompat | ( | QString & | szRetPath, |
const QString & | filename | ||
) |
|
private |
References checkLocalKvircDirectory(), g_pApp, KVI_HOME_CONFIG_FILE_NAME, KVI_PATH_SEPARATOR, KVI_PATH_SEPARATOR_CHAR, KVI_SOURCES_DATE_NUMERIC_FORCE_SETUP, m_szConfigFile, m_szLocalKvircDir, KviConfigurationFile::Read, KviConfigurationFile::readEntry(), KviConfigurationFile::readUIntEntry(), and KviConfigurationFile::setGroup().
Referenced by loadDirectories().
KviPendingAvatarChange * KviApplication::findPendingAvatarChange | ( | KviConsoleWindow * | pConsole, |
const QString & | szNick, | ||
const QString & | szRemoteUrl | ||
) |
References m_pPendingAvatarChanges, _KviPendingAvatarChange::pConsole, _KviPendingAvatarChange::szNick, and _KviPendingAvatarChange::szRemoteUrl.
Referenced by dcc_kvs_cmd_recv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), fileDownloadTerminated(), and KviIrcServerParser::parseCtcpRequestDcc().
bool KviApplication::findSmallIcon | ( | QString & | szRetPath, |
const QString & | filename | ||
) |
References KviQString::ensureLastCharIs(), KviFileUtils::fileExists(), findImageInImageSearchPath(), getGlobalKvircDirectory(), getLocalKvircDirectory(), KVI_OPTION_STRING, KVI_PATH_SEPARATOR_CHAR, KVI_SMALLICONS_SUBDIRECTORY, KviOption_stringIconThemeSubdir, Pics, SmallIcons, and Themes.
Referenced by KviIconManager::loadSmallIcon().
KviWindow * KviApplication::findWindow | ( | const QString & | windowId | ) |
References g_pGlobalWindowDict.
Referenced by chan_kvs_find_channel(), dcc_kvs_fnc_session(), KviKvsTreeNodeRebindingSwitch::execute(), KvsObject_wrapper::init(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), log_kvs_cmd_flush(), log_kvs_cmd_start(), log_kvs_cmd_stop(), log_kvs_fnc_file(), notifier_kvs_cmd_message(), spaste_kvs_find_window(), tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_removechannel(), tmphighlight_kvs_fnc_ischannelhighlighted(), window_kvs_cmd_highlight(), window_kvs_cmd_insertInInputText(), window_kvs_cmd_setBackground(), window_kvs_cmd_setCryptEngine(), window_kvs_cmd_setInputText(), and window_kvs_cmd_setWindowTitle().
KviWindow * KviApplication::findWindowByCaption | ( | const QString & | windowCaption, |
int | iContextId = -1 |
||
) |
|
inline |
Referenced by KviDefaultScriptManager::KviDefaultScriptManager(), and setup().
|
protected |
References KviKvsObjectController::clearInstances(), KviKvsKernel::instance(), and KviKvsKernel::objectController().
Referenced by KviMainWindow::~KviMainWindow().
void KviApplication::getChannelDumpLogFileName | ( | QString & | str | ) |
References KviFileUtils::adjustFilePath(), KviFileUtils::fileExists(), getLocalKvircDirectory(), and Log.
void KviApplication::getGlobalKvircDirectory | ( | QString & | szData, |
KvircSubdir | dir, | ||
const QString & | appendFile = QString() |
||
) |
References KviFileUtils::adjustFilePath(), KviQString::appendFormatted(), Audio, Avatars, Charmaps, Classes, Config, ConfigPlugins, ConfigScripts, DefScript, KviFileUtils::directoryExists(), EasyPlugins, KviQString::ensureLastCharIs(), Filters, Help, HelpEN, HelpNoIntl, Incoming, KviLocale::instance(), KVI_PATH_SEPARATOR, KVI_PATH_SEPARATOR_CHAR, KVI_SMALLICONS_SUBDIRECTORY, License, Locale, Log, m_szGlobalKvircDir, Modules, MsgColors, None, Pics, Plugins, Scripts, SmallIcons, Themes, Tmp, and Trash.
Referenced by AboutDialog::AboutDialog(), ScriptEditorWidget::asyncCompleterCreation(), KviModuleManager::completeModuleNames(), LogViewWindow::createLog(), file_kvs_fnc_globaldir(), findAudioFile(), findImage(), findImageThemeOnlyCompat(), PluginManager::findPlugin(), findSmallIcon(), getReadOnlyConfigPath(), help_kvs_cmd_open(), help_module_init(), KviIconManager::initQResourceBackend(), KviTheme::installedThemeDirectories(), KviDefaultScriptManager::isDefscriptUpToDate(), KviDefaultScriptManager::KviDefaultScriptManager(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), OptionsWidget_messageColors::load(), KviTextIconManager::load(), loadDefaultScript(), KviModuleManager::loadModule(), KviModuleManager::loadModulesByCaps(), KviKvsObjectController::lookupClass(), mapImageFile(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), KviDefaultScriptManager::restore(), KviDefaultScriptManager::restoreInternal(), KviTheme::save(), KviThemeInfo::setDirectoryAndLocation(), setup(), setupBegin(), SetupWizard::SetupWizard(), and HelpWidget::showIndex().
|
static |
void KviApplication::getLocalKvircDirectory | ( | QString & | szData, |
KvircSubdir | dir, | ||
const QString & | appendFile = QString() , |
||
bool | bCreateIfNeeded = true |
||
) |
References KviFileUtils::adjustFilePath(), Audio, Avatars, Charmaps, Classes, Config, ConfigPlugins, ConfigScripts, DefScript, KviFileUtils::directoryExists(), EasyPlugins, KviQString::ensureLastCharIs(), Filters, Help, HelpEN, HelpNoIntl, Incoming, KviLocale::instance(), KVI_DEFAULT_INCOMING_SUBDIRECTORY_NAME, KVI_OPTION_STRING, KVI_PATH_SEPARATOR, KVI_PATH_SEPARATOR_CHAR, KVI_SMALLICONS_SUBDIRECTORY, KviOption_stringIncomingPath, KviOption_stringLogsPath, License, Locale, KviLocale::localeName(), Log, m_szLocalKvircDir, KviFileUtils::makeDir(), Modules, MsgColors, None, Pics, Plugins, KviCString::ptr(), Scripts, SmallIcons, Themes, Tmp, and Trash.
Referenced by addon_kvs_cmd_installfiles(), ScriptEditorWidget::asyncCompleterCreation(), avatar_kvs_cmd_set(), ClassEditorWidget::build(), LogViewWindow::cacheFileList(), checkLocalKvircDirectory(), OptionsWidget_textIcons::chooseFromFile(), DccBroker::chooseSaveFileName(), TipWindow::closeConfig(), OptionsWidget_textEncoding::commit(), KviModuleManager::completeModuleNames(), config_kvs_fnc_id(), config_kvs_fnc_open(), LogViewWindow::createLog(), KviKvsObjectController::deleteClass(), file_kvs_fnc_localdir(), KviIrcViewToolWidget::filterLoad(), KviIrcViewToolWidget::filterSave(), findAudioFile(), findImage(), findImageThemeOnlyCompat(), PluginManager::findPlugin(), findSmallIcon(), KviKvsObjectController::flushUserClasses(), KviIconManager::getAvatar(), getChannelDumpLogFileName(), KviModule::getDefaultConfigFileName(), KviWindow::getDefaultLogFileName(), getReadOnlyConfigPath(), getTmpFileName(), help_kvs_cmd_open(), help_module_init(), http_kvs_complete_get(), RegisteredUsersDialog::importClicked(), HelpWindow::initialSetup(), KviIconManager::initQResourceBackend(), AddonFunctions::installAddonPackage(), KviTheme::installedThemeDirectories(), ThemeFunctions::installThemePackage(), KviDefaultScriptManager::KviDefaultScriptManager(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), OptionsWidget_messageColors::load(), loadBanList(), ScriptEditorWidget::loadCompleterFromFile(), KviModuleManager::loadModule(), KviModuleManager::loadModulesByCaps(), ClassEditorWidget::loadNotBuiltClasses(), loadRecentEntries(), loadUrlList(), KviKvsObjectController::lookupClass(), mapImageFile(), objects_kvs_fnc_classes(), ClassEditorWidget::oneTimeSetup(), OptionsWidget_textEncoding::OptionsWidget_textEncoding(), package_kvs_fnc_info(), KviIrcServerParser::parseCtcpReplyAvatar(), KviQueryWindow::pasteLastLog(), KviChannelWindow::pasteLastLog(), ClassEditorWidget::removeItem(), ClassEditorWidget::renameFunction(), KviMainWindow::restoreToolBarPositions(), OptionsWidget_messageColors::save(), KviTextIconManager::save(), KviStatusBar::save(), saveActions(), saveAliases(), saveAppEvents(), saveAvatarCache(), saveBanList(), saveDefaultScripts(), saveIdentities(), saveIdentityProfiles(), saveInputHistory(), saveIrcServerDataBase(), saveMediaTypes(), saveNickServ(), ClassEditorWidget::saveNotBuiltClasses(), saveOptions(), savePopups(), saveProxyDataBase(), saveRawEvents(), saveRecentEntries(), saveRegisteredChannels(), saveRegisteredUsers(), saveScriptAddons(), saveSharedFiles(), KviMainWindow::saveToolBarPositions(), saveToolBars(), saveUrlList(), ScriptEditorWidget::ScriptEditorWidget(), KviThemeInfo::setDirectoryAndLocation(), setup(), AvatarDownloadDialog::startDownload(), KviKvsScriptAddonManager::unregisterAddon(), and url_module_init().
bool KviApplication::getOptionString | ( | const QString & | optName, |
QString & | buffer | ||
) |
References g_boolOptionsTable, g_colorOptionsTable, g_fontOptionsTable, g_iccolorOptionsTable, g_mirccolorOptionsTable, g_msgtypeOptionsTable, g_pixmapOptionsTable, g_rectOptionsTable, g_stringlistOptionsTable, g_stringOptionsTable, g_uintOptionsTable, GET_OPTION_STRING, KVI_BOOL_OPTIONS_PREFIX, KVI_BOOL_OPTIONS_PREFIX_LEN, KVI_COLOR_OPTIONS_PREFIX, KVI_COLOR_OPTIONS_PREFIX_LEN, KVI_FONT_OPTIONS_PREFIX, KVI_FONT_OPTIONS_PREFIX_LEN, KVI_ICCOLOR_OPTIONS_PREFIX, KVI_ICCOLOR_OPTIONS_PREFIX_LEN, KVI_MIRCCOLOR_OPTIONS_PREFIX, KVI_MIRCCOLOR_OPTIONS_PREFIX_LEN, KVI_MSGTYPE_OPTIONS_PREFIX, KVI_MSGTYPE_OPTIONS_PREFIX_LEN, KVI_NUM_BOOL_OPTIONS, KVI_NUM_COLOR_OPTIONS, KVI_NUM_FONT_OPTIONS, KVI_NUM_ICCOLOR_OPTIONS, KVI_NUM_MIRCCOLOR_OPTIONS, KVI_NUM_MSGTYPE_OPTIONS, KVI_NUM_PIXMAP_OPTIONS, KVI_NUM_RECT_OPTIONS, KVI_NUM_STRING_OPTIONS, KVI_NUM_STRINGLIST_OPTIONS, KVI_NUM_UINT_OPTIONS, KVI_PIXMAP_OPTIONS_PREFIX, KVI_PIXMAP_OPTIONS_PREFIX_LEN, KVI_STRING_OPTIONS_PREFIX, KVI_STRING_OPTIONS_PREFIX_LEN, KVI_STRINGLIST_OPTIONS_PREFIX, KVI_STRINGLIST_OPTIONS_PREFIX_LEN, KVI_UINT_OPTIONS_PREFIX, and KVI_UINT_OPTIONS_PREFIX_LEN.
Referenced by KviKvsCoreFunctions::KVSCF().
bool KviApplication::getReadOnlyConfigPath | ( | QString & | buffer, |
const char * | config_name, | ||
KvircSubdir | sbd = Config , |
||
bool | bNoFail = false |
||
) |
References KviFileUtils::fileExists(), getGlobalKvircDirectory(), and getLocalKvircDirectory().
Referenced by KviTextIconManager::load(), KviStatusBar::load(), loadOptions(), TipWindow::openConfig(), and setup().
void KviApplication::getTmpFileName | ( | QString & | szBuffer, |
const QString & | szEndingFileName = QString() |
||
) |
|
protected |
void KviApplication::ipcMessage | ( | char * | message | ) |
|
inline |
void KviApplication::listAvailableOptions | ( | KviWindow * | wnd | ) |
References __tr, g_boolOptionsTable, g_colorOptionsTable, g_fontOptionsTable, g_iccolorOptionsTable, g_mirccolorOptionsTable, g_msgtypeOptionsTable, g_pixmapOptionsTable, g_rectOptionsTable, g_stringlistOptionsTable, g_stringOptionsTable, g_uintOptionsTable, i, KVI_NUM_BOOL_OPTIONS, KVI_NUM_COLOR_OPTIONS, KVI_NUM_FONT_OPTIONS, KVI_NUM_ICCOLOR_OPTIONS, KVI_NUM_MIRCCOLOR_OPTIONS, KVI_NUM_MSGTYPE_OPTIONS, KVI_NUM_PIXMAP_OPTIONS, KVI_NUM_RECT_OPTIONS, KVI_NUM_STRING_OPTIONS, KVI_NUM_STRINGLIST_OPTIONS, KVI_NUM_UINT_OPTIONS, and LIST_OPTIONS.
Referenced by KviKvsCoreSimpleCommands::KVSCSC().
void KviApplication::loadDefaultScript | ( | QString | szItem = QString() | ) |
References DefScript, KviMainWindow::firstConsole(), g_pMainWindow, getGlobalKvircDirectory(), and KviKvsScript::run().
Referenced by KviDefaultScriptManager::restoreInternal(), and setup_finish().
|
private |
void KviApplication::loadOptions | ( | ) |
References KviStringConversion::decodePath(), g_boolOptionsTable, g_colorOptionsTable, g_fontOptionsTable, g_iccolorOptionsTable, g_mirccolorOptionsTable, g_msgtypeOptionsTable, g_pixmapOptionsTable, g_rectOptionsTable, g_stringlistOptionsTable, g_stringOptionsTable, g_uintOptionsTable, getReadOnlyConfigPath(), i, KVI_CONFIGFILE_MAIN, KVI_NUM_BOOL_OPTIONS, KVI_NUM_COLOR_OPTIONS, KVI_NUM_FONT_OPTIONS, KVI_NUM_ICCOLOR_OPTIONS, KVI_NUM_MIRCCOLOR_OPTIONS, KVI_NUM_MSGTYPE_OPTIONS, KVI_NUM_PIXMAP_OPTIONS, KVI_NUM_RECT_OPTIONS, KVI_NUM_STRING_OPTIONS, KVI_NUM_STRINGLIST_OPTIONS, KVI_NUM_UINT_OPTIONS, KviConfigurationFile::Read, and READ_OPTIONS.
Referenced by setup().
|
private |
References Config, g_pRecentTopicList, getLocalKvircDirectory(), KVI_CONFIGFILE_RECENT, KviConfigurationFile::Read, and KviConfigurationFile::readStringListEntry().
Referenced by setup().
bool KviApplication::mapImageFile | ( | QString & | szRetPath, |
const QString & | filename | ||
) |
References KviQString::cutToFirst(), KviQString::ensureLastCharIs(), KviFileUtils::fileExists(), getGlobalKvircDirectory(), getLocalKvircDirectory(), i, KviFileUtils::isAbsolutePath(), KVI_PATH_SEPARATOR, KVI_PATH_SEPARATOR_CHAR, pics_globalsubdirs, pics_localsubdirs, and szBuffer.
Referenced by KviImageDialog::itemDoubleClicked().
void KviApplication::notifierMessage | ( | KviWindow * | pWnd, |
int | iIconId, | ||
const QString & | szMsg, | ||
unsigned int | uMessageLifetime | ||
) |
References __tr2qs, KviIrcUserEntry::avatar(), KviIconManager::Bomb, KviWindow::Channel, KviIconManager::Channel, connect(), KviWindow::Console, KviModule::ctrl(), KviIconManager::Dcc, KviWindow::DccChat, KviIconManager::DccMsg, KviWindow::DccTransfer, KviWindow::Debug, KviUserListView::findEntry(), g_pIconManager, g_pMainWindow, g_pModuleManager, KviModuleManager::getModule(), KviIconManager::getSmallIcon(), KviIconManager::getSmallIconName(), KviUserListEntry::globalData(), KVI_DYNAMIC, KVI_OPTION_BOOL, KviOption_boolUseDBusNotifier, KviOption_boolUseKDENotifier, KviIconManager::KVIrc, KviIconManager::Links, m, KviFileUtils::makeDir(), KviIconManager::None, KviAvatar::pixmap(), _KviNotifierMessageParam::pWindow, KviWindow::Query, KviIconManager::Query, s, showParentFrame(), KviWindow::SocketSpy, KviIconManager::Spy, KviControlCodes::stripControlBytes(), _KviNotifierMessageParam::szIcon, _KviNotifierMessageParam::szMessage, KviWindow::target(), KviWindow::type(), _KviNotifierMessageParam::uMessageLifetime, KviWindow::Unknown, KviQueryWindow::userListView(), KviWindow::UserWindow, KviIconManager::UserWindow, and KviFileUtils::writeFile().
Referenced by DccChatWindow::event(), DccVideoWindow::event(), fileDownloadTerminated(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().
void KviApplication::optionResetUpdate | ( | int | flags | ) |
References buildRecentChannels(), KviMainWindow::executeInternalCommand(), g_iIdentDaemonRunningUsers, g_pApp, g_pIconManager, g_pMainWindow, KVI_INTERNALCOMMAND_IDENT_START, KVI_INTERNALCOMMAND_IDENT_STOP, KVI_OPTION_BOOL, KviOption_boolUseIdentService, KviOption_boolUseIdentServiceOnlyOnConnect, KviMainWindow::recreateWindowList(), reloadImages(), KviIconManager::reloadImages(), restartLagMeters(), restartNotifyLists(), triggerUpdateGui(), updateApplicationFont(), and updateNotifier().
Referenced by KviTheme::apply(), KviOptionsWidget::commitOptionsReset(), KviMainWindow::iconSizePopupSelected(), RegisteredUserEntryDialog::okClicked(), and setOptionValue().
|
inline |
Referenced by ChannelsJoinDialog::deleteClicked(), and ChannelsJoinDialog::fillListView().
QStringList * KviApplication::recentChannelsForNetwork | ( | const QString & | net | ) |
References buildRecentChannels(), KviPointerHashTable< Key, T >::find(), and m_pRecentChannelDict.
Referenced by KviConsoleWindow::completeChannel(), ChannelsJoinDialog::fillListView(), and fillRecentChannelsPopup().
|
signal |
Referenced by addRecentUrl().
|
protected |
References g_pGlobalWindowDict, and KviWindow::id().
Referenced by KviWindow::KviWindow().
|
signal |
Referenced by optionResetUpdate().
void KviApplication::resetAvatarForMatchingUsers | ( | KviRegisteredUser * | u | ) |
void KviApplication::restartLagMeters | ( | ) |
void KviApplication::restartNotifyLists | ( | ) |
References KviWindow::connection(), KviWindow::Console, KviPointerHashTableIterator< Key, T >::current(), g_pGlobalWindowDict, KviIrcConnection::restartNotifyList(), and KviWindow::type().
Referenced by RegistrationWizard::accept(), RegisteredUsersDialog::okClicked(), optionResetUpdate(), reguser_kvs_cmd_remove(), and reguser_kvs_cmd_setproperty().
|
slot |
References KviDefaultScriptManager::instance(), and KviDefaultScriptManager::restore().
Referenced by checkSuggestRestoreDefaultScript().
void KviApplication::saveActions | ( | ) |
References Config, getLocalKvircDirectory(), KviActionManager::instance(), KVI_CONFIGFILE_USERACTIONS, and KviActionManager::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveAliases | ( | ) |
References Config, getLocalKvircDirectory(), KVI_CONFIGFILE_ALIASES, and KviKvs::saveAliases().
Referenced by AliasEditorWidget::commit(), saveConfiguration(), and ~KviApplication().
void KviApplication::saveAppEvents | ( | ) |
References Config, getLocalKvircDirectory(), KVI_CONFIGFILE_EVENTS, and KviKvs::saveAppEvents().
Referenced by EventEditor::commit(), saveConfiguration(), and ~KviApplication().
void KviApplication::saveAvatarCache | ( | ) |
References Config, getLocalKvircDirectory(), KviAvatarCache::instance(), KVI_CONFIGFILE_AVATARCACHE, and KviAvatarCache::save().
Referenced by saveConfiguration(), and ~KviApplication().
|
slot |
References KviKvs::flushUserClasses(), KviCustomToolBarManager::instance(), saveActions(), saveAliases(), saveAppEvents(), saveAvatarCache(), saveDefaultScripts(), saveIdentities(), saveIdentityProfiles(), saveInputHistory(), saveIrcServerDataBase(), saveMediaTypes(), saveNickServ(), saveOptions(), savePopups(), saveProxyDataBase(), saveRawEvents(), saveRecentEntries(), saveRegisteredChannels(), saveRegisteredUsers(), saveScriptAddons(), saveSharedFiles(), saveTextIcons(), saveToolBars(), KviCustomToolBarManager::storeVisibilityState(), and KviConfigurationFile::sync().
Referenced by OptionsDialog::apply(), and options_kvs_cmd_save().
void KviApplication::saveDefaultScripts | ( | ) |
References Config, getLocalKvircDirectory(), KviDefaultScriptManager::instance(), KVI_CONFIGFILE_DEFAULTSCRIPT, and KviDefaultScriptManager::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveIdentities | ( | ) |
References Config, getLocalKvircDirectory(), KviUserIdentityManager::instance(), KVI_CONFIGFILE_IDENTITIES, and KviUserIdentityManager::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveIdentityProfiles | ( | ) |
References Config, getLocalKvircDirectory(), KviIdentityProfileSet::instance(), KVI_CONFIGFILE_PROFILESDATABASE, and KviIdentityProfileSet::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveInputHistory | ( | ) |
References Config, getLocalKvircDirectory(), KviInputHistory::instance(), KVI_CONFIGFILE_INPUTHISTORY, KVI_OPTION_BOOL, KviOption_boolEnableInputHistory, and KviInputHistory::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveIrcServerDataBase | ( | ) |
References Config, g_pServerDataBase, getLocalKvircDirectory(), KVI_CONFIGFILE_SERVERDB, and KviIrcServerDataBase::save().
Referenced by OptionsWidget_servers::commit(), saveConfiguration(), setup_finish(), and ~KviApplication().
|
private |
void KviApplication::saveMediaTypes | ( | ) |
References Config, g_pMediaManager, getLocalKvircDirectory(), KVI_CONFIGFILE_MEDIATYPES, KviMutex::lock(), KviMediaManager::save(), and KviMutex::unlock().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveNickServ | ( | ) |
References Config, g_pNickServRuleSet, getLocalKvircDirectory(), KVI_CONFIGFILE_NICKSERVDATABASE, and KviNickServRuleSet::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveOptions | ( | ) |
References __tr2qs, Config, KviStringConversion::decodePath(), KviStringConversion::encodePath(), KviConfigurationFile::ensureWritable(), g_boolOptionsTable, g_colorOptionsTable, g_fontOptionsTable, g_iccolorOptionsTable, g_mirccolorOptionsTable, g_msgtypeOptionsTable, g_pixmapOptionsTable, g_rectOptionsTable, g_stringlistOptionsTable, g_stringOptionsTable, g_uintOptionsTable, getLocalKvircDirectory(), i, KVI_CONFIGFILE_MAIN, KVI_NUM_BOOL_OPTIONS, KVI_NUM_COLOR_OPTIONS, KVI_NUM_FONT_OPTIONS, KVI_NUM_ICCOLOR_OPTIONS, KVI_NUM_MIRCCOLOR_OPTIONS, KVI_NUM_MSGTYPE_OPTIONS, KVI_NUM_PIXMAP_OPTIONS, KVI_NUM_RECT_OPTIONS, KVI_NUM_STRING_OPTIONS, KVI_NUM_STRINGLIST_OPTIONS, KVI_NUM_UINT_OPTIONS, saveRecentChannels(), KviMessageBox::warning(), KviConfigurationFile::Write, and WRITE_OPTIONS.
Referenced by OptionsWidgetContainer::okClicked(), saveConfiguration(), and ~KviApplication().
void KviApplication::savePopups | ( | ) |
References Config, getLocalKvircDirectory(), KVI_CONFIGFILE_POPUPS, and KviKvs::savePopups().
Referenced by PopupEditorWidget::commit(), saveConfiguration(), and ~KviApplication().
void KviApplication::saveProxyDataBase | ( | ) |
References Config, g_pProxyDataBase, getLocalKvircDirectory(), KVI_CONFIGFILE_PROXYDB, and KviProxyDataBase::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveRawEvents | ( | ) |
References Config, getLocalKvircDirectory(), KVI_CONFIGFILE_RAWEVENTS, and KviKvs::saveRawEvents().
Referenced by RawEditorWidget::commit(), saveConfiguration(), and ~KviApplication().
|
protected |
void KviApplication::saveRecentEntries | ( | ) |
References Config, g_pRecentTopicList, getLocalKvircDirectory(), KVI_CONFIGFILE_RECENT, KviConfigurationFile::Write, and KviConfigurationFile::writeEntry().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveRegisteredChannels | ( | ) |
References Config, g_pRegisteredChannelDataBase, getLocalKvircDirectory(), KVI_CONFIGFILE_REGCHANDB, and KviRegisteredChannelDataBase::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveRegisteredUsers | ( | ) |
References Config, g_pRegisteredUserDataBase, getLocalKvircDirectory(), KVI_CONFIGFILE_REGUSERDB, and KviRegisteredUserDataBase::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveScriptAddons | ( | ) |
References Config, getLocalKvircDirectory(), KVI_CONFIGFILE_SCRIPTADDONS, and KviKvs::saveScriptAddons().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveSharedFiles | ( | ) |
References Config, g_pSharedFilesManager, getLocalKvircDirectory(), KVI_CONFIGFILE_SHAREDFILES, and KviSharedFilesManager::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveTextIcons | ( | ) |
References g_pTextIconManager, and KviTextIconManager::save().
Referenced by saveConfiguration(), and ~KviApplication().
void KviApplication::saveToolBars | ( | ) |
void KviApplication::setAvatarFromOptions | ( | ) |
void KviApplication::setAvatarOnFileReceived | ( | KviConsoleWindow * | pConsole, |
const QString & | szRemoteUrl, | ||
const QString & | szNick, | ||
const QString & | szUser, | ||
const QString & | szHost | ||
) |
References KVI_MAX_PENDING_AVATARS, m_pPendingAvatarChanges, _KviPendingAvatarChange::pConsole, szHost, _KviPendingAvatarChange::szHost, _KviPendingAvatarChange::szNick, _KviPendingAvatarChange::szRemoteUrl, and _KviPendingAvatarChange::szUser.
Referenced by avatar_kvs_cmd_set(), and KviIrcServerParser::parseCtcpReplyAvatar().
bool KviApplication::setCommonOptionValue | ( | const QString & | optName, |
const QString & | value | ||
) |
References g_boolOptionsTable, g_colorOptionsTable, g_fontOptionsTable, g_iccolorOptionsTable, g_mirccolorOptionsTable, g_msgtypeOptionsTable, g_rectOptionsTable, g_stringlistOptionsTable, g_stringOptionsTable, g_uintOptionsTable, KVI_BOOL_OPTIONS_PREFIX, KVI_BOOL_OPTIONS_PREFIX_LEN, KVI_COLOR_OPTIONS_PREFIX, KVI_COLOR_OPTIONS_PREFIX_LEN, KVI_FONT_OPTIONS_PREFIX, KVI_FONT_OPTIONS_PREFIX_LEN, KVI_ICCOLOR_OPTIONS_PREFIX, KVI_ICCOLOR_OPTIONS_PREFIX_LEN, KVI_MIRCCOLOR_OPTIONS_PREFIX, KVI_MIRCCOLOR_OPTIONS_PREFIX_LEN, KVI_MSGTYPE_OPTIONS_PREFIX, KVI_MSGTYPE_OPTIONS_PREFIX_LEN, KVI_NUM_BOOL_OPTIONS, KVI_NUM_COLOR_OPTIONS, KVI_NUM_FONT_OPTIONS, KVI_NUM_ICCOLOR_OPTIONS, KVI_NUM_MIRCCOLOR_OPTIONS, KVI_NUM_MSGTYPE_OPTIONS, KVI_NUM_RECT_OPTIONS, KVI_NUM_STRING_OPTIONS, KVI_NUM_STRINGLIST_OPTIONS, KVI_NUM_UINT_OPTIONS, KVI_STRING_OPTIONS_PREFIX, KVI_STRING_OPTIONS_PREFIX_LEN, KVI_STRINGLIST_OPTIONS_PREFIX, KVI_STRINGLIST_OPTIONS_PREFIX_LEN, KVI_UINT_OPTIONS_PREFIX, KVI_UINT_OPTIONS_PREFIX_LEN, and SET_OPTION_VALUE.
Referenced by setOptionValue().
|
inline |
Referenced by KviMainWindow::closeEvent().
bool KviApplication::setOptionValue | ( | const QString & | optName, |
const QString & | value | ||
) |
References buildRecentChannels(), KviQString::equalCI(), KviQString::equalCIN(), findImage(), KviStringConversion::fromString(), g_pixmapOptionsTable, i, KVI_PIXMAP_OPTIONS_PREFIX, KVI_PIXMAP_OPTIONS_PREFIX_LEN, optionResetUpdate(), setCommonOptionValue(), and szBuffer.
Referenced by KviKvsCoreSimpleCommands::KVSCSC().
void KviApplication::setup | ( | ) |
References checkSuggestRestoreDefaultScript(), KviLocale::codecForName(), Config, createFrame(), createIpcSentinel(), KviMainWindow::executeInternalCommand(), KviFileUtils::fileExists(), firstTimeRun(), g_pGlobalWindowDict, g_pIconManager, g_pInputPopup, g_pMainWindow, g_pMediaManager, g_pModuleExtensionManager, g_pModuleManager, g_pNickServRuleSet, g_pProxyDataBase, g_pRecentTopicList, g_pRegisteredChannelDataBase, g_pRegisteredUserDataBase, g_pServerDataBase, g_pServerParser, g_pSharedFilesManager, g_pTextIconManager, getGlobalKvircDirectory(), getLocalKvircDirectory(), getReadOnlyConfigPath(), KviThreadManager::globalInit(), KviStringConversion::init(), KviKvs::init(), KviCustomToolBarManager::init(), KviActionManager::init(), KviUserIdentityManager::init(), KviInputHistory::init(), KviAvatarCache::init(), KviIdentityProfileSet::init(), KviDefaultScriptManager::init(), KviAnimatedPixmapCache::init(), KviCustomToolBarManager::instance(), KviActionManager::instance(), KviUserIdentityManager::instance(), KviInputHistory::instance(), KviAvatarCache::instance(), KviIdentityProfileSet::instance(), KviDefaultScriptManager::instance(), KviLocale::instance(), KVI_CONFIGFILE_ALIASES, KVI_CONFIGFILE_AVATARCACHE, KVI_CONFIGFILE_CUSTOMTOOLBARS, KVI_CONFIGFILE_DEFAULTSCRIPT, KVI_CONFIGFILE_EVENTS, KVI_CONFIGFILE_IDENTITIES, KVI_CONFIGFILE_INPUTHISTORY, KVI_CONFIGFILE_MEDIATYPES, KVI_CONFIGFILE_NICKSERVDATABASE, KVI_CONFIGFILE_POPUPS, KVI_CONFIGFILE_PROFILESDATABASE, KVI_CONFIGFILE_PROXYDB, KVI_CONFIGFILE_RAWEVENTS, KVI_CONFIGFILE_REGCHANDB, KVI_CONFIGFILE_REGUSERDB, KVI_CONFIGFILE_SCRIPTADDONS, KVI_CONFIGFILE_SERVERDB, KVI_CONFIGFILE_SHAREDFILES, KVI_CONFIGFILE_USERACTIONS, KVI_CONFIGFILE_WINPROPERTIES, KVI_INTERNALCOMMAND_SERVERSJOIN_OPEN, KVI_OPTION_BOOL, KviMainWindow::KviIrcServerParser, KviOption_boolShowIconsInPopupMenus, KviOption_boolShowServersConnectDialogOnStart, KviProxyDataBase::load(), KviSharedFilesManager::load(), KviRegisteredChannelDataBase::load(), KviNickServRuleSet::load(), KviMediaManager::load(), KviCustomToolBarManager::load(), KviRegisteredUserDataBase::load(), KviActionManager::load(), KviDefaultScriptManager::load(), KviAvatarCache::load(), KviInputHistory::load(), KviUserIdentityManager::load(), KviIdentityProfileSet::load(), KviIrcServerDataBase::load(), KviTextIconManager::load(), KviKvs::loadAliases(), KviKvs::loadAppEvents(), loadDirectories(), KviDefaultScriptManager::loadEmptyConfig(), loadOptions(), KviKvs::loadPopups(), KviKvs::loadRawEvents(), loadRecentEntries(), KviKvs::loadScriptAddons(), KviMutex::lock(), m_bSetupDone, m_iHeartbeatTimerId, m_szGlobalKvircDir, m_szLocalKvircDir, None, KviFileUtils::readFile(), KviConfigurationFile::ReadWrite, setupFinish(), KviMutex::unlock(), updateApplicationFont(), updatePseudoTransparency(), and w.
Referenced by main().
void KviApplication::setupBegin | ( | ) |
References __tr2qs, KviQString::ensureLastCharIs(), g_pSetupLibrary, getGlobalKvircDirectory(), KVI_PATH_SEPARATOR_CHAR, Modules, and KviMessageBox::warning().
Referenced by loadDirectories().
|
private |
References __tr2qs.
Referenced by loadDirectories().
void KviApplication::setupFinish | ( | ) |
References __tr2qs, g_pSetupLibrary, and KviMessageBox::warning().
Referenced by setup().
|
private |
Referenced by loadDirectories().
|
slot |
References g_pMainWindow.
Referenced by notifierMessage().
bool KviApplication::supportsCompositing | ( | ) |
Referenced by KviThemedLineEdit::applyOptions(), KviThemedComboBox::applyOptions(), KviThemedTreeWidget::applyOptions(), KviThemedLabel::applyOptions(), OptionsWidget_themeTransparency::OptionsWidget_themeTransparency(), MessageListWidgetItemDelegate::paint(), KviThemedComboBox::paintEvent(), KviThemedLineEdit::paintEvent(), KviThemedLabel::paintEvent(), KviThemedTreeWidget::paintEvent(), FileTransferWidget::paintEvent(), UrlDialogTreeWidget::paintEvent(), KviToolBarGraphicalApplet::paintEvent(), KviIOGraphWindow::paintEvent(), KviTreeWindowListTreeWidget::paintEvent(), NotifierWindowTab::paintEvent(), KviIrcView::paintEvent(), KviUserListViewArea::paintEvent(), and KviInputEditor::paintEvent().
QStyle* KviApplication::themedStyle | ( | ) |
|
protectedvirtual |
References heartbeat(), kvi_time_t, kvi_unixTime, and m_iHeartbeatTimerId.
KviConsoleWindow * KviApplication::topmostConnectedConsole | ( | ) |
References activeConsole(), KviWindow::Console, KviPointerHashTableIterator< Key, T >::current(), g_pGlobalWindowDict, KviConsoleWindow::isConnected(), and KviWindow::type().
Referenced by ChannelsJoinDialog::clearClicked(), ChannelsJoinDialog::enableJoin(), KviTrayIconWidget::fillContextPopup(), heartbeat(), ChannelsJoinDialog::joinClicked(), KviKvsCoreFunctions::KVSCF(), and ChannelsJoinDialog::regClicked().
void KviApplication::triggerUpdateGui | ( | ) |
References m_bUpdateGuiPending, and updateGui().
Referenced by optionResetUpdate().
|
protected |
References g_pGlobalWindowDict, and KviWindow::id().
Referenced by KviWindow::~KviWindow().
|
private |
References g_pMainWindow, KVI_OPTION_BOOL, KVI_OPTION_FONT, KviOption_boolUseGlobalApplicationFont, KviOption_fontApplication, and m_fntDefaultFont.
Referenced by optionResetUpdate(), and setup().
|
slot |
References KviMainWindow::applyOptions(), g_pMainWindow, KVI_OPTION_BOOL, KviOption_boolShowIconsInPopupMenus, and m_bUpdateGuiPending.
Referenced by triggerUpdateGui().
|
signal |
Referenced by optionResetUpdate().
|
slot |
References g_pApp, g_pMainWindow, KVI_OPTION_BOOL, KVI_OPTION_PIXMAP, KviOption_boolUseCompositingForTransparency, KviOption_boolUseGlobalPseudoTransparency, KviOption_boolUseWindowsDesktopForTransparency, KviOption_pixmapGlobalTransparencyBackground, and KviMainWindow::updatePseudoTransparency().
Referenced by setup().
unsigned int KviApplication::windowCount | ( | ) |
References g_pGlobalWindowDict.
Referenced by KviWindow::~KviWindow().
bool KviApplication::windowExists | ( | KviWindow * | wnd | ) |
References KviPointerHashTableIterator< Key, T >::current(), and g_pGlobalWindowDict.
Referenced by DccBroker::activeVideoExecute(), DccBroker::activeVoiceExecute(), dcc_kvs_fnc_ircContext(), KviKvsDnsManager::dnsLookupTerminated(), DccFileTransfer::event(), KviKvsCallbackObject::execute(), DccBroker::executeChat(), fileDownloadTerminated(), KviKvsPopupMenu::itemClicked(), KviKvsRunTimeContext::leaveBlockingSection(), KviKvsAsyncDnsOperation::lookupTerminated(), NotifierWindowTab::mouseDoubleClickEvent(), KviIrcServerParser::parseNumericEndOfWhois(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericNoSuchServer(), DccBroker::passiveVideoExecute(), SlowPasteController::pasteClipboard(), SlowPasteController::pasteFile(), DccBroker::recvFileExecute(), KviKvsReport::report(), DccBroker::rsendExecute(), DccBroker::sendFileExecute(), KviKvsPopupMenu::setupMenuContents(), KviKvsTimerManager::timerEvent(), KviKvsProcessAsyncOperation::trigger(), DccDescriptor::triggerCreationEvent(), and DccDescriptor::~DccDescriptor().
|
friend |
Referenced by createFrame().
|
friend |
|
friend |
|
protected |
Referenced by KviApplication(), and ~KviApplication().
bool KviApplication::m_bCreateConfig |
Referenced by KviApplication(), and main().
|
protected |
Referenced by loadDirectories().
|
protected |
Referenced by KviApplication(), setup(), and ~KviApplication().
|
protected |
Referenced by KviApplication(), triggerUpdateGui(), and updateGui().
|
protected |
Referenced by KviApplication(), and updateApplicationFont().
|
protected |
Referenced by KviApplication(), setup(), and timerEvent().
|
protected |
|
protected |
Referenced by createIpcSentinel(), destroyIpcSentinel(), and KviApplication().
|
protected |
Referenced by fileDownloadTerminated(), findPendingAvatarChange(), KviApplication(), setAvatarOnFileReceived(), and ~KviApplication().
|
protected |
QString KviApplication::m_szConfigFile |
Referenced by findLocalKvircDirectory(), KviApplication(), main(), and saveKvircDirectory().
QString KviApplication::m_szExecAfterStartup |
Referenced by createFrame(), and main().
|
protected |
|
protected |