///
/// HybridNativeBleNitroFactorySpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `HybridNativeBleNitroSpec` to properly resolve imports.
namespace margelo::nitro::co::zyke::ble { class HybridNativeBleNitroSpec; }
// Forward declaration of `BLEDevice` to properly resolve imports.
namespace margelo::nitro::co::zyke::ble { struct BLEDevice; }

#include <memory>
#include "HybridNativeBleNitroSpec.hpp"
#include <string>
#include <optional>
#include "BLEDevice.hpp"
#include <vector>
#include <functional>

namespace margelo::nitro::co::zyke::ble {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `NativeBleNitroFactory`
   * Inherit this class to create instances of `HybridNativeBleNitroFactorySpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridNativeBleNitroFactory: public HybridNativeBleNitroFactorySpec {
   * public:
   *   HybridNativeBleNitroFactory(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridNativeBleNitroFactorySpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridNativeBleNitroFactorySpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridNativeBleNitroFactorySpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<HybridNativeBleNitroSpec> create(const std::optional<std::string>& nativeRestoreStateIdentifier, const std::optional<std::function<void(const std::vector<BLEDevice>& /* peripherals */)>>& restoreStateCallback) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "NativeBleNitroFactory";
  };

} // namespace margelo::nitro::co::zyke::ble
