bug+codestyle: Fix compile bugs and adjust code style

Change-Id: I008bb538441c099fa25b8b967fbf23ffce13a220
diff --git a/src/start-chat-dialog.hpp b/src/start-chat-dialog.hpp
new file mode 100644
index 0000000..be7eafe
--- /dev/null
+++ b/src/start-chat-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: Yingdi Yu <yingdi@cs.ucla.edu>
+ */
+
+#ifndef CHRONOS_START_CHAT_DIALOG_HPP
+#define CHRONOS_START_CHAT_DIALOG_HPP
+
+#include <QDialog>
+
+#ifndef Q_MOC_RUN
+#include <string>
+#endif
+
+namespace Ui {
+class StartChatDialog;
+}
+
+namespace chronos {
+
+class StartChatDialog : public QDialog
+{
+  Q_OBJECT
+
+public:
+  explicit StartChatDialog(QWidget* parent = 0);
+
+  ~StartChatDialog();
+
+  void
+  setChatroom(const std::string& chatroom);
+
+signals:
+  void
+  startChatroom(const QString& chatroomName, bool secured);
+
+private slots:
+  void
+  onOkClicked();
+
+  void
+  onCancelClicked();
+
+private:
+  Ui::StartChatDialog* ui;
+};
+
+} // namespace chronos
+
+#endif // CHRONOS_START_CHAT_DIALOG_HPP