blob: 196a263d5096609dc1c8a5974c454b3e5715d2f2 [file] [log] [blame]
Yingdi Yu0a6b6c52013-10-15 17:54:00 -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 PROFILEEDITOR_H
12#define PROFILEEDITOR_H
13
14#include <QDialog>
15#include <QtSql/QSqlTableModel>
16
17#ifndef Q_MOC_RUN
Yingdi Yuaa8d7692013-10-18 17:05:02 -070018#include "contact-manager.h"
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070019#endif
20
21namespace Ui {
22class ProfileEditor;
23}
24
25class ProfileEditor : public QDialog
26{
27 Q_OBJECT
28
29public:
Yingdi Yuaa8d7692013-10-18 17:05:02 -070030 explicit ProfileEditor(ndn::Ptr<ContactManager> contactManager,
Yingdi Yuc26af3c2013-10-17 17:03:46 -070031 QWidget *parent = 0);
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070032
33 ~ProfileEditor();
34
35private slots:
36 void
37 onAddClicked();
38
39 void
40 onDeleteClicked();
41
42 void
43 onOkClicked();
44
Yingdi Yuc26af3c2013-10-17 17:03:46 -070045 void
46 onGetClicked();
47
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070048
49private:
50 Ui::ProfileEditor *ui;
51 QSqlTableModel* m_tableModel;
Yingdi Yuaa8d7692013-10-18 17:05:02 -070052 ndn::Ptr<ContactManager> m_contactManager;
Yingdi Yuc26af3c2013-10-17 17:03:46 -070053 ndn::Name m_defaultIdentity;
54 ndn::Name m_currentIdentity;
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070055};
56
57#endif // PROFILEEDITOR_H