/***************************************************************************
 *                          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 IExtensionForImportExportService
 *   !!!! DO NOT INCLUDE THIS INTERFACE IN SDK !!!!
 *--------------------------------------------------------------------------
 * @created: Sunday, January 28, 2007 16:33:06
 */

#if !defined(IExtensionForImportExportService_h_included)
#define IExtensionForImportExportService_h_included
//forward declaration of this class might require
namespace secure
{ class IExtensionForImportExportService; };
#include <zmodeler.h>

#include <core/io/IImportExportFilter.h>
#include <secure/IFilterWrapper.h>


namespace secure
{
  
  class IExtensionForImportExportService : public ZUnknown
  {
  public:
    virtual ZRESULT enumFilters(core::io::CImportExportFilterCol** ppCol)=0;
    /* Provides filter that supports specified extensions. 
     * Returns DWORD-associated token with this filter. If this
     * filter refuses to import a file, you can request for the "next"
     * filter by extension and specify the token to start from.
     * Initial token value (to start from beginning) should be 0. */
    virtual ZRESULT getFilterByExtension(LPCTSTR pszExt, core::io::IImportExportFilter** ppFilter, DWORD& nToken)=0;
    virtual ZRESULT getFilterByMask(LPCTSTR pszMask, core::io::IImportExportFilter** ppFilter)=0;
    virtual ZRESULT getFilterByClassName(LPCTSTR pszClass, core::io::IImportExportFilter** ppFilter)=0;
    virtual ZRESULT getFilterWrapper(secure::IFilterWrapper** ppWrapper)=0;
    virtual ZRESULT setFilterWrapper(secure::IFilterWrapper* pWrapper)=0;
  
  };//class IExtensionForImportExportService
};//secure

#endif
