[haiku-commits] r41177 - haiku/trunk/src/apps/icon-o-matic/document/savers

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 4 Apr 2011 11:19:48 +0200 (CEST)

Author: stippi
Date: 2011-04-04 11:19:48 +0200 (Mon, 04 Apr 2011)
New Revision: 41177
Changeset: https://dev.haiku-os.org/changeset/41177

Modified:
   haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.cpp
   haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.h
Log:
 * Code style cleanup.
 * Make WaitForExportThread() available.


Modified: haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.cpp
===================================================================
--- haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.cpp       
2011-04-04 09:18:27 UTC (rev 41176)
+++ haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.cpp       
2011-04-04 09:19:48 UTC (rev 41177)
@@ -1,15 +1,14 @@
 /*
- * Copyright 2006-2007, Haiku. All rights reserved.
- * Distributed under the terms of the MIT License.
- *
- * Authors:
- *             Stephan Aßmus <superstippi@xxxxxx>
+ * Copyright 2006-2007, 2011, Stephan Aßmus <superstippi@xxxxxx>.
+ * All rights reserved. Distributed under the terms of the MIT License.
  */
+
+
 #include "SimpleFileSaver.h"
 
 #include "Exporter.h"
 
-// constructor
+
 SimpleFileSaver::SimpleFileSaver(Exporter* exporter,
                                                                 const 
entry_ref& ref)
        : FileSaver(ref),
@@ -18,16 +17,22 @@
        fExporter->SetSelfDestroy(false);
 }
 
-// destructor
+
 SimpleFileSaver::~SimpleFileSaver()
 {
        delete fExporter;
 }
 
-// Save
+
 status_t
 SimpleFileSaver::Save(Document* document)
 {
        return fExporter->Export(document, fRef);
 }
 
+
+void
+SimpleFileSaver::WaitForExportThread()
+{
+       fExporter->WaitForExportThread();
+}

Modified: haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.h
===================================================================
--- haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.h 
2011-04-04 09:18:27 UTC (rev 41176)
+++ haiku/trunk/src/apps/icon-o-matic/document/savers/SimpleFileSaver.h 
2011-04-04 09:19:48 UTC (rev 41177)
@@ -1,27 +1,30 @@
 /*
- * Copyright 2006-2007, Haiku. All rights reserved.
- * Distributed under the terms of the MIT License.
- *
- * Authors:
- *             Stephan Aßmus <superstippi@xxxxxx>
+ * Copyright 2006-2007, 2011, Stephan Aßmus <superstippi@xxxxxx>.
+ * 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;
 
+
 class SimpleFileSaver : public FileSaver {
- public:
+public:
                                                                
SimpleFileSaver(Exporter* exporter,
                                                                                
                const entry_ref& ref);
        virtual                                         ~SimpleFileSaver();
 
        virtual status_t                        Save(Document* document);
 
- private:
+                       void                            WaitForExportThread();
+
+private:
                        Exporter*                       fExporter;
 };
 
+
 #endif // SIMPLE_FILE_SAVER_H


Other related posts:

  • » [haiku-commits] r41177 - haiku/trunk/src/apps/icon-o-matic/document/savers - superstippi