KVIrc
4.9.2
DeveloperAPIs
|
Functions | |
bool | checkDirTree (const QString &szDirPath, QString *pszError) |
QString | createRandomDir () |
bool | installAddonPackage (const QString &szAddonPackageFileName, QString &szError, QWidget *pDialogParent) |
bool | notAValidAddonPackage (QString &szError) |
bool | pack (AddonInfo &info, QString &szError) |
bool AddonFunctions::checkDirTree | ( | const QString & | szDirPath, |
QString * | pszError | ||
) |
References __tr2qs_ctx(), and init().
Referenced by pack().
QString AddonFunctions::createRandomDir | ( | ) |
Referenced by installAddonPackage().
bool AddonFunctions::installAddonPackage | ( | const QString & | szAddonPackageFileName, |
QString & | szError, | ||
QWidget * | pDialogParent | ||
) |
References __tr2qs_ctx(), KviHtmlDialogData::addHtmlResource(), KviHtmlDialogData::addImageResource(), KviIconManager::Addons, KviPackageIOEngine::binaryInfoFields(), KviMiscUtils::compareVersions(), createRandomDir(), KviFileUtils::deleteDir(), KviHtmlDialog::display(), KviQString::ensureLastCharIs(), KviQString::equalCI(), KviQString::escapeKvs(), KviQString::EscapeSpace, KviPointerHashTable< Key, T >::find(), KviHtmlDialogData::ForceMinimumSize, g_pActiveWindow, g_pApp, g_pIconManager, KviIconManager::getBigIcon(), KviApplication::getLocalKvircDirectory(), KviIconManager::getSmallIcon(), KviPackageReader::getStringInfoField(), KviHtmlDialogData::iCancelButton, KviHtmlDialogData::iDefaultButton, KviHtmlDialogData::iFlags, KviHtmlDialogData::iMinimumHeight, KviHtmlDialogData::iMinimumWidth, KVI_BIGICON_ADDONS, KVI_CURRENT_ADDONS_ENGINE_VERSION, KVI_PATH_SEPARATOR_CHAR, KVI_VERSION, KviPackageIOEngine::lastError(), notAValidAddonPackage(), KviHtmlDialogData::pixIcon, r, KviPackageReader::readHeader(), KviKvsScript::run(), KviPackageIOEngine::stringInfoFields(), KviHtmlDialogData::szButton1Text, KviHtmlDialogData::szButton2Text, KviHtmlDialogData::szCaption, KviHtmlDialogData::szHtmlText, KviHtmlDialogData::szLowerLabelText, KviHtmlDialogData::szUpperLabelText, KviApplication::Tmp, KviPackageReader::unpack(), and KviMessageBox::warning().
Referenced by addon_kvs_cmd_install(), and AddonManagementDialog::installScript().
bool AddonFunctions::notAValidAddonPackage | ( | QString & | szError | ) |
References __tr2qs_ctx().
Referenced by installAddonPackage(), and AddonManagementDialog::installScript().
bool AddonFunctions::pack | ( | AddonInfo & | info, |
QString & | szError | ||
) |
References __tr2qs_ctx(), KviPackageWriter::addDirectory(), KviPackageWriter::addFile(), KviPackageWriter::addInfoField(), checkDirTree(), KVI_CURRENT_ADDONS_ENGINE_VERSION, KVI_SOURCES_DATE, KVI_VERSION, KviPackageIOEngine::lastError(), KviPackageWriter::pack(), AddonInfo::szAuthor, AddonInfo::szDescription, AddonInfo::szDirPath, AddonInfo::szImage, AddonInfo::szMinVersion, AddonInfo::szName, AddonInfo::szSavePath, and AddonInfo::szVersion.
Referenced by addon_kvs_cmd_pack(), and PackAddonDialog::packAddon().