HaikuDepot: notify work status from main window
[haiku.git] / src / apps / icon-o-matic / document / savers / SimpleFileSaver.cpp
blob40309ffa530df5928e48c62620fcd0282c328ecf
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 */
7 #include "SimpleFileSaver.h"
9 #include "Exporter.h"
12 SimpleFileSaver::SimpleFileSaver(Exporter* exporter,
13 const entry_ref& ref)
14 : FileSaver(ref),
15 fExporter(exporter)
17 fExporter->SetSelfDestroy(false);
21 SimpleFileSaver::~SimpleFileSaver()
23 delete fExporter;
27 status_t
28 SimpleFileSaver::Save(Document* document)
30 return fExporter->Export(document, fRef);
34 void
35 SimpleFileSaver::WaitForExportThread()
37 fExporter->WaitForExportThread();