build: reanimate the dead
Fix build with ndn-cxx 0.7.1 and ChronoSync 0.5.3
* Adapt to new API
* Upgrade to Qt5
* Several other bugs
Refs: #4563, #4087
Change-Id: Ic55d687caade08f557f9b9ec3e9569bc96798710
diff --git a/src/controller-backend.hpp b/src/controller-backend.hpp
index be2cf25..18b1cd8 100644
--- a/src/controller-backend.hpp
+++ b/src/controller-backend.hpp
@@ -20,10 +20,10 @@
#include "common.hpp"
#include "contact-manager.hpp"
#include "invitation.hpp"
-#include "validator-invitation.hpp"
#include <ndn-cxx/security/key-chain.hpp>
-#include <ndn-cxx/util/in-memory-storage-persistent.hpp>
+#include <ndn-cxx/ims/in-memory-storage-persistent.hpp>
#include <ndn-cxx/security/validator-null.hpp>
+#include <ndn-cxx/face.hpp>
#include <boost/thread.hpp>
#include <mutex>
#endif
@@ -74,11 +74,11 @@
onInvitationRegisterFailed(const Name& prefix, const std::string& failInfo);
void
- onInvitationValidated(const shared_ptr<const Interest>& interest);
+ onInvitationValidated(const Interest& interest);
void
- onInvitationValidationFailed(const shared_ptr<const Interest>& interest,
- std::string failureInfo);
+ onInvitationValidationFailed(const Interest& interest,
+ const ndn::security::ValidationError& failureInfo);
void
onLocalPrefix(const ndn::ConstBufferPtr& data);
@@ -90,7 +90,7 @@
updateLocalPrefix(const Name& localPrefix);
void
- onRequestResponse(const Interest& interest, Data& data);
+ onRequestResponse(const Interest& interest, const Data& data);
void
onRequestTimeout(const Interest& interest, int& resendTimes);
@@ -166,12 +166,12 @@
// Security related;
ndn::KeyChain m_keyChain;
- ValidatorInvitation m_validator;
- ndn::ValidatorNull m_nullValidator;
+ shared_ptr<ndn::security::Validator> m_validator;
+ ndn::security::ValidatorNull m_nullValidator;
// RegisteredPrefixId
- const ndn::RegisteredPrefixId* m_invitationListenerId;
- const ndn::RegisteredPrefixId* m_requestListenerId;
+ shared_ptr<ndn::RegisteredPrefixHandle> m_invitationListenerId;
+ shared_ptr<ndn::RegisteredPrefixHandle> m_requestListenerId;
// ChatRoomList
QStringList m_chatDialogList;
@@ -180,7 +180,7 @@
std::mutex m_resumeMutex;
std::mutex m_nfdConnectionMutex;
- ndn::util::InMemoryStoragePersistent m_ims;
+ ndn::InMemoryStoragePersistent m_ims;
};
} // namespace chronochat