]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/wfstream.h
Added flags argument to wxKill and wxProcess::Kill to allow it to
[wxWidgets.git] / include / wx / wfstream.h
index 514d795fff990d47e515e5b5c0bb82c28baa2d94..b26ec29f5bc582a8adf87af72a504c3ab5fc78b6 100644 (file)
@@ -67,6 +67,7 @@ class WXDLLIMPEXP_BASE wxFileOutputStream: public wxOutputStream {
 //     { return wxOutputStream::Write(buffer, size); }
 
   void Sync();
 //     { return wxOutputStream::Write(buffer, size); }
 
   void Sync();
+  bool Close() { return m_file_destroy ? m_file->Close() : true; }
   wxFileOffset GetLength() const;
 
   bool Ok() const { return m_file->IsOpened(); }
   wxFileOffset GetLength() const;
 
   bool Ok() const { return m_file->IsOpened(); }
@@ -136,6 +137,7 @@ class WXDLLIMPEXP_BASE wxFFileOutputStream: public wxOutputStream {
 //     { return wxOutputStream::Write(buffer, size); }
 
   void Sync();
 //     { return wxOutputStream::Write(buffer, size); }
 
   void Sync();
+  bool Close() { return m_file_destroy ? m_file->Close() : true; }
   wxFileOffset GetLength() const;
 
   bool Ok() const { return m_file->IsOpened(); }
   wxFileOffset GetLength() const;
 
   bool Ok() const { return m_file->IsOpened(); }