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.
45 lines
859 B
45 lines
859 B
#ifndef CHATWINDOW_H
|
|
#define CHATWINDOW_H
|
|
|
|
#include <QtGlobal>
|
|
#include <QResource>
|
|
#include <QApplication>
|
|
#include <QScreen>
|
|
#include <QtWidgets/QMenu>
|
|
#include <QMainWindow>
|
|
#include <QWebChannel>
|
|
#include <QObject>
|
|
#include <QtCore>
|
|
#include <QtGui>
|
|
#include <QFileInfo>
|
|
|
|
#include <iostream>
|
|
|
|
#include "conversations.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;
|
|
|
|
Q_INVOKABLE QString loltest() {
|
|
QString aosidga = QString("loltest");
|
|
return aosidga;
|
|
}
|
|
|
|
private:
|
|
Conversations *m_ctx;
|
|
QWebChannel *m_webChannel;
|
|
static ChatWindow *pChatWindow;
|
|
void closeEvent(QCloseEvent *event) override;
|
|
};
|
|
|
|
#endif |