aboutsummaryrefslogtreecommitdiff
path: root/conversation.h
diff options
context:
space:
mode:
Diffstat (limited to 'conversation.h')
-rw-r--r--conversation.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/conversation.h b/conversation.h
new file mode 100644
index 0000000..19bf32c
--- /dev/null
+++ b/conversation.h
@@ -0,0 +1,23 @@
+#ifndef CONVERSATION_H
+#define CONVERSATION_H
+
+#include "ui_conversation.h"
+#include <QDateTime>
+#include <QListWidget>
+#include <QListWidgetItem>
+#include <QWidget>
+
+class Conversation : public QListWidgetItem, public QWidget
+{
+public:
+ Conversation(const QString &from, const QString &to,
+ QListWidget *list, const QString &msg = QString(),
+ const QDateTime &dt = QDateTime());
+ void setText(const QString &msg);
+ const QString from, to;
+
+private:
+ Ui_conversation ui;
+};
+
+#endif