blob: 777b2c296ea59993fbb880064fdc60ec6c864d93 [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 Yu348f5ea2014-03-01 14:47:25 -080017#include <ndn-cpp-dev/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 Yu348f5ea2014-03-01 14:47:25 -080029 explicit
30 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
45 void
46 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