> On Feb. 10, 2012, 8:43 a.m., Lasath Fernando wrote: > > Overall, looks impressive. > > > > But I still don't get why you moved the handler directly into > > ConversationsModel
I needed to change from what it was because when we handle the channel, I need to know: - If we currently have the channel - If we want to handle this channel - Also we save constructing a channel object only to delete it again. I guess this could have been done by having a pointer to the conversation model in the handler and turning your "newConvo" slot into a public method with all the required params, and then returns a bool, but given I was doing such a refactor this seemed like a cleaner simpler solution. > On Feb. 10, 2012, 8:43 a.m., Lasath Fernando wrote: > > plasmoid/declarative-plugin/conversations-model.cpp, line 46 > > <http://git.reviewboard.kde.org/r/103908/diff/1/?file=49089#file49089line46> > > > > Why did you remove parent? because it's now ref counted as a handler and deleted when the client registrar is deleted. > On Feb. 10, 2012, 8:43 a.m., Lasath Fernando wrote: > > plasmoid/declarative-plugin/telepathy-text-observer.cpp, line 32 > > <http://git.reviewboard.kde.org/r/103908/diff/1/?file=49094#file49094line32> > > > > This isn't parented nor deleted at the end. see above. > On Feb. 10, 2012, 8:43 a.m., Lasath Fernando wrote: > > plasmoid/declarative-plugin/telepathy-text-observer.cpp, line 110 > > <http://git.reviewboard.kde.org/r/103908/diff/1/?file=49094#file49094line110> > > > > I kind of thought up of this in a hurry. Should we try and come up with > > a better handler name? Yes, though weirdly when I did change it it stopped working! which makes no sense - David ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/103908/#review10474 ----------------------------------------------------------- On Feb. 9, 2012, 11:08 p.m., David Edmundson wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/103908/ > ----------------------------------------------------------- > > (Updated Feb. 9, 2012, 11:08 p.m.) > > > Review request for Telepathy. > > > Description > ------- > > I'm afraid this patch is a bit huge, but that's just because I've been > working hard :-D > > In the plasmoid: > Convert plasmoid to a handler from an observer > Support delegate channels (via a nasty hack currently) > Add popout button to delegate to main text UI > Merge the conversationsModel and handler into one class > Fix exposing a load of items to QML for no reason. > Some additional tidying. (and some additional messying :-) ) > > In the textUI: > Always raise the window in the main Text UI handleChannel unless hint > explicitly says otherwise. > Additionally fixes a bug in which reconnecting an account could cause the > tabs to 'randomly' switch. > > Requires a one line patch in the contact list: > > - hints.setHint("org.kde.telepathy","forceRaiseWindow", QVariant(true)); > > + > hints.setHint("org.freedesktop.Telepathy.ChannelRequest","DelegateToPreferredHandler", > QVariant(true)); > > I'll do delegateChannels properly in TpQt at some point, but I need to know > what would happen and we can get this work going in parallel. Also means I > have a nice way to test TpQt. > > > Diffs > ----- > > app/chat-tab.cpp a39526319d90d4c5ddb8e252929f6a0ba3c58640 > app/telepathy-chat-ui.cpp 91ef0e323956c3e376b15843d2f531a277f10a95 > plasmoid/declarative-plugin/channel-delegator.h PRE-CREATION > plasmoid/declarative-plugin/conversation.h > 78fd38dffa7e5e0df230c55440519c05f47f8bf4 > plasmoid/declarative-plugin/conversation.cpp > c2f707a10e3f7715ac1e9a2af3c6d857f1f28f38 > plasmoid/declarative-plugin/conversations-model.h > a4c0f0382f44980445c53cb49df5b367a2ab6146 > plasmoid/declarative-plugin/conversations-model.cpp > 3967bffa9cad05e33e63a6097ef856ed41eeaa50 > plasmoid/declarative-plugin/messages-model.h > fe47a0092deb632e795f644c95224bff599553ed > plasmoid/declarative-plugin/messages-model.cpp > 6cc7c90eae3f1a8ad34e661c2983488ec0f273ac > plasmoid/declarative-plugin/qml-plugins.cpp > 44effaebba2ad04a5a4ea859350de58d7c0d34e5 > plasmoid/declarative-plugin/telepathy-text-observer.h > 6658ee57db72abea2c3ae53407467d64fdd47273 > plasmoid/declarative-plugin/telepathy-text-observer.cpp > 58cf736834fe194a9b9088b4086ad3dcabbe95df > plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml > 07b67ecfb6a731be758b3ed3624b1be56b1e3411 > plasmoid/org.kde.ktp-chatplasmoid/contents/ui/main.qml > 0af180b35cf60074b33b5f4a53547b21e5c1d474 > > Diff: http://git.reviewboard.kde.org/r/103908/diff/diff > > > Testing > ------- > > > Thanks, > > David Edmundson > >
_______________________________________________ KDE-Telepathy mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-telepathy
