#ifndef CONTACTS_H #define CONTACTS_H #include "ui_contacts.h" #include "client.h" #include #include #include #include class Contacts : public QDialog { Q_OBJECT public: Contacts(const QList &clients, QWidget *parent = nullptr); void add(const QString &own, const QString &other); private: Ui_contacts ui; enum Role {From = Qt::UserRole, To}; Q_SIGNALS: void startChat(QString from, QString to); }; #endif