Review Request: Remove some useless calls

David Edmundson kde at davidedmundson.co.uk
Thu Jun 2 13:30:06 CEST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101488/#review3627
-----------------------------------------------------------

Ship it!


Worth looking through all the other slots in MainWidget, they're a bit scattered.

Also I think it would be worth trying to break MainWindow down into several smaller classes if you have any ideas for how to split that. (maybe not for the first release)

- David


On June 1, 2011, 10:59 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101488/
> -----------------------------------------------------------
> 
> (Updated June 1, 2011, 10:59 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> As suggested by oggis, the account->becomeReady() is useless there --
> 
> <oggis_> void MainWidget::onNewAccountAdded(const Tp::AccountPtr& account)
> <oggis_> { Tp::PendingReady *ready = account->becomeReady();
> <oggis_> why, although you have an account factory with a lot of features including FeatureCore set up for the account manager?
> <oggis_> that means that any account signaled to you using newAccount will have becomeReady with those features already called
> <oggis_> (and finished)
> <oggis_> that's your AccountManager::newAccount handler
> <oggis_> in which you're calling becomeReady(), which means "give me an operation which emits finished() when Account::FeatureCore is ready on the account"
> <oggis_> although by passing Account::FeatureCore in the factory, you already say to the library "prepare FeatureCore for all accounts before signaling them to me in the first place"
> 
> 
> Diffs
> -----
> 
>   main-widget.h 96f228e 
>   main-widget.cpp 4b6c248 
> 
> Diff: http://git.reviewboard.kde.org/r/101488/diff
> 
> 
> Testing
> -------
> 
> Everything works.
> 
> 
> Thanks,
> 
> Martin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110602/da1f258b/attachment.htm 


More information about the KDE-Telepathy mailing list