///
/// HybridNativeCNContactSpec.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 `ContactUINameKey` to properly resolve imports.
namespace margelo::nitro::one { enum class ContactUINameKey; }
// Forward declaration of `HybridNativeCNContactSpec` to properly resolve imports.
namespace margelo::nitro::one { class HybridNativeCNContactSpec; }

#include <string>
#include "ContactUINameKey.hpp"
#include <memory>
#include "HybridNativeCNContactSpec.hpp"

namespace margelo::nitro::one {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridNativeCNContactSpec() override = default;

    public:
      // Properties
      virtual std::string getIdentifier() = 0;

    public:
      // Methods
      virtual std::string getContactName(ContactUINameKey key) = 0;
      virtual bool isKeyAvailable(const std::string& key) = 0;
      virtual std::shared_ptr<HybridNativeCNContactSpec> mutableCopy() = 0;
      virtual void setName(ContactUINameKey key, const std::string& value) = 0;

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

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

} // namespace margelo::nitro::one
