aboutsummaryrefslogtreecommitdiff
path: root/contacts.h
blob: 3bc88119ae01612341c5b2b8f9726a271f9cf2f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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