< Plasma Revision as of 22:20, 4 October 2010 (view source)Chani (talk | contribs) (→activitymanager kded)← Older edit Revision as of 19:09, 6 October 2010 (view source) Chani (talk | contribs) (→activitymanager kded: api)Newer edit → Line 69: Line 69: ===activitymanager kded=== ===activitymanager kded=== −new API that I'm too tired to paste right now..+New API... + +definitely needed: +* void requestCloseActivity(id); +* QStringList openActivities(); +* QStringList closedActivities(); +signals: +* activityClosed(id); +* activityCloseCancelled(); + +not 100% sure about: +* in KActivityInfo, bool isOpen() or State state() (possible values Open, Closed, Opening, Closing) ? + +notes: +* only one activity can be in an inbetween state (opening/closing) at a time, but it can be in this state for an arbitrary amount of time (eg. if an application asks whether to save and the user doesn't answer). +* although opening can take more time than closing, it's not interactive, so it would be easy to pretend it's instant. the catch is that you can't actually open/close any others until that one's done opening. +* if the activity manager can't find anyone to close the session for it (say, if the user's running compiz), it will assume there's nothing to save and immediately emit activityClosed. Revision as of 19:09, 6 October 2010 Contents 1 Plasma 1.1 bugs 1.2 functionality 1.3 polish 1.4 guts 1.5 features 2 KWin 2.1 bugs 2.2 features 3 Sessions 3.1 bugs 3.2 functionality 3.3 features 4 Nepomuk 4.1 features 5 activitymanager kded Plasma the plasma side of activities... bugs play/stop/delete icons are misaligned iirc the list gets a bit funny when things resize or go away 'add widgets' button is still available when locked functionality when plasma is locked, the activitymanager runs away. it shouldn't do that; instead it should disable the add/remove buttons (and maybe stop/play too?) we need a way to rename and set icon from the activity manager, inline. that's the stuff that was in the containment config for 4.5 support switching to other-screen containments (explained better on the Multiscreen page templates are only half-implemented. there's no js way to create a new activity, only new containment. what we need is a mode (and way to set it) in plasmaapp that creates a new activity and says that new containments will be autoassigned to that activity. then when the script is done creating containments we unset the mode (and probably do a sanity check on the activity). polish activity manager doesn't show which activity is the current one. some sort of pretty highlight or something would be nice. those remove/stop buttons could be a lot prettier. hover effects n'stuff random wallpaper when creating a new containment? prettify the search filter? guts View::swapContainment could do with cleanup like Activity::open. we should hack something into Context so that it keeps the activity name in sync itself, instead of relying on Activity while KActivity* is in kdebase Activity could pay better attention to its containments, in case they get moved around by something else... it kinda assumes that it has full control when it doesn't. features sorting of the activities (probably by last activation?) 'running'/'stopped' categories that scroll to the first running/stopped activity something in the panel that tells me what activity I'm on and lets me switch quickly dataengine? (what are use cases? how much easier than ActivityConsumer is it?) KWin windows can be associated with activities bugs iirc some effects leave 'holes' for windows on other activities. need to check if anyone solved that features special window rules for activities, for those stubborn apps that will never play well (might want to wait until session support is in though) expose the associations somehow so that the taskbar can have activity features turn libtaskmanager's window-context-menu stuff into a library that can be reused instead of reimplemented in three places (there, kwin and somewhere-I-forget). Sessions ksmserver handles your login and logout session; now it's going to handle saving and restoring the non-plasma side of activities too :) bugs on store, it either works instantly or hits the ten-second timeout. some callback is getting dropped somewhere and I'm not sure why. functionality I need to know which clients are on which activities, so that I can close the right ones instead of a hardcoded set. 18:11 < fredrikh> Chani: windows are supposed to have either an SM_CLIENT_ID property, or a WM_CLIENT_LEADER property that points to the window that has it expose the generic loading function over dbus instead of the testing one figure out how to restore activity-window associations give the activity kded API for open/closed activities (a close will have to be requested first, because ksmserver can cancel it, and we want the plasma part going down last for prettiness. that means we need cancel/done functions so that plasma's notified when ksmserver finishes. get it all working smoothly, plasma -> ksmserver -> plasma features have a look at that "legacy" session stuff start dealing with behaviour for processes on >1 activity (can probably note who they're sharing with, copy on store and purge/skip on restore) start looking into making apps activity-aware and improving session support Nepomuk features tell us whether a resource is associated with an activity, so that its window can be auto-associated activitymanager kded New API... definitely needed: void requestCloseActivity(id); QStringList openActivities(); QStringList closedActivities(); signals: activityClosed(id); activityCloseCancelled(); not 100% sure about: in KActivityInfo, bool isOpen() or State state() (possible values Open, Closed, Opening, Closing) ? notes: only one activity can be in an inbetween state (opening/closing) at a time, but it can be in this state for an arbitrary amount of time (eg. if an application asks whether to save and the user doesn't answer). although opening can take more time than closing, it's not interactive, so it would be easy to pretend it's instant. the catch is that you can't actually open/close any others until that one's done opening. if the activity manager can't find anyone to close the session for it (say, if the user's running compiz), it will assume there's nothing to save and immediately emit activityClosed. Retrieved from "https://community.kde.org/index.php?title=Plasma/Activities&oldid=5394" Content is available under Creative Commons License SA 4.0 unless otherwise noted.