Yingdi Yu | 0b82a4e | 2013-10-18 11:29:25 -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 | |
| 11 | #ifndef LINKNDN_CONTACT_MANAGER_H |
| 12 | #define LINKNDN_CONTACT_MANAGER_H |
| 13 | |
| 14 | #include "contact-storage.h" |
| 15 | #include "ndn.cxx/wrapper/wrapper.h" |
| 16 | |
| 17 | class ContactManager |
| 18 | { |
| 19 | public: |
| 20 | ContactManager(ndn::Ptr<ContactStorage> contactStorage); |
| 21 | |
| 22 | ~ContactManager(); |
| 23 | |
| 24 | inline ndn::Ptr<ContactStorage> |
| 25 | getContactStorage() |
| 26 | { return m_contactStorage; } |
| 27 | |
| 28 | inline ndn::Ptr<ndn::Wrapper> |
| 29 | getWrapper() |
| 30 | { return m_wrapper; } |
| 31 | |
| 32 | private: |
| 33 | ndn::Ptr<ndn::security::Keychain> |
| 34 | setKeychain(); |
| 35 | |
| 36 | private: |
| 37 | ndn::Ptr<ContactStorage> m_contactStorage; |
| 38 | ndn::Ptr<ndn::Wrapper> m_wrapper; |
| 39 | }; |
| 40 | |
| 41 | #endif |