mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-29 20:05:38 +03:00
refact1
This commit is contained in:
29
LibInstructorsAndTrainees/messanger/tabdialogmessenger.h
Normal file
29
LibInstructorsAndTrainees/messanger/tabdialogmessenger.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef TABDIALOGMESSENGER_H
|
||||
#define TABDIALOGMESSENGER_H
|
||||
|
||||
#include <QListWidget>
|
||||
#include "msgwidget.h"
|
||||
#include "user.h"
|
||||
|
||||
class OneDialogMessenger : public QListWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
OneDialogMessenger(User userLocalGUI, User userRemote, QWidget *parent = nullptr);
|
||||
~OneDialogMessenger();
|
||||
|
||||
int getUserRemoteId() {return userRemote.getID();}
|
||||
|
||||
void addMsgWidgetLocal(QString text, QString timeStr = "", QString name = "");
|
||||
void addMsgWidgetRemote(QString text, QString timeStr = "", QString name = "");
|
||||
|
||||
private:
|
||||
void addMsgWidget(QString text, QString timeStr, MsgWidget::DirectionMsg direction, QString name = "");
|
||||
|
||||
private:
|
||||
User userLocalGUI;
|
||||
User userRemote;
|
||||
};
|
||||
|
||||
#endif // TABDIALOGMESSENGER_H
|
||||
Reference in New Issue
Block a user