added HasHandlerForPath() (modified patch 1514524)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -485,6 +485,18 @@ void wxFileSystem::AddHandler(wxFileSystemHandler *handler)
|
||||
m_Handlers.Append(handler);
|
||||
}
|
||||
|
||||
bool wxFileSystem::HasHandlerForPath(const wxString &location)
|
||||
{
|
||||
for ( wxList::compatibility_iterator node = m_Handlers.GetFirst();
|
||||
node; node = node->GetNext() )
|
||||
{
|
||||
wxFileSystemHandler *h = (wxFileSystemHandler*) node->GetData();
|
||||
if (h->CanOpen(location))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxFileSystem::CleanUpHandlers()
|
||||
{
|
||||
|
Reference in New Issue
Block a user