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 | #include "addcontactpanel.h" |
| 12 | #include "ui_addcontactpanel.h" |
| 13 | |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame^] | 14 | AddContactPanel::AddContactPanel(ndn::Ptr<ContactManager> contactManager, |
| 15 | QWidget *parent) |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 16 | : QDialog(parent) |
| 17 | , ui(new Ui::AddContactPanel) |
Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -0700 | [diff] [blame^] | 18 | , m_contactManager(contactManager) |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 19 | { |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 20 | ui->setupUi(this); |
| 21 | |
| 22 | connect(ui->cancelButton, SIGNAL(clicked()), |
| 23 | this, SLOT(onCancelClicked())); |
| 24 | connect(ui->searchButton, SIGNAL(clicked()), |
| 25 | this, SLOT(onSearchClicked())); |
Yingdi Yu | a489875 | 2013-10-15 20:31:37 -0700 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | AddContactPanel::~AddContactPanel() |
| 29 | { |
| 30 | delete ui; |
| 31 | } |
Yingdi Yu | d59b593 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 32 | |
| 33 | void |
| 34 | AddContactPanel::onCancelClicked() |
| 35 | { this->close(); } |
| 36 | |
| 37 | void |
| 38 | AddContactPanel::onSearchClicked() |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | void |
| 43 | AddContactPanel::onAddClicked() |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | #if WAF |
| 48 | #include "addcontactpanel.moc" |
| 49 | #include "addcontactpanel.cpp.moc" |
| 50 | #endif |