/***************************************************************************
 *                          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 IErrorMessagingService
 *   Service for logging/displaying error messages if (once) they occure.
 *--------------------------------------------------------------------------
 * @created: Saturday, February 15, 2003 16:51:34
 */

#if !defined(IErrorMessagingService_h_included)
#define IErrorMessagingService_h_included
//forward declaration of this class might require
namespace services
{ class IErrorMessagingService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IMessagingService.h>


namespace services
{
  
  class IErrorMessagingService : public services::IMessagingService
  {
  public:
    /* Via this operation an error/message/warning (event) can be reported by any
     * other part of zmodeler core. The event will be profiled in either the file or in
     * error window. */
    virtual ZRESULT report(core::eMessageType nKind, ZString strText, bool bSubEvent=false)=0;
    /* indicates end of one report (includes reprts and sub-reports) */
    virtual ZRESULT doneReport(void)=0;
    /* clears error reporting window/file */
    virtual ZRESULT clear(void)=0;
    virtual ZRESULT save(bool bEMail, ZString strTargetName)=0;
  
  };//class IErrorMessagingService
};//services

#endif
