Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -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 | |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 11 | #ifndef ADDCONTACTPANEL_H |
| 12 | #define ADDCONTACTPANEL_H |
| 13 | |
| 14 | #include <QDialog> |
| 15 | |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 16 | #ifndef Q_MOC_RUN |
| 17 | #include "endorse-certificate.h" |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame] | 18 | #include "contact-manager.h" |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 19 | #endif |
| 20 | |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 21 | namespace Ui { |
| 22 | class AddContactPanel; |
| 23 | } |
| 24 | |
| 25 | class AddContactPanel : public QDialog |
| 26 | { |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame] | 27 | Q_OBJECT |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 28 | |
| 29 | public: |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame] | 30 | explicit AddContactPanel(ndn::Ptr<ContactManager> contactManager, |
| 31 | QWidget *parent = 0); |
| 32 | |
| 33 | ~AddContactPanel(); |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 34 | |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 35 | private slots: |
| 36 | void |
| 37 | onCancelClicked(); |
| 38 | |
| 39 | void |
| 40 | onSearchClicked(); |
| 41 | |
| 42 | void |
| 43 | onAddClicked(); |
| 44 | |
Yingdi Yu | aa8d769 | 2013-10-18 17:05:02 -0700 | [diff] [blame^] | 45 | void |
| 46 | selfEndorseCertificateFetched(ndn::Ptr<EndorseCertificate> endorseCertificate); |
| 47 | |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 48 | private: |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 49 | Ui::AddContactPanel *ui; |
Yingdi Yu | aa8d769 | 2013-10-18 17:05:02 -0700 | [diff] [blame^] | 50 | ndn::Name m_searchIdentity; |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame] | 51 | ndn::Ptr<ContactManager> m_contactManager; |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | #endif // ADDCONTACTPANEL_H |