[telepathy] [Bug 246232] Contact chooser should allow multiple contacts choice

David Edmundson kde at davidedmundson.co.uk
Wed Apr 17 00:18:39 BST 2013


https://bugs.kde.org/show_bug.cgi?id=246232

--- Comment #5 from David Edmundson <kde at davidedmundson.co.uk> ---
Stupid bugzilla (this is all meant to be one comment)

proposed new interface:

public:
    void setMultipleSelection(bool);
    QPair<Tp::AccountPtr, Tp::ContactPtr> selectedContact() const;
    QList<QPair<Tp::AccountPtr, Tp::ContactPtr> >selectedContacts() const;

Q_SIGNALS:
    void selectionChanged(QList<QPair<Tp::AccountPtr, Tp::ContactPtr> >);


then update all code to use it?
Having a mix of selectedAccount, selectedContact and lists of pairs would be
rubbish.
...and I don't really like using QPair.

Maybe we could instead do:

QList<Tp::ContactPtr> selectedContacts();
Tp::AccountPtr accountForContact(Tp::ContactPtr);

instead? Seems neater.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list