Add chatroom discovery UI
Change-Id: I94ee73ce9b4bcc63e7ecbdbf2f4844b6b57615a3
diff --git a/src/chatroom-discovery-view-dialog.hpp b/src/chatroom-discovery-view-dialog.hpp
new file mode 100644
index 0000000..d074e71
--- /dev/null
+++ b/src/chatroom-discovery-view-dialog.hpp
@@ -0,0 +1,55 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/*
+ * Copyright (c) 2013, Regents of the University of California
+ * Yingdi Yu
+ *
+ * BSD license, See the LICENSE file for more information
+ *
+ * Author: Mengjin Yan <jane.yan0129@gmail.com>
+ * Author: Yingdi Yu <yingdi@cs.ucla.edu>
+ */
+
+#ifndef CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP
+#define CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP
+
+#include <QDialog>
+
+#ifndef Q_MOC_RUN
+#include "common.hpp"
+#endif
+
+namespace Ui {
+class ChatroomDiscoveryViewDialog;
+}
+
+namespace chronos {
+
+class ChatroomDiscoveryViewDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit ChatroomDiscoveryViewDialog(QWidget* parent = 0);
+ ~ChatroomDiscoveryViewDialog();
+
+ void
+ setChatroomName(QString chatroomName);
+
+ void
+ setChatroomTrustModel(QString chatroomTrustModel);
+
+ void
+ setChatroomParticipants(const std::vector<ndn::Name>& chatroomParticipants);
+
+
+private slots:
+ void
+ onCloseButtonClicked();
+
+private:
+ Ui::ChatroomDiscoveryViewDialog* ui;
+};
+
+} //namespace chronos
+
+#endif // CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP