blob: fd3bcef7bc5daf3826160be338c527f88c09e994 [file] [log] [blame]
Steve DiBenedetto042bfe92014-01-30 15:05:08 -07001/* -*- 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_MANAGER_BASE_HPP
8#define NFD_MGMT_MANAGER_BASE_HPP
9
10#include "common.hpp"
Steve DiBenedetto43cd0372014-02-01 17:05:07 -070011#include <ndn-cpp-dev/security/key-chain.hpp>
Steve DiBenedetto042bfe92014-01-30 15:05:08 -070012
13namespace nfd {
14
15class AppFace;
16
17class ManagerBase
18{
19public:
20 ManagerBase(shared_ptr<AppFace> face);
21
22 virtual
23 ~ManagerBase();
24
25protected:
26
Steve DiBenedetto3970c892014-01-31 23:31:13 -070027 void
Steve DiBenedetto042bfe92014-01-30 15:05:08 -070028 sendResponse(const Name& name,
29 uint32_t code,
30 const std::string& text);
31
32protected:
33 shared_ptr<AppFace> m_face;
Steve DiBenedetto43cd0372014-02-01 17:05:07 -070034 ndn::KeyChain m_keyChain;
Steve DiBenedetto042bfe92014-01-30 15:05:08 -070035};
36
37
Steve DiBenedetto80ddc212014-02-01 22:23:56 -070038} // namespace nfd
Steve DiBenedetto042bfe92014-01-30 15:05:08 -070039
40#endif // NFD_MGMT_MANAGER_BASE_HPP
41