D8524: Add a signal notifying a change in the names of running activities.

2017-12-04 Thread Eike Hein
This revision was automatically updated to reflect the committed changes. Closed by commit R120:da91a5224e48: Add a signal notifying a change in the names of running activities. (authored by hein). REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8524?v

D8524: Add a signal notifying a change in the names of running activities.

2017-12-04 Thread David Edmundson
davidedmundson accepted this revision. This revision is now accepted and ready to land. REPOSITORY R120 Plasma Workspace BRANCH master REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma, davidedmundson Cc: davidedmundson, anthonyfieroni, ivan, plasma-devel, ZrenBot, progw

D8524: Add a signal notifying a change in the names of running activities.

2017-11-17 Thread Eike Hein
hein added a comment. Such a class would imho be pretty redundant to the model class, so now it's back to whether David wants to accept this patch or not. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma, davidedmundson Cc: davidedmund

D8524: Add a signal notifying a change in the names of running activities.

2017-11-17 Thread Ivan Čukić
ivan added a comment. The activities cache is a private class meant to communicate directly to KAMD. The signals it contains are in the form `(activity id, something)` and are meant to be private. The `KActivities::Info` class was meant to wrap these signals into a nice OO API where an activ

D8524: Add a signal notifying a change in the names of running activities.

2017-11-13 Thread Eike Hein
hein added a comment. Looking at the KActivities API more, perhaps not exposing this directly was deliberate of Ivan as otherwise Consumer would probably have all of the Cache signals. Ivan, can you opine on this? REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.

D8524: Add a signal notifying a change in the names of running activities.

2017-11-13 Thread Eike Hein
hein added a comment. I inquired upstream about a signal/API a few times and wasn't told about this signal. I will look into it, unless Ivan wants to. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma, davidedmundson Cc: davidedmundson,

D8524: Add a signal notifying a change in the names of running activities.

2017-11-13 Thread David Edmundson
davidedmundson requested changes to this revision. davidedmundson added a comment. This revision now requires changes to proceed. ActivitiesCache has a perfectly good nameChanged signal which is exactly what we want. I know it's not currently public API, but we should be fixing things pr

D8524: Add a signal notifying a change in the names of running activities.

2017-11-10 Thread Eike Hein
hein added a comment. Ping REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma Cc: anthonyfieroni, ivan, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D8524: Add a signal notifying a change in the names of running activities.

2017-11-08 Thread Eike Hein
hein added a comment. Please re-review, my above comment and diff update were submitted together. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma Cc: anthonyfieroni, ivan, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jen

D8524: Add a signal notifying a change in the names of running activities.

2017-11-08 Thread Eike Hein
hein added inline comments. INLINE COMMENTS > anthonyfieroni wrote in activityinfo.cpp:81-86 > They should emit also numberOfRunnigActivitiesChanges, no? They don't need to. It's emitted in response to &KActivities::Consumer::runningActivitiesChanged. Actually, doing the reverse might make mor

D8524: Add a signal notifying a change in the names of running activities.

2017-11-08 Thread Eike Hein
hein updated this revision to Diff 22084. hein added a comment. Don't connect too rowsInserted/rowsRemoved. This is already handled by connecting to KActivities::Consumer::runningActivitiesChanged. REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.or

D8524: Add a signal notifying a change in the names of running activities.

2017-11-08 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > activityinfo.cpp:81-86 > +connect(d->activitiesModel, &KActivities::ActivitiesModel::rowsInserted, > +this, &ActivityInfo::namesOfRunningActivitiesChanged); > +connect(d->activitiesModel, &KActivities::ActivitiesModel::rowsRe

D8524: Add a signal notifying a change in the names of running activities.

2017-11-08 Thread Eike Hein
hein added a comment. ping? REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma Cc: ivan, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D8524: Add a signal notifying a change in the names of running activities.

2017-10-30 Thread Eike Hein
hein updated this revision to Diff 21544. hein added a comment. Also handle empty roles. REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8524?vs=21438&id=21544 BRANCH master REVISION DETAIL https://phabricator.kde.org/D8524 AFFECTED FILES l

D8524: Add a signal notifying a change in the names of running activities.

2017-10-30 Thread Eike Hein
hein added a comment. In https://phabricator.kde.org/D8524#161438, @ivan wrote: > Also, not sure adding a signal that has one user only to a shared library is the best approach, especially since .h says this: > > 37 * @NOTE: This is a placeholder, to be moved into KActivities (whic

D8524: Add a signal notifying a change in the names of running activities.

2017-10-29 Thread Ivan Čukić
ivan added a comment. Also, not sure adding a signal that has one user only to a shared library is the best approach, especially since .h says this: 37 * @NOTE: This is a placeholder, to be moved into KActivities (which it 38 * wraps) or the Task Manager applet backend.

D8524: Add a signal notifying a change in the names of running activities.

2017-10-27 Thread Eike Hein
hein added a dependent revision: D8525: Refresh when the names of the running activities change.. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D8524 To: hein, #plasma Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, seba

D8524: Add a signal notifying a change in the names of running activities.

2017-10-27 Thread Eike Hein
hein created this revision. hein added a reviewer: Plasma. Restricted Application added a project: Plasma. REVISION SUMMARY CCBUG:384001 REPOSITORY R120 Plasma Workspace BRANCH master REVISION DETAIL https://phabricator.kde.org/D8524 AFFECTED FILES libtaskmanager/activityinfo.cpp l