blob: 7f660db28d8a54522daa7184401ad36b3f113293 [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
15#include <ndn.cxx/fields/name.h>
16
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
29 inline const ndn::Name&
30 getInviteeNameSpace() const
31 { return m_inviteeNameSpace; }
32
33 inline const ndn::Name&
34 getChatroom() const
35 { return m_chatroom; }
36
37 inline const ndn::Name&
38 getInviterPrefix() const
39 { return m_inviterPrefix; }
40
41 inline const ndn::Name&
42 getInviterCertificateName() const
43 { return m_inviterCertificateName; }
44
45 inline const ndn::Blob&
46 getSignatureBits() const
47 { return m_signatureBits; }
48
49 inline const ndn::Name&
50 getInviterNameSpace() const
51 { return m_inviterNameSpace; }
52
53 inline const ndn::Blob&
54 getSignedBlob() const
55 { return m_signedBlob; }
56
57 inline const ndn::Name&
58 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