29 lines
492 B
C++
29 lines
492 B
C++
#ifndef CONTACTS_H
|
|
#define CONTACTS_H
|
|
|
|
#include "ui_contacts.h"
|
|
#include "client.h"
|
|
#include <QDialog>
|
|
#include <QHash>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
|
|
class Contacts : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Contacts(const QList<Client *> &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
|