///
/// HybridVideoPlayerSourceFactorySpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 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 `HybridVideoPlayerSourceSpec` to properly resolve imports.
namespace margelo::nitro::video { class HybridVideoPlayerSourceSpec; }
// Forward declaration of `NativeVideoConfig` to properly resolve imports.
namespace margelo::nitro::video { struct NativeVideoConfig; }

#include <memory>
#include "HybridVideoPlayerSourceSpec.hpp"
#include <string>
#include "NativeVideoConfig.hpp"

namespace margelo::nitro::video {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridVideoPlayerSourceFactorySpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<HybridVideoPlayerSourceSpec> fromUri(const std::string& uri) = 0;
      virtual std::shared_ptr<HybridVideoPlayerSourceSpec> fromVideoConfig(const NativeVideoConfig& config) = 0;

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

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

} // namespace margelo::nitro::video
