42 #include "private/qdeclarativeinspectorservice_p.h" 43 #include "private/qdeclarativeinspectorinterface_p.h" 45 #include <QtCore/QCoreApplication> 46 #include <QtCore/QDebug> 47 #include <QtCore/QDir> 48 #include <QtCore/QPluginLoader> 50 #include <QtDeclarative/QDeclarativeView> 58 , m_inspectorPlugin(0)
64 return serviceInstance();
106 qWarning() <<
"Error while loading inspector plugin";
126 foreach (
const QString &libPath, paths) {
133 foreach (
const QString &pluginPath, pluginCandidates) {
The QDir class provides access to directory structures and their contents.
#define QT_END_NAMESPACE
This macro expands to.
QString absoluteFilePath(const QString &fileName) const
Returns the absolute path name of a file in the directory.
The QDeclarativeView class provides a widget for displaying a Qt Declarative user interface...
bool load()
Loads the plugin and returns true if the plugin was loaded successfully; otherwise returns false...
The QByteArray class provides an array of bytes.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QDeclarativeInspectorService * instance()
The QString class provides a Unicode character string.
T * qobject_cast(QObject *object)
void sendMessage(const QByteArray &message)
void gotMessage(const QByteArray &message)
bool exists() const
Returns true if the directory exists; otherwise returns false.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
virtual void messageReceived(const QByteArray &)
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void activate()=0
void removeView(QDeclarativeView *)
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
The QStringList class provides a list of strings.
Q_CORE_EXPORT void qWarning(const char *,...)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
virtual void statusChanged(Status status)
void addView(QDeclarativeView *)
virtual void deactivate()=0
static QStringList libraryPaths()
Returns a list of paths that the application will search when dynamically loading libraries...
static QDeclarativeInspectorInterface * loadInspectorPlugin()
QObject * instance()
Returns the root component object of the plugin.
QDeclarativeInspectorInterface * m_inspectorPlugin
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...
QList< QDeclarativeView * > m_views
QStringList entryList(Filters filters=NoFilter, SortFlags sort=NoSort) const
Returns a list of the names of all the files and directories in the directory, ordered according to t...
void sendMessage(const QByteArray &)
The QPluginLoader class loads a plugin at run-time.
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.