js8call/messagewindow.h

40 lines
811 B
C
Raw Normal View History

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 <QPair>
2019-02-02 17:06:01 -05:00
#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 deleteMessage(int id);
2019-02-02 17:06:01 -05:00
void replyMessage(const QString &call);
public slots:
void setCall(const QString &call);
void populateMessages(QList<QPair<int, Message>> msgs);
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