root/src/apps/icon-o-matic/document/savers/SimpleFileSaver.h
/*
 * Copyright 2006-2007, 2011, Stephan Aßmus <superstippi@gmx.de>.
 * All rights reserved. Distributed under the terms of the MIT License.
 */
#ifndef SIMPLE_FILE_SAVER_H
#define SIMPLE_FILE_SAVER_H


#include "FileSaver.h"


class Exporter;

/*! Uses the specified Exporter to export the icon to a file */
class SimpleFileSaver : public FileSaver {
public:
                                                                SimpleFileSaver(Exporter* exporter,
                                                                                                const entry_ref& ref);
        virtual                                         ~SimpleFileSaver();

        virtual status_t                        Save(Document* document);

                        void                            WaitForExportThread();

private:
                        Exporter*                       fExporter;
};


#endif // SIMPLE_FILE_SAVER_H