major change: Add security support & Adjust GUI
Change-Id: I7abef37169dec1ef4b68e760dee5214c147c1915
diff --git a/src/invite-list-dialog.h b/src/invite-list-dialog.h
new file mode 100644
index 0000000..f5144fc
--- /dev/null
+++ b/src/invite-list-dialog.h
@@ -0,0 +1,62 @@
+/* -*- 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: Yingdi Yu <yingdi@cs.ucla.edu>
+ */
+
+#ifndef INVITE_LIST_DIALOG_H
+#define INVITE_LIST_DIALOG_H
+
+#include <QDialog>
+#include <QStringListModel>
+
+#ifndef Q_MOC_RUN
+#endif
+
+namespace Ui {
+class InviteListDialog;
+}
+
+class InviteListDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit
+ InviteListDialog(QWidget *parent = 0);
+
+ ~InviteListDialog();
+
+ void
+ setInviteLabel(std::string label);
+
+signals:
+ void
+ sendInvitation(const QString&);
+
+public slots:
+ void
+ onContactAliasListReady(const QStringList& aliasList);
+
+ void
+ onContactIdListReady(const QStringList& idList);
+
+private slots:
+ void
+ onInviteClicked();
+
+ void
+ onCancelClicked();
+
+private:
+ Ui::InviteListDialog *ui;
+ QStringListModel* m_contactListModel;
+ QStringList m_contactAliasList;
+ QStringList m_contactIdList;
+};
+
+#endif // INVITE_LIST_DIALOG_H