]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.h
Move projects back into subfolder.
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / tariff_helper.h
diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.h b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.h
new file mode 100644 (file)
index 0000000..9f68a74
--- /dev/null
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <xmlrpc-c/base.hpp>
+
+namespace STG
+{
+
+struct TariffData;
+
+}
+
+class TARIFF_HELPER
+{
+public:
+    explicit TARIFF_HELPER(STG::TariffData & td)
+        : data(td)
+    {}
+
+    void GetTariffInfo(xmlrpc_c::value * info) const;
+    bool SetTariffInfo(const xmlrpc_c::value & info);
+private:
+    STG::TariffData & data;
+};