system: Rename CzechlightSystem to Firmware
By the time it happened that the czechlight-system YANG model is going
to support authentication and other system-related things. It would be
too much for a single Sysrepo class, so we are creating new ones. To
reflect this change, rename the CzechlightSystem class to Firmware,
because it will manage only the firmware-related stuff.
Change-Id: I49a344d98d42379fd7b231761dd99e8cb726f1a9
diff --git a/src/system/Firmware.h b/src/system/Firmware.h
new file mode 100644
index 0000000..32fce53
--- /dev/null
+++ b/src/system/Firmware.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2021 CESNET, https://photonics.cesnet.cz/
+ *
+ * Written by Tomáš Pecka <tomas.pecka@cesnet.cz>
+ *
+ */
+#pragma once
+
+#include <filesystem>
+#include <sdbus-c++/sdbus-c++.h>
+#include <sysrepo-cpp/Session.hpp>
+#include "system/RAUC.h"
+#include "utils/log-fwd.h"
+
+namespace velia::system {
+
+class Firmware {
+public:
+ Firmware(std::shared_ptr<::sysrepo::Connection> srConn, sdbus::IConnection& dbusConnection);
+
+private:
+ std::shared_ptr<::sysrepo::Connection> m_srConn;
+ std::shared_ptr<::sysrepo::Session> m_srSession;
+ std::shared_ptr<::sysrepo::Subscribe> m_srSubscribe;
+ std::shared_ptr<RAUC> m_rauc;
+ velia::Log m_log;
+};
+}