1/* 2 * Copyright 2006-2007, 2011, Stephan A��mus <superstippi@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5#ifndef SIMPLE_FILE_SAVER_H 6#define SIMPLE_FILE_SAVER_H 7 8 9#include "FileSaver.h" 10 11 12class Exporter; 13 14/*! Uses the specified Exporter to export the icon to a file */ 15class SimpleFileSaver : public FileSaver { 16public: 17 SimpleFileSaver(Exporter* exporter, 18 const entry_ref& ref); 19 virtual ~SimpleFileSaver(); 20 21 virtual status_t Save(Document* document); 22 23 void WaitForExportThread(); 24 25private: 26 Exporter* fExporter; 27}; 28 29 30#endif // SIMPLE_FILE_SAVER_H 31