blob: 4de2255cd2e8abed9a5b20f54fad259ab670b40c [file] [log] [blame]
Yingdi Yu79c25a22013-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
17#include "contact-manager.h"
18#endif
19
20namespace Ui {
21class SetAliasDialog;
22}
23
24class SetAliasDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
Yingdi Yu64206112013-12-24 11:16:32 +080029 explicit SetAliasDialog(ndn::ptr_lib::shared_ptr<ContactManager> contactManager,
Yingdi Yu79c25a22013-10-21 13:38:38 -070030 QWidget *parent = 0);
31 ~SetAliasDialog();
32
33 void
34 setTargetIdentity(const std::string& name);
35
36signals:
37 void
38 aliasChanged();
39
40private slots:
41 void
42 onOkClicked();
43
44 void
45 onCancelClicked();
46
47private:
48 Ui::SetAliasDialog *ui;
Yingdi Yu64206112013-12-24 11:16:32 +080049 ndn::ptr_lib::shared_ptr<ContactManager> m_contactManager;
Yingdi Yu79c25a22013-10-21 13:38:38 -070050 std::string m_target;
51};
52
53#endif // SETALIASDIALOG_H