blob: e343b15680c7f0fe902f6d7d064efe7dde1f513a [file] [log] [blame]
Yingdi Yu7989eb22013-10-31 17:38:22 -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 CHRONOS_INVITATION_H
12#define CHRONOS_INVITATION_H
13
14
Yingdi Yu76dd8002013-12-24 11:16:32 +080015#include <ndn-cpp/name.hpp>
Yingdi Yu7989eb22013-10-31 17:38:22 -070016
17class ChronosInvitation
18{
19public:
20 ChronosInvitation() {}
21
22 ChronosInvitation(const ndn::Name& interestName);
23
24 ChronosInvitation(const ChronosInvitation& invitation);
25
26 virtual
27 ~ChronosInvitation() {};
28
Yingdi Yu76dd8002013-12-24 11:16:32 +080029 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070030 getInviteeNameSpace() const
31 { return m_inviteeNameSpace; }
32
Yingdi Yu76dd8002013-12-24 11:16:32 +080033 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070034 getChatroom() const
35 { return m_chatroom; }
36
Yingdi Yu76dd8002013-12-24 11:16:32 +080037 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070038 getInviterPrefix() const
39 { return m_inviterPrefix; }
40
Yingdi Yu76dd8002013-12-24 11:16:32 +080041 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070042 getInviterCertificateName() const
43 { return m_inviterCertificateName; }
44
Yingdi Yu76dd8002013-12-24 11:16:32 +080045 const ndn::Blob&
Yingdi Yu7989eb22013-10-31 17:38:22 -070046 getSignatureBits() const
47 { return m_signatureBits; }
48
Yingdi Yu76dd8002013-12-24 11:16:32 +080049 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070050 getInviterNameSpace() const
51 { return m_inviterNameSpace; }
52
Yingdi Yu76dd8002013-12-24 11:16:32 +080053 const ndn::Blob&
Yingdi Yu7989eb22013-10-31 17:38:22 -070054 getSignedBlob() const
55 { return m_signedBlob; }
56
Yingdi Yu76dd8002013-12-24 11:16:32 +080057 const ndn::Name&
Yingdi Yu7989eb22013-10-31 17:38:22 -070058 getInterestName() const
59 { return m_interestName; }
60
61private:
62 ndn::Name m_interestName;
63
64 ndn::Name m_inviteeNameSpace;
65 ndn::Name m_chatroom;
66 ndn::Name m_inviterPrefix;
67 ndn::Name m_inviterCertificateName;
68 ndn::Blob m_signatureBits;
69 ndn::Name m_inviterNameSpace;
70
71 ndn::Blob m_signedBlob;
72};
73
74#endif