Changeset View
Changeset View
Standalone View
Standalone View
kerfuffle/cliinterface.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Line(s) | 50 | enum CliInterfaceParameters { | |||
---|---|---|---|---|---|
282 | * containing the comment. | 282 | * containing the comment. | ||
283 | * Example (rar plugin): -z$CommentFile | 283 | * Example (rar plugin): -z$CommentFile | ||
284 | */ | 284 | */ | ||
285 | CommentSwitch, | 285 | CommentSwitch, | ||
286 | TestProgram, | 286 | TestProgram, | ||
287 | TestArgs, | 287 | TestArgs, | ||
288 | TestPassedPattern, | 288 | TestPassedPattern, | ||
289 | MultiVolumeSwitch, | 289 | MultiVolumeSwitch, | ||
290 | MultiVolumeSuffix | 290 | MultiVolumeSuffix, | ||
291 | CompressionMethodSwitch | ||||
291 | }; | 292 | }; | ||
292 | 293 | | |||
293 | typedef QHash<int, QVariant> ParameterList; | 294 | typedef QHash<int, QVariant> ParameterList; | ||
294 | 295 | | |||
295 | class KERFUFFLE_EXPORT CliInterface : public ReadWriteArchiveInterface | 296 | class KERFUFFLE_EXPORT CliInterface : public ReadWriteArchiveInterface | ||
296 | { | 297 | { | ||
297 | Q_OBJECT | 298 | Q_OBJECT | ||
298 | 299 | | |||
Show All 31 Lines | 300 | public: | |||
330 | /** | 331 | /** | ||
331 | * Move all files from @p tmpDir to @p destDir, preserving paths if @p preservePaths is true. | 332 | * Move all files from @p tmpDir to @p destDir, preserving paths if @p preservePaths is true. | ||
332 | * @return Whether the operation has been successful. | 333 | * @return Whether the operation has been successful. | ||
333 | */ | 334 | */ | ||
334 | bool moveToDestination(const QDir &tempDir, const QDir &destDir, bool preservePaths); | 335 | bool moveToDestination(const QDir &tempDir, const QDir &destDir, bool preservePaths); | ||
335 | 336 | | |||
336 | QStringList substituteListVariables(const QStringList &listArgs, const QString &password); | 337 | QStringList substituteListVariables(const QStringList &listArgs, const QString &password); | ||
337 | QStringList substituteExtractVariables(const QStringList &extractArgs, const QList<Archive::Entry*> &entries, bool preservePaths, const QString &password); | 338 | QStringList substituteExtractVariables(const QStringList &extractArgs, const QList<Archive::Entry*> &entries, bool preservePaths, const QString &password); | ||
338 | QStringList substituteAddVariables(const QStringList &addArgs, const QList<Archive::Entry*> &entries, const QString &password, bool encryptHeader, int compLevel, ulong volumeSize); | 339 | QStringList substituteAddVariables(const QStringList &addArgs, const QList<Archive::Entry*> &entries, const QString &password, bool encryptHeader, int compLevel, ulong volumeSize, QString compMethod); | ||
339 | QStringList substituteMoveVariables(const QStringList &moveArgs, const QList<Archive::Entry*> &entriesWithoutChildren, const Archive::Entry *destination, const QString &password); | 340 | QStringList substituteMoveVariables(const QStringList &moveArgs, const QList<Archive::Entry*> &entriesWithoutChildren, const Archive::Entry *destination, const QString &password); | ||
340 | QStringList substituteDeleteVariables(const QStringList &deleteArgs, const QList<Archive::Entry*> &entries, const QString &password); | 341 | QStringList substituteDeleteVariables(const QStringList &deleteArgs, const QList<Archive::Entry*> &entries, const QString &password); | ||
341 | QStringList substituteCommentVariables(const QStringList &commentArgs, const QString &commentFile); | 342 | QStringList substituteCommentVariables(const QStringList &commentArgs, const QString &commentFile); | ||
342 | QStringList substituteTestVariables(const QStringList &testArgs, const QString &password); | 343 | QStringList substituteTestVariables(const QStringList &testArgs, const QString &password); | ||
343 | 344 | | |||
344 | /** | 345 | /** | ||
345 | * @see ArchiveModel::entryPathsFromDestination | 346 | * @see ArchiveModel::entryPathsFromDestination | ||
346 | */ | 347 | */ | ||
Show All 14 Lines | |||||
361 | */ | 362 | */ | ||
362 | QStringList passwordSwitch(const QString& password) const; | 363 | QStringList passwordSwitch(const QString& password) const; | ||
363 | 364 | | |||
364 | /** | 365 | /** | ||
365 | * @return The compression level switch with the given @p level. | 366 | * @return The compression level switch with the given @p level. | ||
366 | */ | 367 | */ | ||
367 | QString compressionLevelSwitch(int level) const; | 368 | QString compressionLevelSwitch(int level) const; | ||
368 | 369 | | |||
370 | virtual QString compressionMethodSwitch(const QString &method) const; | ||||
369 | QString multiVolumeSwitch(ulong volumeSize) const; | 371 | QString multiVolumeSwitch(ulong volumeSize) const; | ||
370 | 372 | | |||
371 | /** | 373 | /** | ||
372 | * @return The list of selected files to extract. | 374 | * @return The list of selected files to extract. | ||
373 | */ | 375 | */ | ||
374 | QStringList extractFilesList(const QList<Archive::Entry*> &files) const; | 376 | QStringList extractFilesList(const QList<Archive::Entry*> &files) const; | ||
375 | 377 | | |||
376 | QString multiVolumeName() const Q_DECL_OVERRIDE; | 378 | QString multiVolumeName() const Q_DECL_OVERRIDE; | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |