You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
854 B
46 lines
854 B
#ifndef CHATWINDOW_H
|
|
#define CHATWINDOW_H
|
|
|
|
#include <QtGlobal>
|
|
#include <QResource>
|
|
#include <QApplication>
|
|
#include <QScreen>
|
|
#include <QtWidgets/QMenu>
|
|
#include <QMainWindow>
|
|
#include <QObject>
|
|
#include <QtCore>
|
|
#include <QtGui>
|
|
#include <QFileInfo>
|
|
|
|
#include <iostream>
|
|
|
|
#include "conversations.h"
|
|
#include "lib/config.h"
|
|
#include "models/ChatModel.h"
|
|
|
|
namespace Ui {
|
|
class ChatWindow;
|
|
}
|
|
|
|
class ChatWindow : public QMainWindow {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChatWindow(Conversations *ctx, QWidget *parent = nullptr);
|
|
static Conversations *getContext();
|
|
~ChatWindow() override;
|
|
Ui::ChatWindow *ui;
|
|
|
|
private slots:
|
|
void onGatherMessage();
|
|
|
|
signals:
|
|
void sendMessage(const QString &message);
|
|
|
|
private:
|
|
Conversations *m_ctx;
|
|
static ChatWindow *pChatWindow;
|
|
void closeEvent(QCloseEvent *event) override;
|
|
};
|
|
|
|
#endif |