+++ /dev/null
-// filterinterface.cpp
-//
-// Part of the Architektonas Project
-// Originally part of QCad Community Edition by Andrew Mustun
-// Extensively rewritten and refactored by James L. Hammons
-// Portions copyright (C) 2001-2003 RibbonSoft
-// Copyright (C) 2010 Underground Software
-// See the README and GPLv2 files for licensing and warranty information
-//
-// JLH = James L. Hammons <jlhamm@acm.org>
-//
-// Who When What
-// --- ---------- -----------------------------------------------------------
-// JLH 05/05/2010 Moved implementation from header to this file. :-)
-//
-
-#include "filterinterface.h"
-
-#include "debug.h"
-
-/**
- * Constructor.
- */
-FilterInterface::FilterInterface()
-{
- //std::cout << "FilterInterface\n";
- //graphic = NULL;
-}
-
-/**
- * Destructor.
- */
-/*virtual*/ FilterInterface::~FilterInterface()
-{
-}
-
-/**
- * Checks if this filter can import the given file type.
- *
- * @retval true if the filter can import the file type
- * @retval false otherwise.
- */
-/*virtual*/ bool FilterInterface::canImport(RS2::FormatType t)
-{
-// return !(importFormats.find(t) == importFormats.end());
- return (importFormats.indexOf(t) != -1);
-}
-
-/**
- * Checks if this filter can export the given file type.
- *
- * @return true if the filter can export the file type,
- * false otherwise.
- */
-/*virtual*/ bool FilterInterface::canExport(RS2::FormatType t)
-{
-// return !(exportFormats.find(t) == exportFormats.end());
- return (exportFormats.indexOf(t) != -1);
-}
-
-/**
- * Adds a file extension which can be imported by this filter.
- */
-void FilterInterface::addImportFormat(RS2::FormatType type)
-{
- DEBUG->print("Filter can import %d", (int)type);
- importFormats += type;
-}
-
-/**
- * Adds a file extension which can be exported by this filter.
- */
-void FilterInterface::addExportFormat(RS2::FormatType type)
-{
- DEBUG->print("Filter can export %d", (int)type);
- exportFormats += type;
-}