Qt 4.8
Classes | Functions
qabstractfileengine_p.h File Reference
#include "QtCore/qabstractfileengine.h"
#include "QtCore/qfile.h"

Go to the source code of this file.

Classes

class  QAbstractFileEnginePrivate
 

Functions

QAbstractFileEngineqt_custom_file_engine_handler_create (const QString &path)
 

Function Documentation

◆ qt_custom_file_engine_handler_create()

QAbstractFileEngine* qt_custom_file_engine_handler_create ( const QString path)

Definition at line 164 of file qabstractfileengine.cpp.

Referenced by _q_resolveEntryAndCreateLegacyEngine_recursive().

165 {
166  QAbstractFileEngine *engine = 0;
167 
169  QReadLocker locker(fileEngineHandlerMutex());
170 
171  // check for registered handlers that can load the file
172  QAbstractFileEngineHandlerList *handlers = fileEngineHandlers();
173  for (int i = 0; i < handlers->size(); i++) {
174  if ((engine = handlers->at(i)->create(path)))
175  break;
176  }
177  }
178 
179  return engine;
180 }
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
The QAbstractFileEngine class provides an abstraction for accessing the filesystem.
The QReadLocker class is a convenience class that simplifies locking and unlocking read-write locks f...
int size() const
Returns the number of items in the list.
Definition: qlist.h:137
static bool qt_file_engine_handlers_in_use
virtual QAbstractFileEngine * create(const QString &fileName) const =0
Creates a file engine for file fileName.