///
/// HybridCameraDepthFrameOutputSpec.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 `HybridNativeThreadSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridNativeThreadSpec; }
// Forward declaration of `HybridDepthSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridDepthSpec; }
// Forward declaration of `FrameDroppedReason` to properly resolve imports.
namespace margelo::nitro::camera { enum class FrameDroppedReason; }
// Forward declaration of `HybridCameraOutputSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridCameraOutputSpec; }

#include <memory>
#include "HybridNativeThreadSpec.hpp"
#include "HybridDepthSpec.hpp"
#include <functional>
#include <optional>
#include "FrameDroppedReason.hpp"
#include "HybridCameraOutputSpec.hpp"

namespace margelo::nitro::camera {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridCameraDepthFrameOutputSpec() override = default;

    public:
      // Properties
      virtual std::shared_ptr<HybridNativeThreadSpec> getThread() = 0;

    public:
      // Methods
      virtual void setOnDepthFrameCallback(const std::optional<std::function<bool(const std::shared_ptr<HybridDepthSpec>& /* depth */)>>& onDepthFrame) = 0;
      virtual void setOnDepthFrameDroppedCallback(const std::optional<std::function<void(FrameDroppedReason /* reason */)>>& onDepthFrameDropped) = 0;

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

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

} // namespace margelo::nitro::camera
