/***************************************************************************
 *                          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 IEventHandler
 *   Tells whether event handlers supports specified event
 *--------------------------------------------------------------------------
 * @created: Sunday, October 06, 2002 20:48:13
 */

#if !defined(IEventHandler_h_included)
#define IEventHandler_h_included
//forward declaration of this class might require
namespace core
{ namespace events
  { class IEventHandler; class CEventHandlerCol; }; };
#include <zmodeler.h>
#include <core/events/eventsTypes.h>

namespace core
{
  namespace events
  {
    
    class IEventHandler : public ZUnknown
    {
    public:
      virtual ZRESULT supportEvent(core::events::tEvent nEvent) const=0;
    
    };//class IEventHandler
    
    //
    // collection template
    //
    class CEventHandlerCol : public ZUnknown,
        public ZIntrCollection<IEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CEventHandlerCol)
    };//class CEventHandlerCol
  };//events
};//core

#endif
