blob: 1e24963979797bb0b33943ce24c0d686f556ac2b [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
17#include "contact-manager.h"
18#endif
19
20namespace Ui {
21class SetAliasDialog;
22}
23
24class SetAliasDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit SetAliasDialog(ndn::Ptr<ContactManager> contactManager,
30 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;
49 ndn::Ptr<ContactManager> m_contactManager;
50 std::string m_target;
51};
52
53#endif // SETALIASDIALOG_H