Yingdi Yu | 95dbc71 | 2016-03-21 09:56:57 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (c) 2013-2014, Regents of the University of California, |
| 4 | * |
| 5 | * This file is part of NFD Control Center. See AUTHORS.md for complete list of NFD |
| 6 | * authors and contributors. |
| 7 | * |
| 8 | * NFD Control Center is free software: you can redistribute it and/or modify it under the |
| 9 | * terms of the GNU General Public License as published by the Free Software Foundation, |
| 10 | * either version 3 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * NFD Control Center is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 14 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along with NFD |
| 17 | * Control Center, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef NDN_NCC_CERT_TREE_MODEL_HPP |
| 21 | #define NDN_NCC_CERT_TREE_MODEL_HPP |
| 22 | |
| 23 | #include <QStandardItemModel> |
| 24 | |
| 25 | namespace ndn { |
| 26 | namespace ncc { |
| 27 | |
| 28 | class CertTreeModel : public QStandardItemModel |
| 29 | { |
| 30 | Q_OBJECT |
| 31 | |
| 32 | public: |
| 33 | explicit |
| 34 | CertTreeModel(int row, int column, QObject* parent = 0); |
| 35 | |
| 36 | QVariant |
| 37 | data(const QModelIndex& index, int role) const Q_DECL_OVERRIDE; |
| 38 | }; |
| 39 | |
| 40 | } // namespace ncc |
| 41 | } // namespace ndn |
| 42 | |
| 43 | #endif // NDN_NCC_CERT_TREE_MODEL_HPP |