/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IPropertiesSource
 *   Source of properties. The source is registered in service and queried for the
 *   set of properties each time proeprty dialog displays.
 *--------------------------------------------------------------------------
 * @created: Wednesday, October 29, 2003 12:44:41
 */

#if !defined(IPropertiesSource_h_included)
#define IPropertiesSource_h_included
//forward declaration of this class might require
namespace services
{ class IPropertiesSource; class CPropertiesSourceCol; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <core/IProcParams.h>
#include <services/IPropertiesService.h>


namespace services
{
  
  class IPropertiesSource : public ZUnknown
  {
  public:
    virtual ZRESULT applyProperties(core::IProcParams* pParams, core::eLevel level, scene::tNodeSeq& seqNodes, services::IPropertiesService* pService)=0;
    virtual ZRESULT queryProperties(core::IProcParams* pParams, core::eLevel level, scene::tNodeSeq& seqNodes, services::IPropertiesService* pService)=0;
  
  };//class IPropertiesSource
  
  //
  // collection template
  //
  class CPropertiesSourceCol : public ZUnknown,
      public ZIntrCollection<IPropertiesSource>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CPropertiesSourceCol)
  };//class CPropertiesSourceCol
};//services

#endif
