42 #include "private/qdeclarativepackage_p.h" 44 #include <private/qobject_p.h> 45 #include <private/qdeclarativeguard_p.h> 115 return list->
at(index);
119 return list->
count();
154 for (
int ii = 0; ii <
d->dataList.count(); ++ii) {
172 for (
int ii = 0; ii <
d->dataList.count(); ++ii) {
184 if (name.
isEmpty() && !
d->dataList.isEmpty())
185 return d->dataList.at(0);
187 for (
int ii = 0; ii <
d->dataList.count(); ++ii) {
195 return d->dataList.at(0);
static QHash< QObject *, QDeclarativePackageAttached * > attached
#define QT_END_NAMESPACE
This macro expands to.
int remove(const Key &key)
Removes all the items that have the key from the hash.
QDeclarativePackagePrivate()
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
virtual ~QDeclarativePackageAttached()
long ASN1_INTEGER_get ASN1_INTEGER * a
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
static void data_clear(QDeclarativeListProperty< QObject > *prop)
The QHash class is a template class that provides a hash-table-based dictionary.
The QObject class is the base class of all Qt objects.
const T value(const Key &key) const
Returns the value associated with the key.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
void setParent(QObject *)
Makes the object a child of parent.
bool removeOne(const T &t)
Removes the first occurrence of value in the list and returns true on success; otherwise returns fals...
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.
QList< DataGuard > * list
const T & at(int i) const
Returns the item at index position i in the list.
QDeclarativeListProperty< QObject > data()
QObject * part(const QString &=QString())
void clear()
Removes all items from the list.
QDeclarativePackage(QObject *parent=0)
void objectDestroyed(QObject *)
virtual ~QDeclarativePackage()
static void data_append(QDeclarativeListProperty< QObject > *prop, QObject *o)
static QObject * data_at(QDeclarativeListProperty< QObject > *prop, int index)
DataGuard(QObject *obj, QList< DataGuard > *l)
void setName(const QString &n)
static QDeclarativePackageAttached * qmlAttachedProperties(QObject *)
This attached property holds the name of an item within a Package.
static int data_count(QDeclarativeListProperty< QObject > *prop)
QObject * parent() const
Returns a pointer to the parent object.
bool hasPart(const QString &)
QList< DataGuard > dataList
QDeclarativePackageAttached(QObject *parent)
The QList class is a template class that provides lists.