bug+codestyle: Fix compile bugs and adjust code style
Change-Id: I008bb538441c099fa25b8b967fbf23ffce13a220
diff --git a/src/set-alias-dialog.hpp b/src/set-alias-dialog.hpp
new file mode 100644
index 0000000..dc43de6
--- /dev/null
+++ b/src/set-alias-dialog.hpp
@@ -0,0 +1,57 @@
+/* -*- 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_SET_ALIAS_DIALOG_HPP
+#define CHRONOS_SET_ALIAS_DIALOG_HPP
+
+#include <QDialog>
+
+#ifndef Q_MOC_RUN
+#include <ndn-cxx/name.hpp>
+#endif
+
+namespace Ui {
+class SetAliasDialog;
+}
+
+namespace chronos {
+
+class SetAliasDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit
+ SetAliasDialog(QWidget* parent = 0);
+
+ ~SetAliasDialog();
+
+ void
+ setTargetIdentity(const QString& targetIdentity, const QString& alias);
+
+signals:
+ void
+ aliasChanged(const QString& identity, const QString& alias);
+
+private slots:
+ void
+ onOkClicked();
+
+ void
+ onCancelClicked();
+
+private:
+ Ui::SetAliasDialog* ui;
+ QString m_targetIdentity;
+};
+
+} // namespace chronos
+
+#endif // CHRONOS_SET_ALIAS_DIALOG_HPP