#include "settings.h"
#include <jsoncpp/json/writer.h>
-ReportAdapter::ReportAdapter(NetworkManager::Connection& conn): connection(conn)
+namespace agent
+{
+
+ReportAdapter::ReportAdapter(communication::Connection& conn): connection(conn)
{
}
void ReportAdapter::sendReport(const std::string& module, const Json::Value& content) {
LOG_D(TAG, "Got report of type <%s>: %s", module.c_str(), Json::FastWriter().write(content).c_str());
- if (!NetworkManager::Settings::instance().isLocked()) {
+ if (!Settings::instance().isLocked()) {
connection.addReportEvent(module, content);
} else {
LOG_D(TAG, "Device is locked. The report will not be sent.");
}
}
+
+} // namespace agent