本文整理汇总了C++中Archiver::setNote方法的典型用法代码示例。如果您正苦于以下问题:C++ Archiver::setNote方法的具体用法?C++ Archiver::setNote怎么用?C++ Archiver::setNote使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Archiver
的用法示例。
在下文中一共展示了Archiver::setNote方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KrResultTable
KrArchiverResultTable::KrArchiverResultTable(QWidget* parent)
: KrResultTable(parent)
{
_supported = KRarcHandler::supportedPackers(); // get list of available packers
Archiver* tar = new Archiver("tar", "http://www.gnu.org", PS("tar"), true, true);
Archiver* gzip = new Archiver("gzip", "http://www.gnu.org", PS("gzip"), true, true);
Archiver* bzip2 = new Archiver("bzip2", "http://www.gnu.org", PS("bzip2"), true, true);
Archiver* lzma = new Archiver("lzma", "http://tukaani.org/lzma", PS("lzma"), true, true);
Archiver* xz = new Archiver("xz", "http://tukaani.org/xz", PS("xz"), true, true);
Archiver* lha = new Archiver("lha", "http://www.gnu.org", PS("lha"), true, true);
Archiver* zip = new Archiver("zip", "http://www.info-zip.org", PS("zip"), true, false);
Archiver* unzip = new Archiver("unzip", "http://www.info-zip.org", PS("unzip"), false, true);
Archiver* arj = new Archiver("arj", "http://www.arjsoftware.com", PS("arj"), true, true);
Archiver* unarj = new Archiver("unarj", "http://www.arjsoftware.com", PS("unarj"), false, true);
Archiver* unace = new Archiver("unace", "http://www.winace.com", PS("unace"), false, true);
Archiver* rar = new Archiver("rar", "http://www.rarsoft.com", PS("rar"), true, true);
Archiver* unrar = new Archiver("unrar", "http://www.rarsoft.com", PS("unrar"), false, true);
Archiver* rpm = new Archiver("rpm", "http://www.gnu.org", PS("rpm"), false, true);
Archiver* dpkg = new Archiver("dpkg", "http://www.dpkg.org", PS("dpkg"), false, true);
Archiver* _7z = new Archiver("7z", "http://www.7-zip.org", PS("7z"), true, true);
// Special case: arj can unpack, but unarj is preferred
if (PS("arj") && PS("unarj"))
arj->setIsUnpacker(false);
if (PS("arj") && !PS("unarj"))
unarj->setNote(i18n("unarj not found, but arj found, which will be used for unpacking"));
// Special case: rar can unpack, but unrar is preferred
if (PS("rar") && PS("unrar"))
rar->setIsUnpacker(false);
// Special case: rpm needs cpio for unpacking
if (PS("rpm") && !PS("cpio"))
rpm->setNote(i18n("rpm found, but cpio not found which is required for unpacking"));
_tableHeaders.append(i18n("Name"));
_tableHeaders.append(i18n("Found"));
_tableHeaders.append(i18n("Packing"));
_tableHeaders.append(i18n("Unpacking"));
_tableHeaders.append(i18n("Note"));
_numColumns = _tableHeaders.size();
_grid = initTable();
addRow(tar, _grid);
addRow(gzip, _grid);
addRow(bzip2, _grid);
addRow(lzma, _grid);
addRow(xz, _grid);
addRow(lha, _grid);
addRow(zip, _grid);
addRow(unzip, _grid);
addRow(arj, _grid);
addRow(unarj, _grid);
addRow(unace, _grid);
addRow(rar, _grid);
addRow(unrar, _grid);
addRow(rpm, _grid);
addRow(dpkg, _grid);
addRow(_7z, _grid);
delete tar;
delete gzip;
delete bzip2;
delete lzma;
delete xz;
delete lha;
delete zip;
delete unzip;
delete arj;
delete unarj;
delete unace;
delete rar;
delete unrar;
delete rpm;
delete dpkg;
delete _7z;
}