/***************************************************************************
 *                          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 ITimerService
 *--------------------------------------------------------------------------
 * @created: Monday, September 01, 2003 13:21:15
 */

#if !defined(ITimerService_h_included)
#define ITimerService_h_included
//forward declaration of this class might require
namespace services
{ class ITimerService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IService.h>
#include <core/events/ITimerEventHandler.h>


namespace services
{
  
  class ITimerService : public services::IService
  {
  public:
    virtual ZRESULT addTimer(core::events::eTimerType eType, core::events::ITimerEventHandler* pHandler, DWORD dwInterval, DWORD dwStartInterval, DWORD& dwTimerID)=0;
    virtual ZRESULT changeTimer(DWORD dwTimerID, bool bActive, bool bRemove=false, DWORD nInterval=0)=0;
  
  };//class ITimerService
};//services

#endif
