Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NFD_MGMT_APP_FACE_HPP |
| 8 | #define NFD_MGMT_APP_FACE_HPP |
| 9 | |
| 10 | #include "common.hpp" |
| 11 | |
Steve DiBenedetto | bdedce9 | 2014-02-02 22:49:39 -0700 | [diff] [blame^] | 12 | #include <ndn-cpp-dev/security/key-chain.hpp> |
| 13 | |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 14 | namespace nfd { |
| 15 | |
Steve DiBenedetto | bdedce9 | 2014-02-02 22:49:39 -0700 | [diff] [blame^] | 16 | typedef function<void(const Name&, const Interest&)> OnInterest; |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 17 | |
| 18 | class AppFace |
| 19 | { |
| 20 | public: |
| 21 | virtual void |
| 22 | setInterestFilter(const Name& filter, |
| 23 | OnInterest onInterest) = 0; |
| 24 | |
| 25 | virtual void |
Steve DiBenedetto | bdedce9 | 2014-02-02 22:49:39 -0700 | [diff] [blame^] | 26 | sign(Data& data); |
| 27 | |
| 28 | virtual void |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 29 | put(const Data& data) = 0; |
| 30 | |
| 31 | virtual |
| 32 | ~AppFace() { } |
Steve DiBenedetto | bdedce9 | 2014-02-02 22:49:39 -0700 | [diff] [blame^] | 33 | |
| 34 | protected: |
| 35 | ndn::KeyChain m_keyChain; |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | } // namespace nfd |
| 39 | |
| 40 | #endif //NFD_MGMT_APP_FACE_HPP |