blob: ddf8489d3a4df330f2074d63592f1355746e1d4e [file] [log] [blame]
Yingdi Yu0b82a4e2013-10-18 11:29:25 -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 LINKNDN_CONTACT_MANAGER_H
12#define LINKNDN_CONTACT_MANAGER_H
13
14#include "contact-storage.h"
15#include "ndn.cxx/wrapper/wrapper.h"
16
17class ContactManager
18{
19public:
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
32private:
33 ndn::Ptr<ndn::security::Keychain>
34 setKeychain();
35
36private:
37 ndn::Ptr<ContactStorage> m_contactStorage;
38 ndn::Ptr<ndn::Wrapper> m_wrapper;
39};
40
41#endif