2019-02-01 15:53:07 -05:00
|
|
|
#ifndef MESSAGEWINDOW_H
|
|
|
|
#define MESSAGEWINDOW_H
|
|
|
|
|
2019-02-02 17:06:01 -05:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QItemSelection>
|
|
|
|
|
|
|
|
#include "Message.h"
|
2019-02-01 15:53:07 -05:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MessageWindow;
|
|
|
|
}
|
|
|
|
|
2019-02-02 17:06:01 -05:00
|
|
|
class MessageWindow : public QDialog
|
2019-02-01 15:53:07 -05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MessageWindow(QWidget *parent = 0);
|
|
|
|
~MessageWindow();
|
|
|
|
|
2019-02-02 17:06:01 -05:00
|
|
|
signals:
|
|
|
|
void replyMessage(const QString &call);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setCall(const QString &call);
|
|
|
|
void populateMessages(QList<Message> msgs);
|
2019-02-07 12:19:07 -05:00
|
|
|
QString prepareReplyMessage(QString path, QString text);
|
2019-02-02 17:06:01 -05:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_messageTableWidget_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/);
|
|
|
|
void on_replyPushButton_clicked();
|
|
|
|
|
2019-02-01 15:53:07 -05:00
|
|
|
private:
|
|
|
|
Ui::MessageWindow *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MESSAGEWINDOW_H
|