[Kde-pim] Review Request 123773: Port KontactInterface away from KUniqueApplication (and KDELibs4Support)
Laurent Montel
montel at kde.org
Thu May 14 13:07:59 BST 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123773/#review80343
-----------------------------------------------------------
src/pimuniqueapplication.cpp (line 72)
<https://git.reviewboard.kde.org/r/123773/#comment55126>
Yep I don't understand why it was changed
src/uniqueapphandler.h (line 44)
<https://git.reviewboard.kde.org/r/123773/#comment55127>
You changed it.
Did you changed
"./mailcommon/util/mailutil.cpp: QLatin1String("org.kde.KUniqueApplication"));
./mailcommon/util/mailutil.cpp: "org.kde.KUniqueApplication");
./kmail/kmkernel.cpp: QLatin1String("org.kde.KUniqueApplication"),
./kalarm/functions.cpp: QDBusInterface iface(KORG_DBUS_SERVICE, QLatin1String(KORG_DBUS_LOAD_PATH), QLatin1String("org.kde.KUniqueApplication"));
" ?
src/uniqueapphandler.cpp (line 94)
<https://git.reviewboard.kde.org/r/123773/#comment55128>
Do you want to reactivate it ?
src/uniqueapphandler.cpp (line 200)
<https://git.reviewboard.kde.org/r/123773/#comment55129>
Do you want to activate it too ?
- Laurent Montel
On mai 13, 2015, 1:54 après-midi, Daniel Vrátil wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123773/
> -----------------------------------------------------------
>
> (Updated mai 13, 2015, 1:54 après-midi)
>
>
> Review request for KDEPIM-Libraries and Laurent Montel.
>
>
> Repository: kontactinterface
>
>
> Description
> -------
>
> Port away from KUniqueApplication, use QApplication + manual DBus invocation instead (we can't use KDBusService either because it's not customizable enough for our needs). Basically the only change is renaming newInstance() to activate() (because we want to activate the running instance, right?) and passing list of arguments, because we no longer have the global static KCmdArgs and calling QApplication::arguments() is expensive (according to documentatation).
>
> Another reason for renaming newIntance() to activate() is that I'm planning to use this call from individual application's systray icon implementations, which will allow us to automatically switch to the correct module in Kontact (i.e. right now when have "Calendar" active in Kontact, clicking on KMail systray icon restores Kontact window, but does not switch to KMail module - this will be possible with calling activate()).
>
>
> See dev/no-kuniqueapplication branch for commits.
>
>
> Diffs
> -----
>
> CMakeLists.txt 176c47f6d50e7a13daa5113f9574dde3528ce29e
> src/CMakeLists.txt a44afed97f8a83bbeaab8d0fc1e807c5d03cb2ac
> src/core.h 67837a93b481fcccf90aba04202580741cf68b83
> src/core.cpp 03afef28b27cb004ec92751e007792ee41133b0b
> src/pimuniqueapplication.h 875d561abeb3850593ba40476d2cb0c4c5bc0ad0
> src/pimuniqueapplication.cpp bbe4218c97dbc7ee2e38b2007d006ffd575d2624
> src/plugin.h 57f621ba7a47e1a852c2f5c12c3b67454a7ad520
> src/plugin.cpp bb1422e6b3323fd07aed56ee24e4f91621b11d21
> src/summary.cpp 15f123188ba14da4c7ad594bfdbb2b40f3928296
> src/uniqueapphandler.h 08185e5b073d8685f65cd4de7c23a7279c064e31
> src/uniqueapphandler.cpp 5fcf9cd859d4c9625d3cd16b76ead14c02f7d862
>
> Diff: https://git.reviewboard.kde.org/r/123773/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Daniel Vrátil
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list