| 
									
										
										
										
											2019-02-01 15:53:07 -05:00
										 |  |  | #ifndef MESSAGEWINDOW_H
 | 
					
						
							|  |  |  | #define MESSAGEWINDOW_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-02 17:06:01 -05:00
										 |  |  | #include <QDialog>
 | 
					
						
							| 
									
										
										
										
											2019-02-07 14:23:46 -05:00
										 |  |  | #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: | 
					
						
							| 
									
										
										
										
											2019-02-16 23:07:27 -05:00
										 |  |  |     void deleteMessage(int id); | 
					
						
							| 
									
										
										
										
											2019-02-02 17:06:01 -05:00
										 |  |  |     void replyMessage(const QString &call); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public slots: | 
					
						
							|  |  |  |     void setCall(const QString &call); | 
					
						
							| 
									
										
										
										
											2019-02-07 14:23:46 -05:00
										 |  |  |     void populateMessages(QList<QPair<int, 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
 |