Qt 4.8
Classes | Functions | Variables
qabstractfileengine.cpp File Reference
#include "qabstractfileengine.h"
#include "private/qabstractfileengine_p.h"
#include "qdatetime.h"
#include "qreadwritelock.h"
#include "qvariant.h"
#include "qfsfileengine.h"
#include "qdiriterator.h"
#include "qstringbuilder.h"
#include <QtCore/private/qfilesystementry_p.h>
#include <QtCore/private/qfilesystemmetadata_p.h>
#include <QtCore/private/qfilesystemengine_p.h>

Go to the source code of this file.

Classes

class  QAbstractFileEngineHandlerList
 
class  QAbstractFileEngineIteratorPrivate
 

Functions

QAbstractFileEngineqt_custom_file_engine_handler_create (const QString &path)
 

Variables

static bool qt_abstractfileenginehandlerlist_shutDown = false
 
static bool qt_file_engine_handlers_in_use = false
 

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.

Variable Documentation

◆ qt_abstractfileenginehandlerlist_shutDown

bool qt_abstractfileenginehandlerlist_shutDown = false
static

◆ qt_file_engine_handlers_in_use

bool qt_file_engine_handlers_in_use = false
static