42 #include "qplatformdefs.h" 51 #if defined(Q_OS_SYMBIAN) 53 # include "private/qcore_symbian_p.h" 145 :
QObject(parent),
d(0), did_load(false)
294 #if defined(QT_SHARED) 295 QLibrary::LoadHints lh;
303 #if defined(Q_OS_SYMBIAN) 319 if (stubPath.length() > 1) {
320 if (stubPath.at(1).toAscii() ==
':')
323 RFs rfs = qt_s60GetRFs();
324 foreach(
const QFileInfo& drive, driveList) {
331 TPtrC
ptr(qt_QString2TPtrC(nativePath));
333 TInt err = rfs.Att(ptr, attributes);
334 if (err == KErrNone) {
352 qWarning(
"Cannot load %s into a statically linked Qt library.",
429 staticInstanceFunctionList()->append(
function);
441 for (
int i = 0; i < functions->
count(); ++i)
442 instances.
append((*functions)[i]());
449 #endif // QT_NO_LIBRARY
bool isPlugin(QSettings *settings=0)
#define QT_END_NAMESPACE
This macro expands to.
QString errorString() const
Returns a text string with the description of the last error that occurred.
QLibrary::LoadHints loadHints() const
bool load()
Loads the plugin and returns true if the plugin was loaded successfully; otherwise returns false...
QWeakPointer< QObject > inst
static QLibraryPrivate * findOrCreate(const QString &fileName, const QString &version=QString())
void chop(int n)
Removes n characters from the end of the string.
int length() const
Returns the number of characters in this string.
QtPluginInstanceFunction instance
QString fileName() const
Returns the name of the file, excluding the path.
~QPluginLoader()
Destroys the QPluginLoader object.
QString absoluteFilePath() const
Returns an absolute path including the file name.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
void Q_CORE_EXPORT qRegisterStaticPluginInstanceFunction(QtPluginInstanceFunction function)
Registers the given function with the plugin loader.
QList< QtPluginInstanceFunction > StaticInstanceFunctionList
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
static QObjectList staticInstances()
Returns a list of static plugin instances (root components) held by the plugin loader.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QObject *(* QtPluginInstanceFunction)()
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
QString canonicalFilePath() const
Returns the canonical path including the file name, i.e.
Q_CORE_EXPORT void qWarning(const char *,...)
void setFileName(const QString &fileName)
const T * ptr(const T &t)
static QFileInfoList drives()
Returns a list of the root directories on this system.
static QString cleanPath(const QString &path)
Removes all multiple directory separators "/" and resolves any "."s or ".."s found in the path...
void setLoadHints(QLibrary::LoadHints loadHints)
void clear()
Clears the contents of the string and makes it empty.
QObject * parent() const
Returns a pointer to the parent object.
QString suffix() const
Returns the suffix of the file.
static QByteArray encodeName(const QString &fileName)
By default, this function converts fileName to the local 8-bit encoding determined by the user's loca...
bool isLoaded() const
Returns true if the plugin is loaded; otherwise returns false.
QObject * instance()
Returns the root component object of the plugin.
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
The QFileInfo class provides system-independent file information.
static QString toNativeSeparators(const QString &pathName)
Returns pathName with the '/' separators converted to separators that are appropriate for the underly...
QPluginLoader(QObject *parent=0)
Constructs a plugin loader with the given parent.
QLibrary::LoadHints loadHints
bool unload()
Unloads the plugin and returns true if the plugin could be unloaded; otherwise returns false...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QString absolutePath() const
Returns a file's path absolute path.
bool qt_debug_component()
The QLibrary class loads shared libraries at runtime.
The QPluginLoader class loads a plugin at run-time.