blob: c04ea554b986e82bff815af14e80f92a4c58e1a1 [file] [log] [blame]
Yingdi Yu2ac40fb2013-10-21 13:38:38 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
11#ifndef SETALIASDIALOG_H
12#define SETALIASDIALOG_H
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
Yingdi Yufa0b6a02014-04-30 14:26:42 -070017#include <ndn-cxx/name.hpp>
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070018#endif
19
20namespace Ui {
21class SetAliasDialog;
22}
23
24class SetAliasDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
Yingdi Yufa0b6a02014-04-30 14:26:42 -070029 explicit
Yingdi Yu348f5ea2014-03-01 14:47:25 -080030 SetAliasDialog(QWidget *parent = 0);
31
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070032 ~SetAliasDialog();
33
34 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080035 setTargetIdentity(const QString& targetIdentity, const QString& alias);
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070036
37signals:
38 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080039 aliasChanged(const QString& identity, const QString& alias);
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070040
41private slots:
42 void
43 onOkClicked();
44
Yingdi Yufa0b6a02014-04-30 14:26:42 -070045 void
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070046 onCancelClicked();
47
48private:
49 Ui::SetAliasDialog *ui;
Yingdi Yu348f5ea2014-03-01 14:47:25 -080050 QString m_targetIdentity;
Yingdi Yu2ac40fb2013-10-21 13:38:38 -070051};
52
53#endif // SETALIASDIALOG_H