**** BEGIN LOGGING AT Wed Sep 21 02:59:58 2016 Sep 21 03:34:45 * DougReeder wavaes to ka6sox Sep 21 03:35:08 hiya DougReeder Sep 21 03:35:11 how goes it? Sep 21 03:35:20 Adequately. Sep 21 03:35:46 I’ve almost got my enyo-animated library converted to 2.7 Sep 21 03:36:23 And enyo-dev 1.0.1 should be out any day, giving us access to thousands of NPM packages. Sep 21 03:37:08 So, that’s better than “adequate”, but I’m gloomy by nature. :-) Sep 21 03:45:59 morning Sep 21 03:46:08 * DougReeder waaves Sep 21 05:07:44 sweet! (sorry kidlet needed help wiht homework) Sep 21 07:10:04 morning Sep 21 07:20:06 Morning Sep 21 16:50:11 nizovn: ping Sep 21 16:50:23 Herrie|2: pong Sep 21 16:50:51 You have time for some little C++ stuff? Sep 21 16:50:58 Or you're working on something? Sep 21 16:51:23 yes, i have some time Sep 21 16:51:41 I'd need to have https://github.com/webOS-ports/luna-next/blob/master/plugins/shell/notifications/notificationmanagerwrapper.cpp extended a bit Sep 21 16:52:22 To return all available/open notifications for a certain app: similar to closeAllByOwner Sep 21 16:52:35 But then just return the list of the notifications Sep 21 16:52:51 I will then pick this up in the chatthreader to update the dashboards Sep 21 16:53:15 Should be simple I guess Sep 21 16:53:27 * Herrie is just no good with this :P Sep 21 16:53:57 Jsut call it "listAllByOwner or something Sep 21 16:54:31 ok, btw it was done the same way on legacy? Sep 21 16:55:35 nizovn: Not sure how all was done in legacy Sep 21 16:55:47 Each app had a dashboardmanager it seems Sep 21 16:55:59 And lunasysmgr maybe returned more info Sep 21 16:56:43 Just chatthreader was rewritten. I need to be able to get all active notifications to determine if we already have some for the same app/sender Sep 21 16:56:48 And update accordingly Sep 21 16:57:04 ok Sep 21 16:57:44 When there are 2 diferent sender there's a different icon in the dashboard on the left with the number of senders in a small circle Sep 21 16:58:00 When it's the same sender it will update the dashboard and doesn't change the icon Sep 21 16:59:07 Just I have no way to return this info currently Sep 21 17:01:20 I'll just update luna-next-cardshell accordingly once luna-next is having the methods for this, that's straight forward: https://github.com/webOS-ports/luna-next-cardshell/blob/09c71c94b4cc8b5ba624eb612d5d8503274c61c0/qml/LunaSysAPI/NotificationService.qml#L35 Sep 21 17:02:26 So I can simply do a luna-send from chatthreader to do what is needed and add some logics here: https://github.com/webOS-ports/org.webosports.messaging/blob/master/service/javascript/utils/MessageAssigner.js#L9 Sep 21 17:02:34 Dealing with different scenarios Sep 21 17:14:01 Herrie: what you need to get : number of notifications for ownerId? Sep 21 17:15:35 just not sure how to return notification objects Sep 21 17:20:31 nizovn: Ideally I get back the the whole object as a JSON, but just the id would be the minimum Sep 21 17:20:44 Like: https://github.com/webOS-ports/luna-next/blob/master/plugins/shell/notifications/notificationmanagerwrapper.cpp#L43 Sep 21 17:21:13 I need to be able to see if it comes from different senders, but I could locally keep track of those id's in the chatthreader maybe, not sure Sep 21 17:21:31 Ideally I'd need the title & body as well I guess Sep 21 17:21:45 If the whole object is complicated Sep 21 17:23:53 Would have to see how those would survive multiple runs of the chatthreader Sep 21 17:24:04 In OWO this was dealt with in luna-sysmdr Sep 21 17:24:16 ok, understood Sep 21 17:24:18 s/luna-sysmdr/luna-sysmgr Sep 21 17:33:49 https://github.com/openwebos/luna-sysmgr/tree/master/Src/lunaui/notifications Sep 21 17:34:27 We basically simplified all that in luna-next and do the UI stuff in luna-next-cardshell Sep 21 17:58:30 DougReeder: I'm looking into http://issues.webos-ports.org/issues/719 finally Sep 21 17:58:35 Should be a quick one to fix hopefully Sep 21 17:58:39 Just testing now on legacy Sep 21 17:58:46 And compare with LuneOS and fix accordingly Sep 21 18:25:44 Herrie: if i understand LNC code correctly, NotificationManager doesn't have list of all notifications Sep 21 18:26:29 all of those are stored in QML https://github.com/webOS-ports/luna-next-cardshell/blob/a75a6a8186b862b7655085946e581799ac5ecf74/qml/Notifications/NotificationArea.qml#L132 Sep 21 18:27:20 so you need just to return mergedModel Sep 21 18:27:43 *filtered by ownerId Sep 21 18:30:14 nizovn: It should have it... Sep 21 18:30:20 luna-next stores it in a sqlite db Sep 21 18:31:37 Or I understand it wrongly: https://github.com/webOS-ports/luna-next/blob/master/plugins/shell/notifications/notificationmanager.cpp#L122 Sep 21 18:31:51 https://github.com/webOS-ports/luna-next/blob/master/plugins/shell/notifications/notificationmanager.cpp#L150 Sep 21 18:32:02 Herrie: seems when you create dashboard in enyo, it luna-next creates new window with dashboard type, and doesn't create notification Sep 21 18:32:19 s/it// Sep 21 18:33:48 seems execSQL is executed only when you create notification through org.webosports.notifications Sep 21 18:35:14 Herrie: if you create dashboard in testr, it will gone after LNC restart Sep 21 18:35:40 those created by org.webosports.notifications will persist Sep 21 18:36:42 nizovn: In this case we create through api Sep 21 18:39:16 Herrie: ok, you can get that partial list in QML Sep 21 18:39:55 create NotificationListModel object in NotificationService.qml Sep 21 18:43:34 nizovn: I cannot access that from javascript service ;) Sep 21 18:51:45 I'd like to update these bits so I can call with update instead of create when needed: https://github.com/webOS-ports/org.webosports.messaging/blob/master/service/javascript/utils/MessageAssigner.js#L10 Sep 21 18:52:24 I might be able to do that in LNC, however it's not that reliable because of the contact linker stuff etc, better to do that in the source Sep 21 18:57:03 Herrie: you can get notifications list by something like this https://bpaste.net/show/cf574b56c435 (maybe need corrections, i don't know JS..) Sep 21 18:57:08 this is for https://github.com/webOS-ports/luna-next-cardshell/blob/09c71c94b4cc8b5ba624eb612d5d8503274c61c0/qml/LunaSysAPI/NotificationService.qml file Sep 21 19:07:51 Ah yeah that's agood point Sep 21 19:07:55 Will play a bit **** ENDING LOGGING AT Thu Sep 22 02:59:59 2016