Enable support for setting compression level in cliplugins
ClosedPublic

Authored by rthomsen on Mar 30 2016, 8:49 PM.

Details

Summary

This adds a compression level switch to AddArgs.

Diff Detail

Repository
R36 Ark
Lint
Lint Skipped
Unit
Unit Tests Skipped
rthomsen updated this revision to Diff 3036.Mar 30 2016, 8:49 PM
rthomsen retitled this revision from to Enable support for setting compression level in cliplugins.
rthomsen updated this object.
rthomsen edited the test plan for this revision. (Show Details)
rthomsen added a reviewer: elvisangelaccio.
rthomsen set the repository for this revision to R36 Ark.
rthomsen added a project: Ark.
Restricted Application added a subscriber: kde-utils-devel. · View Herald TranscriptMar 30 2016, 8:49 PM
rthomsen updated this object.Mar 31 2016, 8:23 AM
elvisangelaccio requested changes to this revision.Mar 31 2016, 9:51 AM
elvisangelaccio edited edge metadata.
elvisangelaccio added inline comments.
kerfuffle/cliinterface.cpp
723 ↗(On Diff #3036)

Some kind of input validation would be useful here. Say that the level is negative (should not happen, but who knows), in that case the function should return an empty list (and the plugin would then use whatever the default level is.

This revision now requires changes to proceed.Mar 31 2016, 9:51 AM
rthomsen added inline comments.Mar 31 2016, 6:25 PM
kerfuffle/cliinterface.h
155 ↗(On Diff #3036)

Should we change this one to a QString?

rthomsen updated this revision to Diff 3174.Apr 6 2016, 6:39 PM
rthomsen updated this object.
rthomsen edited the test plan for this revision. (Show Details)
rthomsen edited edge metadata.

Set compression level from CompressionOptions. Now we just need to implement the GUI.

Add an assert to CliInterface::compressionLevelSwitch() which checks that the compression level is between 0 and 9.

rthomsen marked an inline comment as done.Apr 6 2016, 6:39 PM
rthomsen updated this revision to Diff 3175.Apr 6 2016, 6:42 PM
rthomsen edited edge metadata.

An error crept into the previous diff.

elvisangelaccio accepted this revision.Apr 6 2016, 8:53 PM
elvisangelaccio edited edge metadata.
elvisangelaccio added inline comments.
kerfuffle/cliinterface.h
155 ↗(On Diff #3036)

Yes, makes sense.

This revision is now accepted and ready to land.Apr 6 2016, 8:53 PM
rthomsen updated this revision to Diff 3183.Apr 7 2016, 6:22 AM
rthomsen edited edge metadata.

Change CompressionLevelSwitch parameter from QStringList to QString.

This revision was automatically updated to reflect the committed changes.