KRun: deprecate all static 'run*' methods, with full porting instructions
ClosedPublic

Authored by dfaure on May 8 2020, 9:54 PM.

Diff Detail

Repository
R241 KIO
Branch
2020_05_deprecate_KRun_run_methods
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 26659
Build 26677: arc lint + arc unit
dfaure created this revision.May 8 2020, 9:54 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 8 2020, 9:54 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
dfaure requested review of this revision.May 8 2020, 9:54 PM
ahmadsamir added inline comments.May 10 2020, 4:20 PM
src/widgets/krun.h
216

I don't think you want both @deprecated?

228

You meant "5, 71"

368–377

But OpenUrlJob is in 5.71 not 5.31? people will be reading that on api.kde.org not only in 5.71 header files, right?
maybe:
@deprecated since 5.31
Since 5.71, use OpenUrlJob instead.

379

The same issue 5.31 vs 5.71.

451–461

Missing @deprecated.

599

So, you're keeping the name slotTimout? I guess after 5-10 years, no point changing it :)

dfaure marked 2 inline comments as done.May 10 2020, 5:04 PM
dfaure added inline comments.
src/widgets/krun.h
216

I did, but Friedrich had a less confusing suggestion:

@deprecated since 5.6. Since 5.71 use ApplicationLauncherJob, otherwise runApplication instead.

228

No, we want this method to be deprecated since 5.6.

368–377

Right, same A->B->C problem here.

I'll use the same solution.

379

Same thing. Whatever the text is, the important bit is that this warns when asking for deprecation warnings ">= 5.31"

451–461

Well spotted.

599

I'm going to deprecate the whole KRun class, so this TODO is irrelevant.

dfaure updated this revision to Diff 82453.May 10 2020, 5:05 PM
dfaure marked 2 inline comments as done.

take review into account

ahmadsamir accepted this revision.May 10 2020, 5:33 PM
ahmadsamir added inline comments.
src/widgets/krun.h
216

Yeah, makes sense; the point is keeping the users of the class informed/aware anyway.

This revision is now accepted and ready to land.May 10 2020, 5:33 PM
dfaure closed this revision.May 10 2020, 6:02 PM