//Copyright 2020 Siemens Digital Industries Software
//==================================================
//Copyright $2020.
//Siemens Product Lifecycle Management Software Inc.
//All Rights Reserved.
//==================================================
//Copyright 2020 Siemens Digital Industries Software

/*==================================================================================================
File description:
    This file contains the declaration for the Business Object, Lis0ServiceProvidersDynamicLOVDelegate
    Filename:   Lis0ServiceProvidersDynamicLOVDelegate.hxx
    Module:     Lis0lisfmwrk
    @BMIDE autogenerated
==================================================================================================*/

#ifndef LIS0LISFMWRK__LIS0SERVICEPROVIDERSDYNAMICLOVDELEGATE_HXX
#define LIS0LISFMWRK__LIS0SERVICEPROVIDERSDYNAMICLOVDELEGATE_HXX

#include <common/tc_deprecation_macros.h>
#include <Lis0lisfmwrk/Lis0ServiceProvidersDynamicLOV.hxx>

#include <Lis0lisfmwrk/liblis0lisfmwrk_exports.h>

namespace lis0lisfmwrk
{
    class Lis0ServiceProvidersDynamicLOVDelegate;
}
namespace lis0lisfmwrk
{
    class Lis0ServiceProvidersDynamicLOVImpl;
}
namespace lis0lisfmwrk
{
    class Lis0ServiceProvidersDynamicLOV;
}
namespace lis0lisfmwrk
{
    class Lis0ServiceProvidersDynamicLOVGenImpl;
}

namespace lis0lisfmwrk_alias = ::lis0lisfmwrk;


class  LIS0LISFMWRK_API lis0lisfmwrk_alias::Lis0ServiceProvidersDynamicLOVDelegate
{
public:
    //  Method to initialize this Class
    static int initializeClass();

    //  Method to get the Lis0ServiceProvidersDynamicLOVDelegate instance
    static Lis0ServiceProvidersDynamicLOVDelegate&  getInstance();

    //  Method to create the Lis0ServiceProvidersDynamicLOVImpl pointer
    static Lis0ServiceProvidersDynamicLOVImpl*  createImpl( Lis0ServiceProvidersDynamicLOV&  ifObj );

    //  Method to delete the Lis0ServiceProvidersDynamicLOVImpl pointer
    static void deleteImpl( Lis0ServiceProvidersDynamicLOVImpl*  impl );


    ///
    /// Returns List Of Values based on Dynamic LOV definition and user search criteria.
    /// @version Teamcenter 10
    /// @param operationInputTag - Operation Input containing the modified values.
    /// @param propertyName - Name of the selected property.
    /// @param searchString - User entered search string.
    /// @param sortByProp - Property to use for sorting.
    /// @param sortOrder - order for sorting (0=Ascending, 1=Descending).
    /// @param nResults - Number of returned results.
    /// @param results - Returned Values for LOV.
    /// @return - Zero (0) if everything is alright otherwise the error code.
    ///
    int  fnd0askLOVValuesBase(const Lis0ServiceProvidersDynamicLOV &ifObj,  const tag_t operationInputTag, const std::string *propertyName, const std::string *searchString, const char *sortByProp, const int sortOrder, int *nResults, tag_t **results ) const;


    ///
    /// Returns true if the input value is valid for the Dynamic LOV.
    /// @version Teamcenter 10
    /// @param operationInput - Operation Input containing the modified values.
    /// @param propertyName - Name of the selected property.
    /// @param value - Value to validate.
    /// @param verdict - true if value is valid.
    /// @return - Zero (0) if everything is alright otherwise the error code.
    ///
    int  fnd0isValueValidBase(const Lis0ServiceProvidersDynamicLOV &ifObj,  const tag_t operationInput, const std::string *propertyName, const tag_t value, bool *verdict ) const;



protected:
    //  Pointer to the instance
    static Lis0ServiceProvidersDynamicLOVDelegate*  m_pInstance;

    Lis0ServiceProvidersDynamicLOVDelegate();
    virtual ~Lis0ServiceProvidersDynamicLOVDelegate();
    static void setInstance( Lis0ServiceProvidersDynamicLOVDelegate*  instance );


private:
    friend class  ::lis0lisfmwrk::Lis0ServiceProvidersDynamicLOVGenImpl;

};

#include <Lis0lisfmwrk/liblis0lisfmwrk_undef.h>
#endif  //  LIS0LISFMWRK__LIS0SERVICEPROVIDERSDYNAMICLOVDELEGATE_HXX
