Files
RRJServer/InstructorsAndTrainees/messanger/tabdialogmessenger.h

30 lines
705 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef TABDIALOGMESSENGER_H
#define TABDIALOGMESSENGER_H
#include <QListWidget>
//Закладка ведения диалога с одним клиентом
//TODO сделать идентификацию по ID
class TabDialogMessenger : public QListWidget
{
Q_OBJECT
public:
TabDialogMessenger(QString userLogin, QString userId, QWidget *parent = nullptr);
~TabDialogMessenger();
QString getUserLogin() {return login;};
QString getUserId() {return userId;}
void addMsgWidgetLocal(QString text, QString timeStr = "");
void addMsgWidgetRemote(QString text, QString timeStr = "");
private:
QString login;
QString userId;
};
#endif // TABDIALOGMESSENGER_H