bug+codestyle: Fix compile bugs and adjust code style

Change-Id: I008bb538441c099fa25b8b967fbf23ffce13a220
diff --git a/src/invitation-dialog.hpp b/src/invitation-dialog.hpp
new file mode 100644
index 0000000..0dab90f
--- /dev/null
+++ b/src/invitation-dialog.hpp
@@ -0,0 +1,60 @@
+/* -*- 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 CHRONOS_INVITATION_DIALOG_HPP
+#define CHRONOS_INVITATION_DIALOG_HPP
+
+#include <QDialog>
+
+#ifndef Q_MOC_RUN
+#include "common.hpp"
+#endif
+
+namespace Ui {
+class InvitationDialog;
+}
+
+namespace chronos{
+
+class InvitationDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+  explicit
+  InvitationDialog(QWidget* parent = 0);
+
+  ~InvitationDialog();
+
+  void
+  setInvitation(const std::string& alias,
+                const std::string& chatroom,
+                const ndn::Name& invitationInterest);
+
+signals:
+  void
+  invitationResponded(const ndn::Name& invitationName, bool accepted);
+
+private slots:
+  void
+  onOkClicked();
+
+  void
+  onCancelClicked();
+
+
+private:
+  Ui::InvitationDialog* ui;
+  ndn::Name m_invitationInterest;
+};
+
+} // namespace chronos
+
+#endif // CHRONOS_INVITATION_DIALOG_HPP