// Purpose: HTTP and FTP file system
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
-// Licence: wxWindows Licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
public:
wxTemporaryFileInputStream(const wxString& filename) :
wxFileInputStream(filename), m_filename(filename) {}
-
+
~wxTemporaryFileInputStream()
{
// NB: copied from wxFileInputStream dtor, we need to do it before
delete m_file;
m_file_destroy = false;
}
- wxRemoveFile(m_filename);
+ wxRemoveFile(m_filename);
}
protected:
return (url.GetError() == wxURL_NOERR);
}
- return FALSE;
+ return false;
}
s->Read(sout);
}
delete s;
-
+
return new wxFSFile(new wxTemporaryFileInputStream(tmpfile),
right,
content,
virtual bool OnInit()
{
wxFileSystem::AddHandler(new wxInternetFSHandler);
- return TRUE;
+ return true;
}
virtual void OnExit() {}
};