Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame^] | 1 | /* -*- 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 | |
| 20 | namespace Ui { |
| 21 | class SetAliasDialog; |
| 22 | } |
| 23 | |
| 24 | class SetAliasDialog : public QDialog |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | |
| 28 | public: |
| 29 | explicit SetAliasDialog(ndn::Ptr<ContactManager> contactManager, |
| 30 | QWidget *parent = 0); |
| 31 | ~SetAliasDialog(); |
| 32 | |
| 33 | void |
| 34 | setTargetIdentity(const std::string& name); |
| 35 | |
| 36 | signals: |
| 37 | void |
| 38 | aliasChanged(); |
| 39 | |
| 40 | private slots: |
| 41 | void |
| 42 | onOkClicked(); |
| 43 | |
| 44 | void |
| 45 | onCancelClicked(); |
| 46 | |
| 47 | private: |
| 48 | Ui::SetAliasDialog *ui; |
| 49 | ndn::Ptr<ContactManager> m_contactManager; |
| 50 | std::string m_target; |
| 51 | }; |
| 52 | |
| 53 | #endif // SETALIASDIALOG_H |